Skip to main content
POST
/
v1
/
projects
/
{projectId}
/
webhooks
Create webhook
curl --request POST \
  --url https://api.pathors.com/v1/projects/{projectId}/webhooks \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "url": "<string>",
  "events": [
    "<string>"
  ],
  "secret": "<string>"
}
'
{
  "id": "<string>",
  "url": "<string>",
  "events": [
    "<string>"
  ]
}

Authorizations

Authorization
string
header
required

Developer key created from the dashboard (Settings → Developer Keys)

Path Parameters

projectId
string
required

The ID of your project

Body

application/json
url
string<uri>
required
events
string[]
required
Minimum array length: 1
secret
string

Response

Created

id
string
required
url
string
required
events
string[]
required