Skip to main content
POST
Register or update a webhook

Authorizations

Authorization
string
header
required

Bearer token obtained from POST /api/v1.1/auth/token.

Body

application/json
operator
string
required
Example:

"SpenzaJ"

network
string
required
Example:

"T-Mobile"

eventType
enum<string>
required
Available options:
sms,
voice,
both
authentication
object
required

Credential your endpoint requires — Spenza presents it when calling you. This is not a payload-signing scheme (see signingSecret/X-Spenza-Signature for that).

webhookUrls
object
required
retryPolicy
object
status
enum<string>
default:active
Available options:
active,
inactive
description
string
update
boolean
default:false

Set true to overwrite an existing registration for this operator+network. Coerced via class-transformer — sending the string "false" is truthy and also overwrites; send a real JSON boolean.

Response

Registered (or updated, if update:true).