latestOpenAPI 3.1.02026-08-211286041.7 MB
b0c8a1820333
Endpoint
Create Endpoint
Create a new endpoint for the application.
When secret is null the secret is automatically generated (recommended).
post/api/v1/app/{app_id}/endpoint
Path parameters
app_idstring required
The Application's ID or UID.
Example:unique-identifier
The Application's ID or UID.
Headers
idempotency-keystring
The request's idempotency key
Request body
Example request
{
"channels": [
"project_123",
"group_2"
],
"description": "An example endpoint name",
"eventTypes": [
"user.signup",
"user.deleted"
],
"headers": {
"X-Example": "123",
"X-Foobar": "Bar"
},
"secret": "whsec_C2FVsBQIhrscChlQIMV+b5sSYspob7oD",
"uid": "unique-identifier",
"url": "https://example.com/webhook/"
}Response
Example response
{
"channels": [
"project_123",
"group_2"
],
"eventTypes": [
"user.signup",
"user.deleted"
],
"id": "ep_1srOrx2ZWZBpBUvZwXKQmoEYga2",
"uid": "unique-identifier",
"url": "https://example.com/webhook/"
}