curl --request DELETE \
--url "https://api.nixflex.com/v1/integrations/custom-functions/number/%2B12025550123/11111111-1111-4111-8111-111111111111" \
--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.deleteFunction("+12025550123", "11111111-1111-4111-8111-111111111111");
// 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_function('+12025550123', '11111111-1111-4111-8111-111111111111')
nixflex integrations deleteFunction '+12025550123' 11111111-1111-4111-8111-111111111111 --confirm --json --base-url "https://api.nixflex.com"
{
"ok": true,
"deleted": true,
"id": "11111111-1111-4111-8111-111111111111",
"phone_number": "+12025550100"
}
Custom functions
Delete a custom function
Delete one custom function by its account, Nixflex number and function ID. Review the response and missing-function behaviour before retrying.
DELETE
/
integrations
/
custom-functions
/
number
/
{phoneNumber}
/
{id}
curl --request DELETE \
--url "https://api.nixflex.com/v1/integrations/custom-functions/number/%2B12025550123/11111111-1111-4111-8111-111111111111" \
--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.deleteFunction("+12025550123", "11111111-1111-4111-8111-111111111111");
// 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_function('+12025550123', '11111111-1111-4111-8111-111111111111')
nixflex integrations deleteFunction '+12025550123' 11111111-1111-4111-8111-111111111111 --confirm --json --base-url "https://api.nixflex.com"
{
"ok": true,
"deleted": true,
"id": "11111111-1111-4111-8111-111111111111",
"phone_number": "+12025550100"
}
FIXED · number When website functions are enabled, eligible enabled functions on that number can be offered to visitors. A visitor ID groups a conversation and cannot authorise access to your own customer records.
NOT OFFERED → do this instead · operation Putting a new action tag like [BOOK_NOW] in a prompt does not create a function. Configure a number-scoped function with its argument schema, or use a supported phone booking integration.
YOU CAN CHANGE · number Choose a supported name, HTTPS destination and HTTP method. Keep credentials in trusted configuration and return only the response fields the agent needs.
SCOPE · operation A configured function can call your service with validated arguments. Make each public function safe for its intended audience.
Read the compact AI rules
Remove one custom function scoped to the account, number and function ID. A missing matching row also returns success.
Do not send a request body.
MCP does not offer this operation because it disconnects an integration used by calls; use the API, Node, CLI or Python.
Method: DELETE ·
Success: 200 ·
Scope: Owning account
The important part
- Clear only the intended target setting; already dispatched work cannot be recalled.
- Verify signed inputs before executing consequential work.
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. |
id (path) | string | Yes | None | Custom function ID returned by create or list for this number. |
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. |
id | string | Requested function ID. |
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/custom-functions/number/%2B12025550123/11111111-1111-4111-8111-111111111111" \
--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.deleteFunction("+12025550123", "11111111-1111-4111-8111-111111111111");
// 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_function('+12025550123', '11111111-1111-4111-8111-111111111111')
nixflex integrations deleteFunction '+12025550123' 11111111-1111-4111-8111-111111111111 --confirm --json --base-url "https://api.nixflex.com"
Example response
Illustrative200 response. Identifiers and values are examples; some optional or compatibility fields are omitted.
{
"ok": true,
"deleted": true,
"id": "11111111-1111-4111-8111-111111111111",
"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 |
|---|---|---|---|
| 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. |