Skip to main content
PUT
FIXED · organisation MUST With organisations enabled, each organisation has one signing secret. Send the human Owner to the dashboard. Never ask for it in chat or expose it to AI tools.
An authorised server can use an Owner session or the organisation API credential. Admin and Member sessions cannot retrieve it. Store it on the receiving server. Without organisations, the webhook signing secret is only the owning credential’s KEY_SECRET part. In either mode pass the webhook signing secret as keySecret to the Node verifier.
NOT OFFERED → do this instead · number call.bookings has no account field or per-number secret. After signature verification, look up number in your own tenant table. It is the business to number inbound and from number outbound. YOU CAN CHANGE · number Set delivery destinations per number. Pre-call settings can be scoped to an agent or number. Keep the delivery destination and your signature-verification secret separate. SCOPE · operation Verify X-Nixflex-Signature (t=<timestamp>,v1=<hex>) with HMAC-SHA256 over timestamp + ”.” + the original raw request body. Compare the digest in constant time and enforce a freshness policy before trusting the payload. Read the compact AI rules Set the pre-call gate setting for an owned number. A number-specific gate overrides its agent default. Clearing it restores the agent default when one exists.
Method: PUT ·
Success: 200 ·
Scope: Owning account
The important part
  • Save the setting for the exact owned target, then read it back to confirm.
  • The five-second pre-call hook is fail-open; it is not a guaranteed call-blocking control.

Authentication

Send Authorization: Bearer KEY_ID:KEY_SECRET using the owning account’s server-side credential. When personal dashboard sessions are enabled, Owner and Admin sessions can write these settings; Member sessions can read only. Ownership checks still apply. Send Content-Type: application/json.

Request fields

Send a JSON object. GET shows only the URL at this level. An unset number URL can still inherit the agent gate. This settings endpoint does not invoke the gate or validate its response.

Response fields

200 OK returns the shape below. Nullable fields can be unknown or unset; do not turn null into zero or false.

Example request

Examples require Node/CLI 0.11.0 or later, Python 0.4.0 or later and MCP 0.5.0 or later. Keep NIXFLEX_API_KEY in your private process environment. The cURL example uses Bash. Use approved owned fixtures and keep configuration responses private. Python shows sync usage; AsyncNixflex uses the same method with async with and await. Configure the existing MCP installation for the same account at https://api.nixflex.com. Save the request JSON fields from the example below in request-40.json privately before using cURL or CLI; replace fixture credentials only in that private file. Review the target and payload before this write.
request-40.json
MCP does not offer this operation because it accepts private credentials or executable settings; use the API, Node, CLI or Python.

Example response

Illustrative 200 response. Identifiers and values are examples; some optional or compatibility fields are omitted.

Errors

Failures return an error object with code, message, doc_url and optional details. Each code links to the shared error catalog. Read the message and details before deciding whether to resend.

Retry and idempotency

The operation writes one saved setting and has no idempotency token. Read the current value after an uncertain response. Repeating it can overwrite a newer change, so reconcile before resending.

Authorizations

Authorization
string
header
required

KEY_ID:KEY_SECRET from the owning account. Keep it server-side. A verified personal dashboard Bearer session may be used where the operation documents role-based access.

Path Parameters

phoneNumber
string
required

Owned E.164 number. URL-encode the leading plus sign.

Body

application/json
url
string
required

HTTPS destination. The handler trims the value and requires the https:// prefix.

Response

OK

ok
boolean
required

Request succeeded.

phone_number
string
required

Owned phone number.

provider
string
required

Integration identifier.

Allowed value: "precall"