API / Api Keys
POST
/api-keys
Create an API key
Authentification : clé API Bearer requise.
Corps JSON
API key to create
| Nom | Type | Description |
|---|---|---|
| name | string | — |
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
| Statut | Description | Type |
|---|---|---|
| 201 | Created | apikeys.CreatedKey |
| 400 | Bad Request | echo.HTTPError |
| 401 | Unauthorized | echo.HTTPError |
Source machine : openapi.json · opération createApiKey