Operator Api
Webhook endpoints
Configure webhook endpoint records through the operator API.
Webhook endpoints
Manage webhook endpoints for authenticated operator.
Paths
GET /api/operator/webhooks/endpointsPOST /api/operator/webhooks/endpointsPATCH /api/operator/webhooks/endpoints/{id}
Required scopes
webhooks:readwebhooks:write
Create body
{
"url": "https://operator.example/webhooks/openpoly",
"secret": "whsec_...",
"enabled_events": [
"mini_app.trade.processed",
"mini_app.trade.failed"
],
"max_attempts": 6,
"timeout_seconds": 5
}
Rules
- HTTPS required except localhost or
127.0.0.1 - invalid events ->
400 INVALID_ENABLED_EVENTS - patch status must be
activeordisabled - response exposes
has_secret, never raw secret
Response fields
idurlstatusenabled_eventsmax_attemptstimeout_secondshas_secretcreated_atupdated_at
