circle-exclamation
This documentation is currently under development. Certain sections are not yet complete and will be added shortly.

ApiKeys

List API keys for the tenant

get
/api/{tenantId}/admin/apiKeys

Returns all API key definitions stored in security.yml. Key hashes are never included in responses.

Authorization

Requires tenant.apiKey:read scope.

chevron-right
lockScopes requis
Cet endpoint nécessite les scopes suivants :
Autorisations
OAuth2implicitRequis
Authorization URL:
Paramètres de chemin
tenantIdstringRequis
Réponses
chevron-right
200

API keys returned.

API key definition returned by list and get endpoints. The key hash is never exposed.

ou
get
/api/{tenantId}/admin/apiKeys
200

API keys returned.

Create a new API key

post
/api/{tenantId}/admin/apiKeys

Generates a cryptographically secure token, stores its SHA-256 hash in security.yml, and returns the plaintext token in the response. The token is only returned once — copy it immediately.

Authorization

Requires tenant.apiKey:write scope.

chevron-right
lockScopes requis
Cet endpoint nécessite les scopes suivants :
Autorisations
OAuth2implicitRequis
Authorization URL:
Paramètres de chemin
tenantIdstringRequis
Corps

Request body to create an API key.

namestring · min: 1Requis

Key name. Only alphanumeric characters, hyphens, underscores and dots are allowed.

enabledbooleanOptionnel

Whether this key is active. Defaults to true.

permissionsstring[]Optionnel

List of permission scopes granted to this key. Use ["*"] for full access.

Réponses
post
/api/{tenantId}/admin/apiKeys

Get a specific API key

get
/api/{tenantId}/admin/apiKeys/{keyName}

Returns the API key definition identified by keyName. The key hash is never returned.

Authorization

Requires tenant.apiKey:read scope.

chevron-right
lockScopes requis
Cet endpoint nécessite les scopes suivants :
Autorisations
OAuth2implicitRequis
Authorization URL:
Paramètres de chemin
keyNamestringRequis
tenantIdstringRequis
Réponses
chevron-right
200

API key returned.

API key definition returned by list and get endpoints. The key hash is never exposed.

ou
get
/api/{tenantId}/admin/apiKeys/{keyName}

Update an API key

put
/api/{tenantId}/admin/apiKeys/{keyName}

Replaces the enabled and permissions fields of the key. The key name and the stored hash are not changed.

Authorization

Requires tenant.apiKey:write scope.

chevron-right
lockScopes requis
Cet endpoint nécessite les scopes suivants :
Autorisations
OAuth2implicitRequis
Authorization URL:
Paramètres de chemin
keyNamestringRequis
tenantIdstringRequis
Corps

Request body to update an API key.

enabledbooleanRequis

Whether this key is active.

permissionsstring[]Optionnel

New list of permission scopes. Use ["*"] for full access.

Réponses
chevron-right
200

API key updated.

API key definition returned by list and get endpoints. The key hash is never exposed.

ou
put
/api/{tenantId}/admin/apiKeys/{keyName}

Delete an API key

delete
/api/{tenantId}/admin/apiKeys/{keyName}

Removes the API key entry from security.yml. The key immediately stops working.

Authorization

Requires tenant.apiKey:write scope.

chevron-right
lockScopes requis
Cet endpoint nécessite les scopes suivants :
Autorisations
OAuth2implicitRequis
Authorization URL:
Paramètres de chemin
keyNamestringRequis
tenantIdstringRequis
Réponses
delete
/api/{tenantId}/admin/apiKeys/{keyName}

Aucun contenu

Mis à jour