Creates a new webhook subscription to receive event notifications.
curl --request POST \
--url https://api.strait.dev/v1/webhooks/subscriptions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"event_types": [
"<string>"
],
"project_id": "<string>",
"secret": "<string>",
"webhook_url": "<string>",
"active": true
}
'{
"active": true,
"created_at": "2023-11-07T05:31:56Z",
"event_types": [
"<string>"
],
"id": "<string>",
"project_id": "<string>",
"webhook_url": "<string>",
"$schema": "<string>"
}Documentation Index
Fetch the complete documentation index at: https://docs.strait.dev/llms.txt
Use this file to discover all available pages before exploring further.
API key passed as Bearer token
OK
curl --request POST \
--url https://api.strait.dev/v1/webhooks/subscriptions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"event_types": [
"<string>"
],
"project_id": "<string>",
"secret": "<string>",
"webhook_url": "<string>",
"active": true
}
'{
"active": true,
"created_at": "2023-11-07T05:31:56Z",
"event_types": [
"<string>"
],
"id": "<string>",
"project_id": "<string>",
"webhook_url": "<string>",
"$schema": "<string>"
}