curl --request POST \
--url "https://api.nixflex.com/v1/keys" \
--header "Content-Type: application/json" \
--data '{"name":"Example API account"}' \
--output "$NXF_SECRET_RESPONSE_FILE"
import Nixflex from 'nixflex';
const baseUrl = 'https://api.nixflex.com';
const result = await Nixflex.createKey({name:"Example API account"}, baseUrl);
// Handle result privately; do not log secrets or call content.
import os, json
from pathlib import Path
from nixflex import Nixflex
base_url = "https://api.nixflex.com"
result = Nixflex.create_key(name="Example API account", base_url=base_url)
# AsyncNixflex supports the same calls with await (and async with).
nixflex keys create --name "Example API account" --confirm --base-url https://api.nixflex.com --json > "$NXF_SECRET_RESPONSE_FILE"
{
"message": "API key created. Save your key_secret — it will not be shown again.",
"key_id": "nxf_EXAMPLE",
"key_secret": "nxfs_REPLACE_WITH_SAVED_SECRET"
}
Account and usage
Create an API account
Create a separate Nixflex API-only account and its credential. This does not add another key to an existing account.
POST
/
keys
curl --request POST \
--url "https://api.nixflex.com/v1/keys" \
--header "Content-Type: application/json" \
--data '{"name":"Example API account"}' \
--output "$NXF_SECRET_RESPONSE_FILE"
import Nixflex from 'nixflex';
const baseUrl = 'https://api.nixflex.com';
const result = await Nixflex.createKey({name:"Example API account"}, baseUrl);
// Handle result privately; do not log secrets or call content.
import os, json
from pathlib import Path
from nixflex import Nixflex
base_url = "https://api.nixflex.com"
result = Nixflex.create_key(name="Example API account", base_url=base_url)
# AsyncNixflex supports the same calls with await (and async with).
nixflex keys create --name "Example API account" --confirm --base-url https://api.nixflex.com --json > "$NXF_SECRET_RESPONSE_FILE"
{
"message": "API key created. Save your key_secret — it will not be shown again.",
"key_id": "nxf_EXAMPLE",
"key_secret": "nxfs_REPLACE_WITH_SAVED_SECRET"
}
FIXED · platform Raw HTTP base URL:
Send a JSON object. Unknown fields are not a supported way to configure an account. Signup is limited to three requests per hour per address. Existing application keys belong to their existing account; use rotation to replace a secret.
https://api.nixflex.com/v1. Node and Python SDK base URL: https://api.nixflex.com. The SDK adds /v1. Keep the credential on your server.
NOT OFFERED → do this instead · platform There is one public API: https://api.nixflex.com/v1. There is no sandbox. Test with your own number on production. Use local fixtures when you do not need a real call or text.
YOU CAN CHANGE · account Rotate the credential and update its callers together.
SCOPE · account A platform uses one Nixflex account for all its businesses, with one agent per business or a shared agent. Separate accounts only when businesses sign up themselves. No platform account-creation loop. Sub-accounts are not offered. Authorise each tenant on your server.
In Help choose New request for a capacity review, complaint or problem, abuse report, or other issue. Follow Your open chats. Owners and Admins see organisation tickets. Members see their own while authorised. Close chat removes it from the open list. A staff-closed chat can surface until its final reply is read. POST /v1/support/tickets/chat-summary is a read. Use watch_ticket to check a displayed ticket outside the current page.
Use /v1/support/tickets. A personal session sends X-Nixflex-Expected-Account with the original workspace’s public key_id for list, detail, chat-summary, writes and receipt lookup. Organisation keys select their own account. On 409 account_changed, discard the stale draft and refresh Help in the intended workspace.
Create, reply and solve each need an Idempotency-Key. Reply uses X-Expected-Revision. Solve sends version in JSON. Lost response? The original person can GET /v1/support/tickets/requests/{request_key} with the original account header. A 200 returns the current ticket and original receipt. 404 means missing or inaccessible. Never resend in a different workspace. Organisation keys can replay only the identical write with its key, body and revision.
Read the compact AI rules
Create a separate API-only account and its credential. This does not add another key to an existing organisation, create a dashboard login, or grant trial credit.
Method: POST ·
Success: 201 ·
Scope: New API account
The important part
A platform uses one Nixflex account for all its businesses. Give each business an agent or share one agent across several numbers. Use separate accounts only when each business signs up itself. Do not build an account-creation loop. Sub-accounts are not offered. STOP for calls and texts and the simultaneous-call budget both apply across the account.
- This creates a real account credential; save it in secret storage.
- A lost response must be reconciled before creating another account.
Authentication
This endpoint is unauthenticated. Do not send an existing API credential. Signup is limited to three requests per hour per IP address. SendContent-Type: application/json.
Request fields
Send a JSON object.| Field | Type | Required | Default | Limits and meaning |
|---|---|---|---|---|
name | string or null | No | null | Optional account label. Omitted or empty is stored as null; no route-level text length limit is declared. |
email | string or null | No | null | Optional contact label. This route does not verify ownership or validate email format. Omitted or empty becomes null. |
Response fields
201 Created returns the shape below. Nullable fields can be unknown or unset; do not turn null into zero or false.
| Field | Type | Meaning |
|---|---|---|
message | string | Save the returned credential securely; the secret is returned only by creation or rotation. |
key_id | string | Stable API account identifier. |
key_secret | string | Sensitive secret. Never log, share or commit it. |
Example request
This creates a separate API-only account. Run it only as an intentional signup. The examples use https://api.nixflex.com and need no existing credential. SDK and CLI examples require Node/CLI 0.11.0 or later or Python 0.4.0 or later. Account signup is intentionally absent from MCP; do not emulate it with another tool. SetNXF_SECRET_RESPONSE_FILE to a new file in a private, access-restricted location before using cURL or CLI. Save the returned secret in your secret store; do not log or commit the response.
curl --request POST \
--url "https://api.nixflex.com/v1/keys" \
--header "Content-Type: application/json" \
--data '{"name":"Example API account"}' \
--output "$NXF_SECRET_RESPONSE_FILE"
import Nixflex from 'nixflex';
const baseUrl = 'https://api.nixflex.com';
const result = await Nixflex.createKey({name:"Example API account"}, baseUrl);
// Handle result privately; do not log secrets or call content.
import os, json
from pathlib import Path
from nixflex import Nixflex
base_url = "https://api.nixflex.com"
result = Nixflex.create_key(name="Example API account", base_url=base_url)
# AsyncNixflex supports the same calls with await (and async with).
nixflex keys create --name "Example API account" --confirm --base-url https://api.nixflex.com --json > "$NXF_SECRET_RESPONSE_FILE"
Example response
Illustrative201 response. Identifiers and values are examples; some optional or compatibility fields are omitted.
{
"message": "API key created. Save your key_secret — it will not be shown again.",
"key_id": "nxf_EXAMPLE",
"key_secret": "nxfs_REPLACE_WITH_SAVED_SECRET"
}
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 |
|---|---|---|---|
| 400 | invalid_json | The request body is not valid JSON. | Fix the JSON syntax before sending it. |
| 413 | payload_too_large | The JSON body exceeds the request parser limit. | Send a smaller JSON body. |
| 429 | key_creation_rate_limited | The address has reached the signup limit of three requests per hour. | Wait for Retry-After; do not create extra accounts to work around a refusal. |
| 500 | server_error | The account result could not be confirmed. | Do not repeat signup automatically; ask support to reconcile the named request. |
Retry and idempotency
No idempotency key is documented. Each successful signup creates a different account. A lost response can leave a created account whose secret you did not receive. Do not automatically repeat signup; reconcile through support. There is no public API-only account deletion endpoint.Related endpoints
Body
application/json