- Référence de l’API
- endpoint
- beta
Beta Webhooks
Beta Webhooks
GET /v1/webhooks
Lister les webhooks
Lister les webhooks
Responses
Réponse réussie
Webhook
created_at
date-time* obligatoirecreator_id
string* obligatoiredescription
string | nullevent_id_pattern
string | nullevent_type_path
string | nullevent_type_pattern
string | nullexpires_at
date-time | null* obligatoirehttp_method
string* obligatoireid
string* obligatoirename
string* obligatoireorganization_id
string* obligatoireowner_type
"workspace" | "user"* obligatoireprovider
"slack" | "github" | "notion" | "lucca" | "linear" | "microsoft" | "ashby" | "whatsapp" | "custom"* obligatoiresignature_encoding
"hex" | "base64"* obligatoiresignature_extractor_regex
string | null* obligatoiresignature_hash_algorithm
"sha256" | "sha1"* obligatoiresignature_header_name
string | null* obligatoiresignature_payload_pattern
string | null* obligatoiresuccess_status_code
integer | null* obligatoiretimestamp_extractor_regex
string | null* obligatoiretimestamp_pattern
string | nullupdated_at
date-time* obligatoireurl
string* obligatoireurl_verification_token
string | nullToken que le fournisseur renvoie lors de la vérification de l’URL (WhatsApp : le Verify token)
url_verified
boolean | null* obligatoirevalidity_period_second
integer | null* obligatoireworkspace_id
string* obligatoirePOST /v1/webhooks
Créer un webhook
Créer un webhook
Exemple de requête
{
"name": "ipsum eiusmod",
"provider": "slack"
}
Corps de la requête
description
string | nullUsage de ce webhook
encryption_key
string | nullClé de chiffrement utilisée pour déchiffrer les charges utiles du webhook
event_id_pattern
string | nullModèle d’identifiant unique d’événement utilisé pour dédupliquer les livraisons, avec les variables {body.<path>} et {headers.<Header-Name>}, par ex. {body.id} ou {body.event_id}.{headers.X-Delivery-Id}. Par défaut, un hash du corps de la requête
event_type_pattern
string | nullModèle du type d’événement, avec les variables {body.<path>} et {headers.<Header-Name>}, par ex. {body.type} ou {headers.X-GitHub-Event}
expires_at
date-time | nullname
stringMin Length: 1Max Length: 256* obligatoireNom lisible de ce webhook
owner_type
"workspace" | "user"provider
"slack" | "github" | "notion" | "lucca" | "linear" | "microsoft" | "ashby" | "whatsapp" | "custom"* obligatoiresecret
string | nullSecret de signature fourni par le fournisseur tiers
signature_encoding
"hex" | "base64"signature_extractor_regex
string | nullRegex permettant d’extraire la signature, par ex. sha256=(.*)
signature_hash_algorithm
"sha256" | "sha1"signature_header_name
string | nullsignature_payload_pattern
string | nullModèle de la charge utile signée, par ex. {body} ou {timestamp}.{body}
success_status_code
integer | nullCode de statut HTTP renvoyé pour les livraisons acceptées, par ex. 200
timestamp_extractor_regex
string | nullRegex permettant d’extraire l’horodatage du timestamp_pattern rendu (l’en-tête de signature par défaut), utilisé comme {timestamp}, par ex. t=([^,]+). Par défaut, la valeur entière lorsque timestamp_pattern est défini
timestamp_pattern
string | nullModèle de l’horodatage utilisé comme {timestamp}, avec les variables {body.<path>} et {headers.<Header-Name>}, par ex. {headers.X-Slack-Request-Timestamp} ou {body.webhookTimestamp}. Par défaut, l’en-tête de signature lorsque timestamp_extractor_regex est défini
url_verification_token
string | nullToken que le fournisseur renvoie lors de la vérification de l’URL. Obligatoire pour WhatsApp (collez la même valeur dans le champ Verify token du Meta App Dashboard), interdit pour les autres fournisseurs
validity_period_second
integer | nullÉcart maximal autorisé, en secondes, entre l’horodatage signé et l’heure de réception, par ex. 300
Server-Side Events
Réponse réussie
created_at
date-time* obligatoirecreator_id
string* obligatoiredescription
string | nullevent_id_pattern
string | nullevent_type_path
string | nullevent_type_pattern
string | nullexpires_at
date-time | null* obligatoirehttp_method
string* obligatoireid
string* obligatoirename
string* obligatoireorganization_id
string* obligatoireowner_type
"workspace" | "user"* obligatoireprovider
"slack" | "github" | "notion" | "lucca" | "linear" | "microsoft" | "ashby" | "whatsapp" | "custom"* obligatoiresignature_encoding
"hex" | "base64"* obligatoiresignature_extractor_regex
string | null* obligatoiresignature_hash_algorithm
"sha256" | "sha1"* obligatoiresignature_header_name
string | null* obligatoiresignature_payload_pattern
string | null* obligatoiresuccess_status_code
integer | null* obligatoiretimestamp_extractor_regex
string | null* obligatoiretimestamp_pattern
string | nullupdated_at
date-time* obligatoireurl
string* obligatoireurl_verification_token
string | nullToken que le fournisseur renvoie lors de la vérification de l’URL (WhatsApp : le Verify token)
url_verified
boolean | null* obligatoirevalidity_period_second
integer | null* obligatoireworkspace_id
string* obligatoireGET /v1/webhooks/{webhook_id}
Obtenir un webhook
Obtenir un webhook
Parameters
webhook_id
stringpath* obligatoireResponses
Réponse réussie
created_at
date-time* obligatoirecreator_id
string* obligatoiredescription
string | nullevent_id_pattern
string | nullevent_type_path
string | nullevent_type_pattern
string | nullexpires_at
date-time | null* obligatoirehttp_method
string* obligatoireid
string* obligatoirename
string* obligatoireorganization_id
string* obligatoireowner_type
"workspace" | "user"* obligatoireprovider
"slack" | "github" | "notion" | "lucca" | "linear" | "microsoft" | "ashby" | "whatsapp" | "custom"* obligatoiresignature_encoding
"hex" | "base64"* obligatoiresignature_extractor_regex
string | null* obligatoiresignature_hash_algorithm
"sha256" | "sha1"* obligatoiresignature_header_name
string | null* obligatoiresignature_payload_pattern
string | null* obligatoiresuccess_status_code
integer | null* obligatoiretimestamp_extractor_regex
string | null* obligatoiretimestamp_pattern
string | nullupdated_at
date-time* obligatoireurl
string* obligatoireurl_verification_token
string | nullToken que le fournisseur renvoie lors de la vérification de l’URL (WhatsApp : le Verify token)
url_verified
boolean | null* obligatoirevalidity_period_second
integer | null* obligatoireworkspace_id
string* obligatoireDELETE /v1/webhooks/{webhook_id}
Supprimer un webhook
Supprimer un webhook
Parameters
webhook_id
stringpath* obligatoireGET /v1/webhooks/{webhook_id}/signing-secret
Obtenir le secret de signature d’un webhook
Obtenir le secret de signature d’un webhook