Skip to Content
FanConvert Docs
Reference

Webhooks

Reference generated from the OpenAPI contract: Webhooks.

4 min readOpen in ChatGPTOpen in Claude

Enregistrer une adresse qui recevra les événements

POST /public/v1/webhooks · createWebhook

Idempotency-Key header required: see Writes and idempotency.

Parameters

NameInTypeRequiredDescription
Idempotency-Keyheaderstringyes

Request body

WebhookCreate

FieldTypeRequiredDescription
urlstringyeshttps://, hôte public, port 443 ou 8443.
events"sale.created" | "emergency.created" | "ai.paused"[]yes

Response 201

WebhookCreated

FieldTypeRequiredDescription
webhookWebhookyes
secretstringyesLe secret de signature whsec_… : affiché UNE fois, gardez-le.

Webhook

FieldTypeRequiredDescription
idstringyes
urlstringyes
eventsstring[]yes
createdAtstring (date-time)yes
disabledAtstring (date-time) | nullyes
disabledReasonstring | nullyes

Possible errors

401 · 403 · 404 · 409 · 422 · 429 · 503 — Error format: Errors.

Example

curl -X POST "https://app.fanconvert.ai/public/v1/webhooks" \
  -H "Authorization: Bearer $FANCONVERT_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{ … }'

Les webhooks de cette clé

GET /public/v1/webhooks · listWebhooks

Response 200

Possible errors

401 · 403 · 404 · 409 · 422 · 429 · 503 — Error format: Errors.

Example

curl -X GET "https://app.fanconvert.ai/public/v1/webhooks" \
  -H "Authorization: Bearer $FANCONVERT_API_KEY"

Désactiver un webhook (son journal est gardé)

DELETE /public/v1/webhooks/{endpoint_id} · disableWebhook

Parameters

NameInTypeRequiredDescription
endpoint_idpathstringyes

Response 200

Webhook

FieldTypeRequiredDescription
idstringyes
urlstringyes
eventsstring[]yes
createdAtstring (date-time)yes
disabledAtstring (date-time) | nullyes
disabledReasonstring | nullyes

Possible errors

401 · 403 · 404 · 409 · 422 · 429 · 503 — Error format: Errors.

Example

curl -X DELETE "https://app.fanconvert.ai/public/v1/webhooks/{endpoint_id}" \
  -H "Authorization: Bearer $FANCONVERT_API_KEY"

Le journal des livraisons, les plus récentes d'abord

GET /public/v1/webhooks/{endpoint_id}/deliveries · listWebhookDeliveries

Parameters

NameInTypeRequiredDescription
endpoint_idpathstringyes
limitqueryintegerno(default : 50)
cursorquerystring | nullno

Response 200

DeliveryPage

FieldTypeRequiredDescription
itemsDelivery[]yes
nextCursorstring | nullno

Delivery

FieldTypeRequiredDescription
idstringyes
eventIdstringyes
eventTypestringyes
status"pending" | "delivered" | "failed"yes
attemptsintegeryes
lastStatusCodeinteger | nullyes
lastErrorstring | nullyesMotif court : timeout, connexion, http_<code>, adresse_refusee…
createdAtstring (date-time)yes
nextAttemptAtstring (date-time) | nullyes
deliveredAtstring (date-time) | nullyes

Possible errors

401 · 403 · 404 · 409 · 422 · 429 · 503 — Error format: Errors.

Example

curl -X GET "https://app.fanconvert.ai/public/v1/webhooks/{endpoint_id}/deliveries" \
  -H "Authorization: Bearer $FANCONVERT_API_KEY"

Envoyer un événement ping (aucune donnée) pour tester la réception

POST /public/v1/webhooks/{endpoint_id}/ping · pingWebhook

Idempotency-Key header required: see Writes and idempotency.

Parameters

NameInTypeRequiredDescription
endpoint_idpathstringyes

Response 202

Webhook

FieldTypeRequiredDescription
idstringyes
urlstringyes
eventsstring[]yes
createdAtstring (date-time)yes
disabledAtstring (date-time) | nullyes
disabledReasonstring | nullyes

Possible errors

401 · 403 · 404 · 409 · 422 · 429 · 503 — Error format: Errors.

Example

curl -X POST "https://app.fanconvert.ai/public/v1/webhooks/{endpoint_id}/ping" \
  -H "Authorization: Bearer $FANCONVERT_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"

Last updated on

On this page