> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nixflex.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Separate login security and API authority

> Keep Nixflex personal sessions, two-factor authentication and organisation API keys separate when designing access to your application.

**FIXED · platform** Raw HTTP base URL: `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](https://docs.nixflex.com/ai-rules.md#account-access)

Use personal dashboard sessions for people and keep the organisation API credential on your server.

Audience: **Developers** · Credential: **Server only**

**The important part**

* A Member session and an organisation key have different authority.
* Personal two-factor authentication does not add a role restriction to a copied API key.
* Check ownership in your application before calling Nixflex for a customer.

[Business guide](https://docs.nixflex.com/guides/business/account-security.md) · [Glossary](https://docs.nixflex.com/guides/glossary.md)

## Choose the right identity

| Identity | Intended use | Boundary |
| - | - | - |
| Personal dashboard login | A teammate using the dashboard | Current organisation membership, role and personal authentication checks. |
| Organisation API key | Your trusted server integrating with Nixflex | Owner authority for documented API operations; keep it out of browsers. |
| Short-lived media access | An eligible dashboard listening session | Scoped access; it is not the organisation API key. |

Do not expose a shared key to a browser to work around a Member refusal. A server that holds the key must enforce its own signed-in-user permissions and account-to-resource mapping.

## Personal two-factor setup

The dashboard's **Settings → Security** flow verifies an authenticator code before enabling two-factor authentication. A second authenticator can provide a backup. This is a personal-login workflow, not a public `/v1` API for enrolling users or changing their roles. Link people to [account security](https://docs.nixflex.com/guides/business/account-security.md).

## Handle authentication failures

Stop on invalid credentials and verify the API host and complete key privately. For 403, check the operation's role requirement. For a fresh-login requirement, let the person complete the dashboard sign-in flow; never collect their password or one-time code in an agent prompt.

Log a request ID and safe error code. Omit account keys, auth headers, signed media URLs and customer content. Rotate a key only through the Owner's deliberate key-management workflow and update dependent servers together.

## Next steps

* [Authenticate API requests](https://docs.nixflex.com/authentication.md)
* [Team permissions](https://docs.nixflex.com/guides/developer/team/invitations-and-roles.md)
* [Build a customer app](https://docs.nixflex.com/guides/developer/build-with-ai.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.