Skip to main content
POST
/
api
/
v1
/
webhooks
Create Webhook
curl --request POST \
  --url {protocol}://{domain}/api/v1/webhooks \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data 'url=<string>' \
  --data 'secret=<string>'
{
  "id": "<string>",
  "url": "<string>",
  "secret": "<string>",
  "createdAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Bearer token authentication supports:

  • Personal API tokens (PATs)
  • OAuth2 access tokens
  • JWT tokens

Example: Authorization: Bearer your_token_here

Body

application/x-www-form-urlencoded
url
string<uri>
required

Webhook endpoint URL

secret
string

Optional webhook secret for signature verification

Response

201 - application/json

Webhook created

id
string
url
string
secret
string
createdAt
string<date-time>
I