Skip to main content
createWebhookTarget
Owner/admin session only; API keys and viewers cannot manage alerts. Control calls and outbound attempts use no REST credits. Separate alerts/odds grants, account-owned key, expiring alerts purpose review and current source access are required for rules and dispatch. POST request_id is an account-wide UUID idempotency key; retry identical content. Signing secrets appear once, including after rotation; duplicate mutation responses omit them. No external delivery is enabled automatically. POST /v1/account/webhook-targets

Authentication

AccountSession

Parameters

Request body

Responses

Full request and response schemas: OpenAPI. Authentication · Prices and coverage · Errors and credits.

Authorizations

Authorization
string
header
required

Clerk session JWT, or one-hour CLI-only local session. No cookie authentication.

Headers

X-Oddswire-Account
string<uuid>

UUID of an account where the signed-in user is a member; defaults to their oldest account.

Body

application/json
name
string
required
request_id
string
required
url
string
required

Response

Account ledger response; no-store. Key secrets appear only once on creation/rotation. Lists contain at most 100 recent entries, active keys first.

data
object[]
required
meta
object
required
missing
object[]
required