Skip to main content
POST
/
v1
/
apps
/
{app_id}
/
webhooks
Create webhook endpoint
curl --request POST \
  --url https://{defaultHost}/v1/apps/{app_id}/webhooks \
  --header 'Authorization: Bearer <token>' \
  --header 'X-Authorization: <api-key>'
{
  "webhook_endpoint": {
    "id": "<string>",
    "app_id": "<string>",
    "url": "https://example.com/webhooks",
    "event_types": [
      "user.created",
      "user.updated",
      "*"
    ],
    "secret": "whsec_1234567890abcdef",
    "retry_limit": 3,
    "enabled": true,
    "last_ping_at": "2023-11-07T05:31:56Z",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

API Secret token

X-Authorization
string
header
required

User Access token

Path Parameters

app_id
string
required

Application ID

Response

created

webhook_endpoint
object