API / Webhooks
POST
/webhooks/endpoints/{id}/rotate-secret
Rotate a webhook endpoint's signing secret
Authentification : clé API Bearer requise.
Paramètres
| Nom | Dans | Type | Description |
|---|---|---|---|
| id* | path | string | Endpoint ID |
Exemple curl
curl -X POST https://api.sporee.fr/webhooks/endpoints/<id>/rotate-secret \
-H "Authorization: Bearer $SPORE_API_KEY"Réponses
| Statut | Description | Type |
|---|---|---|
| 200 | OK | rotate_secret.Result |
| 400 | Bad Request | echo.HTTPError |
| 401 | Unauthorized | echo.HTTPError |
| 404 | Not Found | echo.HTTPError |
Source machine : openapi.json · opération rotateWebhookSecret