API / Webhooks
POST
/webhooks/endpoints
Create a webhook endpoint
Authentification : clé API Bearer requise.
Corps JSON
Endpoint to create
| Nom | Type | Description |
|---|---|---|
| description | string | — |
| eventTypes | array<string> | — |
| url | string | — |
Exemple curl
curl -X POST https://api.sporee.fr/webhooks/endpoints \
-H "Authorization: Bearer $SPORE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'Réponses
| Statut | Description | Type |
|---|---|---|
| 201 | Created | create_endpoint.Result |
| 400 | Bad Request | echo.HTTPError |
| 401 | Unauthorized | echo.HTTPError |
Source machine : openapi.json · opération createWebhookEndpoint