API / Api Keys

POST

/api-keys

Create an API key

Authentification : clé API Bearer requise.

Corps JSON

API key to create

NomTypeDescription
identityIdstringIdentityID restricts the key to one sending identity. Omit for a tenant-wide key, which is the behaviour of every pre-existing key.
namestring—

Exemple curl

curl -X POST https://api.sporee.fr/api-keys \
  -H "Authorization: Bearer $SPORE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Réponses

StatutDescriptionType
201Createdapikeys.CreatedKey
400Bad Requestecho.HTTPError
401Unauthorizedecho.HTTPError
404Not Foundecho.HTTPError

Source machine : openapi.json · opération createApiKey