mistralM

Docs

sideBar

Beta Webhooks

(beta) Webhooks API.

GET /v1/webhooks

List Webhooks

List Webhooks

Responses

array<Webhook>

Successful Response

Webhook
created_at
date-time* required
creator_id
string* required
description
string | null
event_id_pattern
string | null
event_type_path
string | null
event_type_pattern
string | null
expires_at
date-time | null* required
http_method
string* required
id
string* required
name
string* required
organization_id
string* required
owner_type
"workspace" | "user"* required
provider
"slack" | "github" | "notion" | "lucca" | "linear" | "microsoft" | "ashby" | "whatsapp" | "custom"* required
signature_encoding
"hex" | "base64"* required
signature_extractor_regex
string | null* required
signature_hash_algorithm
"sha256" | "sha1"* required
signature_header_name
string | null* required
signature_payload_pattern
string | null* required
success_status_code
integer | null* required
timestamp_extractor_regex
string | null* required
timestamp_pattern
string | null
updated_at
date-time* required
url
string* required
url_verification_token
string | null

Token the provider echoes back when verifying the URL (WhatsApp: the Verify token)

url_verified
boolean | null* required
validity_period_second
integer | null* required
workspace_id
string* required

POST /v1/webhooks

Create Webhook

Create Webhook

Request Example

{
  "name": "ipsum eiusmod",
  "provider": "slack"
}

Request Body

description
string | null

What this webhook is used for

encryption_key
string | null

Encryption key used to decrypt webhook payloads

event_id_pattern
string | null

Pattern for a unique event identifier used to deduplicate deliveries, with {body.<path>} and {headers.<Header-Name>} placeholders, eg {body.id} or {body.event_id}.{headers.X-Delivery-Id}. Defaults to a hash of the request body

event_type_pattern
string | null

Pattern for the event type, with {body.<path>} and {headers.<Header-Name>} placeholders, eg {body.type} or {headers.X-GitHub-Event}

expires_at
date-time | null
name
stringMin Length: 1Max Length: 256* required

Human-readable name for this webhook

owner_type
"workspace" | "user"
provider
"slack" | "github" | "notion" | "lucca" | "linear" | "microsoft" | "ashby" | "whatsapp" | "custom"* required
secret
string | null

Signing secret provided by the third-party provider

signature_encoding
"hex" | "base64"
signature_extractor_regex
string | null

Regex to extract signature, eg sha256=(.*)

signature_hash_algorithm
"sha256" | "sha1"
signature_header_name
string | null
signature_payload_pattern
string | null

Pattern for signature payload, eg {body} or {timestamp}.{body}

success_status_code
integer | null

HTTP status code returned for accepted deliveries, eg 200

timestamp_extractor_regex
string | null

Regex to extract the timestamp from the rendered timestamp_pattern (the signature header by default), used as {timestamp}, eg t=([^,]+). Defaults to the whole value when timestamp_pattern is set

timestamp_pattern
string | null

Pattern for the timestamp used as {timestamp}, with {body.<path>} and {headers.<Header-Name>} placeholders, eg {headers.X-Slack-Request-Timestamp} or {body.webhookTimestamp}. Defaults to the signature header when timestamp_extractor_regex is set

url_verification_token
string | null

Token the provider echoes back when verifying the URL. Required for WhatsApp (paste the same value in the Verify token field of the Meta App Dashboard), forbidden for other providers

validity_period_second
integer | null

Maximum allowed drift in seconds between the signed timestamp and reception time, eg 300

Server-Side Events

Successful Response

created_at
date-time* required
creator_id
string* required
description
string | null
event_id_pattern
string | null
event_type_path
string | null
event_type_pattern
string | null
expires_at
date-time | null* required
http_method
string* required
id
string* required
name
string* required
organization_id
string* required
owner_type
"workspace" | "user"* required
provider
"slack" | "github" | "notion" | "lucca" | "linear" | "microsoft" | "ashby" | "whatsapp" | "custom"* required
signature_encoding
"hex" | "base64"* required
signature_extractor_regex
string | null* required
signature_hash_algorithm
"sha256" | "sha1"* required
signature_header_name
string | null* required
signature_payload_pattern
string | null* required
success_status_code
integer | null* required
timestamp_extractor_regex
string | null* required
timestamp_pattern
string | null
updated_at
date-time* required
url
string* required
url_verification_token
string | null

Token the provider echoes back when verifying the URL (WhatsApp: the Verify token)

url_verified
boolean | null* required
validity_period_second
integer | null* required
workspace_id
string* required

GET /v1/webhooks/{webhook_id}

Get Webhook

Get Webhook

Parameters

webhook_id
stringpath* required

Responses

Successful Response

created_at
date-time* required
creator_id
string* required
description
string | null
event_id_pattern
string | null
event_type_path
string | null
event_type_pattern
string | null
expires_at
date-time | null* required
http_method
string* required
id
string* required
name
string* required
organization_id
string* required
owner_type
"workspace" | "user"* required
provider
"slack" | "github" | "notion" | "lucca" | "linear" | "microsoft" | "ashby" | "whatsapp" | "custom"* required
signature_encoding
"hex" | "base64"* required
signature_extractor_regex
string | null* required
signature_hash_algorithm
"sha256" | "sha1"* required
signature_header_name
string | null* required
signature_payload_pattern
string | null* required
success_status_code
integer | null* required
timestamp_extractor_regex
string | null* required
timestamp_pattern
string | null
updated_at
date-time* required
url
string* required
url_verification_token
string | null

Token the provider echoes back when verifying the URL (WhatsApp: the Verify token)

url_verified
boolean | null* required
validity_period_second
integer | null* required
workspace_id
string* required

DELETE /v1/webhooks/{webhook_id}

Delete Webhook

Delete Webhook

Parameters

webhook_id
stringpath* required

GET /v1/webhooks/{webhook_id}/signing-secret

Get Webhook Signing Secret

Get Webhook Signing Secret

Parameters

webhook_id
stringpath* required

Responses

Successful Response

signing_secret
string* required