- Référence de l’API
- endpoint
- beta
Beta Triggers
Beta Triggers
GET /v1/triggers
Lister les déclencheurs
Lister les déclencheurs
Parameters
handler
"workflows" | "agents" | "spaces"queryFiltrer par type de handler
primitive_id
string | nullqueryFiltrer par ID de primitive (workflow, agent ou app)
event_source_id
string | nullqueryFiltrer par ID de source d’événements (ID du webhook)
Responses
Réponse réussie
Trigger
TriggerAction
primitive_id
string* obligatoiretype
"start_workflow" | "build_app" | "deploy_app" | "start_agent_session"* obligatoirecreator_id
string* obligatoirecustomer_id
string* obligatoireWebhook
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* obligatoirefilters
string | null* obligatoirehandler
"workflows" | "agents" | "spaces"* obligatoireid
string* obligatoireorganization_id
string* obligatoireowner_type
"workspace" | "user"* obligatoiretitle
string* obligatoireworkspace_id
string* obligatoirePOST /v1/triggers
Créer un déclencheur
Créer un déclencheur
Exemple de requête
{
"action": {
"primitive_id": "ipsum eiusmod",
"type": "start_workflow"
},
"event_source_id": "consequat do",
"handler": "workflows",
"owner_type": "workspace",
"title": "reprehenderit ut dolore"
}
Corps de la requête
CreateTriggerAction
primitive_id
string* obligatoireID de la primitive cible (workflow, agent ou app)
type
"start_workflow" | "build_app" | "deploy_app" | "start_agent_session"* obligatoireevent_source_id
string* obligatoireID de la source d’événements qui déclenche ce déclencheur
filters
string | nullExpression jmespath pour filtrer les événements, par ex. event_type == 'push' && repository.name == 'dashboard'
handler
"workflows" | "agents" | "spaces"* obligatoireowner_type
"workspace" | "user"* obligatoiretitle
stringMin Length: 1Max Length: 256* obligatoireTitre lisible du déclencheur
Server-Side Events
Réponse réussie
TriggerAction
primitive_id
string* obligatoiretype
"start_workflow" | "build_app" | "deploy_app" | "start_agent_session"* obligatoirecreator_id
string* obligatoirecustomer_id
string* obligatoireWebhook
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* obligatoirefilters
string | null* obligatoirehandler
"workflows" | "agents" | "spaces"* obligatoireid
string* obligatoireorganization_id
string* obligatoireowner_type
"workspace" | "user"* obligatoiretitle
string* obligatoireworkspace_id
string* obligatoireGET /v1/triggers/{trigger_id}
Obtenir un déclencheur
Obtenir un déclencheur
Parameters
trigger_id
stringpath* obligatoireResponses
Réponse réussie
TriggerAction
primitive_id
string* obligatoiretype
"start_workflow" | "build_app" | "deploy_app" | "start_agent_session"* obligatoirecreator_id
string* obligatoirecustomer_id
string* obligatoireWebhook
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* obligatoirefilters
string | null* obligatoirehandler
"workflows" | "agents" | "spaces"* obligatoireid
string* obligatoireorganization_id
string* obligatoireowner_type
"workspace" | "user"* obligatoiretitle
string* obligatoireworkspace_id
string* obligatoireDELETE /v1/triggers/{trigger_id}
Supprimer un déclencheur
Supprimer un déclencheur
Parameters
trigger_id
stringpath* obligatoireGET /v1/triggers/{trigger_id}/events
Lister les événements d’un déclencheur
Lister les événements d’un déclencheur
Parameters
trigger_id
stringpath* obligatoirelimit
integerqueryNombre maximal d’événements à renvoyer