curl --request DELETE \
--url "https://api.nixflex.com/v1/integrations/webhook/number/%2B12025550123" \
--header "Authorization: Bearer $NIXFLEX_API_KEY"
import Nixflex from 'nixflex';
const c = new Nixflex({apiKey:process.env.NIXFLEX_API_KEY,baseUrl:'https://api.nixflex.com',maxRetries:0});
const result = await c.integrations.delete("webhook", "+12025550123");
// Keep private responses out of logs and AI conversations.
import os
from nixflex import Nixflex
with Nixflex(api_key=os.environ["NIXFLEX_API_KEY"], base_url="https://api.nixflex.com", max_retries=0) as c:
result = c.integrations.delete('webhook', '+12025550123')
nixflex integrations delete webhook '+12025550123' --confirm --json --base-url "https://api.nixflex.com"
{
"name": "delete_webhook",
"arguments": {
"phone_number": "+12025550123",
"slot": 1,
"confirm": true
}
}
{
"ok": true,
"deleted": true,
"phone_number": "+12025550100"
}
Webhooks
Clear first webhook
Clear the primary webhook setting for an owned Nixflex number. This request targets the primary slot independently of the secondary slot.
DELETE
/
integrations
/
webhook
/
number
/
{phoneNumber}
curl --request DELETE \
--url "https://api.nixflex.com/v1/integrations/webhook/number/%2B12025550123" \
--header "Authorization: Bearer $NIXFLEX_API_KEY"
import Nixflex from 'nixflex';
const c = new Nixflex({apiKey:process.env.NIXFLEX_API_KEY,baseUrl:'https://api.nixflex.com',maxRetries:0});
const result = await c.integrations.delete("webhook", "+12025550123");
// Keep private responses out of logs and AI conversations.
import os
from nixflex import Nixflex
with Nixflex(api_key=os.environ["NIXFLEX_API_KEY"], base_url="https://api.nixflex.com", max_retries=0) as c:
result = c.integrations.delete('webhook', '+12025550123')
nixflex integrations delete webhook '+12025550123' --confirm --json --base-url "https://api.nixflex.com"
{
"name": "delete_webhook",
"arguments": {
"phone_number": "+12025550123",
"slot": 1,
"confirm": true
}
}
{
"ok": true,
"deleted": true,
"phone_number": "+12025550100"
}
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
Do not send a request body.
The GET response returns the saved URL. Keep URLs private because they can contain credentials. Setting a URL does not test delivery or verify the destination. MCP delete preview masks the configured webhook URL; it does not expose the destination.
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
Clear the saved first webhook setting for an owned number. Each webhook slot is independent. Saved destinations receive call events when the relevant delivery feature is available.
Method: DELETE ·
Success: 200 ·
Scope: Owning account
The important part
- Clear only the intended target setting; already dispatched work cannot be recalled.
- Verify raw-body signatures and deduplicate durably before acknowledging events.
Authentication
SendAuthorization: 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.
Request fields
| Field | Type | Required | Default | Limits and meaning |
|---|---|---|---|---|
phoneNumber (path) | string | Yes | None | Owned E.164 number. URL-encode the leading plus sign. |
Response fields
200 OK returns the shape below. Nullable fields can be unknown or unset; do not turn null into zero or false.
| Field | Type | Meaning |
|---|---|---|
ok | boolean | Request succeeded. Value: true. |
deleted | boolean | Delete request completed. Value: true. |
phone_number | string | Owned phone number. |
Example request
Examples require Node/CLI 0.11.0 or later, Python 0.4.0 or later and MCP 0.5.0 or later. KeepNIXFLEX_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. Review the target and payload before this write.
curl --request DELETE \
--url "https://api.nixflex.com/v1/integrations/webhook/number/%2B12025550123" \
--header "Authorization: Bearer $NIXFLEX_API_KEY"
import Nixflex from 'nixflex';
const c = new Nixflex({apiKey:process.env.NIXFLEX_API_KEY,baseUrl:'https://api.nixflex.com',maxRetries:0});
const result = await c.integrations.delete("webhook", "+12025550123");
// Keep private responses out of logs and AI conversations.
import os
from nixflex import Nixflex
with Nixflex(api_key=os.environ["NIXFLEX_API_KEY"], base_url="https://api.nixflex.com", max_retries=0) as c:
result = c.integrations.delete('webhook', '+12025550123')
nixflex integrations delete webhook '+12025550123' --confirm --json --base-url "https://api.nixflex.com"
{
"name": "delete_webhook",
"arguments": {
"phone_number": "+12025550123",
"slot": 1,
"confirm": true
}
}
Example response
Illustrative200 response. Identifiers and values are examples; some optional or compatibility fields are omitted.
{
"ok": true,
"deleted": true,
"phone_number": "+12025550100"
}
Errors
Failures return anerror 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.
| Status | Code | Meaning | What to do |
|---|---|---|---|
| 404 | not_found | No matching owned resource or saved configuration was found. | Check the identifier and owning account. |
| 500 | server_error | The result could not be confirmed. | Read the current state before retrying a write. |
| 401 | unauthorized | The credential is missing or invalid. | Check the full account credential. |
| 429 | rate_limit_exceeded | The account request limit was reached. | Wait for Retry-After. Reconcile uncertain writes before resending. |