API / Webhooks

POST

/webhooks/endpoints

Create a webhook endpoint

Authentification : clé API Bearer requise.

Corps JSON

Endpoint to create

NomTypeDescription
descriptionstring
eventTypesarray<string>
urlstring

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

StatutDescriptionType
201Createdcreate_endpoint.Result
400Bad Requestecho.HTTPError
401Unauthorizedecho.HTTPError

Source machine : openapi.json · opération createWebhookEndpoint