Skip to main content
POST
/
v2
/
workspaces
/
{workspace_id}
/
webhooks
Get Or Create Webhook Endpoint
curl --request POST \
  --url http://localhost:8000/v2/workspaces/{workspace_id}/webhooks \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "url": "<string>"
}'
{
  "id": "<string>",
  "workspace_id": "<string>",
  "url": "<string>",
  "created_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

workspace_id
string
required

Workspace ID

Body

application/json

Webhook endpoint parameters

url
string
required

Response

Successful Response

id
string
required
workspace_id
string | null
required
url
string
required
created_at
string<date-time>
required