Skip to main content
POST
Create a webhook endpoint

Authorizations

Authorization
string
header
required

API token (okt_...) or dashboard JWT

Headers

Idempotency-Key
string

8-128 chars of [A-Za-z0-9_.:-]. Same key and body replays the stored response for 24h; same key with another body returns 422.

Pattern: ^[\w.:-]{8,128}$
X-Request-ID
string

Correlation id (1-128 chars of [A-Za-z0-9_.-]). Echoed in the response; generated when absent or unsafe.

Pattern: ^[\w.-]{1,128}$

Body

application/json
url
string
required
Required string length: 1 - 2048
eventTypes
string[]
required
Required array length: 1 - 100 elements
Required string length: 1 - 64
name
string
Required string length: 1 - 128
description
string
Maximum string length: 1000
payloadMode
enum<string>
Available options:
standard,
custom
deliveryProfile
enum<string>
Available options:
standard,
panzo
method
enum<string>
Available options:
GET,
POST,
PUT,
PATCH,
DELETE
headers
object[]
Maximum array length: 20
bodyType
enum<string>
Available options:
json,
form,
raw,
none
bodyTemplate
string
auth
object
conditions
object[] | null
Maximum array length: 20
agentIds
string[]
Maximum array length: 50
Required string length: 1 - 128
timeoutMs
integer
Required range: 1000 <= x <= 30000
retryOnFailure
boolean
maxRetries
integer
Required range: 0 <= x <= 10

Response

Endpoint created

success
boolean
required
requestId
string
required
timestamp
string<date-time>
required
data
any
required
meta
object

Pagination: { limit, nextCursor } or { page, limit, total }