> ## 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.

# Request an owner claim

> Invite a verified recipient to claim an existing, unclaimed Nixflex API-only account. Sending the invitation does not complete the claim.

**FIXED · organisation** Owner manages keys, transfer and closure. Admin can manage ordinary resources, billing and Activity. Member can read ordinary resources.

**NOT OFFERED → do this instead · organisation** An Admin cannot manage another Admin or take ownership by editing a role. Use the Owner’s personal session and the ownership transfer workflow.

**YOU CAN CHANGE · organisation** Invite a colleague with a permitted role. The recipient claims the invitation.

**SCOPE · organisation** Use invitations to grant access to the same business resources. Review team activity under the relevant organisation.

[Read the compact AI rules](https://docs.nixflex.com/ai-rules.md#organisations)

Start an email invitation to claim this existing, unclaimed API-only account. The verified recipient must accept using their own personal login; this does not create an account or new credit.

Method: **POST** · Success: **201** · Scope: **Owning account**

**The important part**

* This starts the documented owner-claim flow.
* Requesting a claim does not itself prove ownership or grant Owner access.

[Business guide](https://docs.nixflex.com/guides/business/team.md) · [Developer guide](https://docs.nixflex.com/guides/developer/organisations.md) · [Glossary](https://docs.nixflex.com/guides/glossary.md)

## Authentication

Send `Authorization: Bearer KEY_ID:KEY_SECRET` for server-side organisation API-key authority, or a verified personal dashboard Bearer session. The shared API key has Owner authority for these methods; keep it server-side. A personal session is checked against current membership and MFA. This claim route accepts the existing API key only and refuses personal sessions. The account must have no active member or linked owner. The service must have organisations enabled; otherwise these routes return 404. Personal invitation acceptance, leaving and ownership transfer are separate dashboard flows and are not API-key methods. Send `Content-Type: application/json`.

## Request fields

Send a JSON object.

| Field | Type | Required | Default | Limits and meaning |
| - | - | - | - | - |
| `email` | string | Yes | None | Invited email; trimmed and lowercased by the service. Maximum 254 characters. |

Delivery can be sent, failed or unknown. A sent receipt confirms email-provider acceptance only. If delivery is uncertain, read the team list before deciding whether to resend. Never accept an invitation using the shared API key.

## Response fields

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

### New invitation receipt

| Field | Type | Meaning |
| - | - | - |
| `id` | string | UUID identifier. Format: uuid. |
| `delivery` | string | Email submission outcome; sent is not inbox delivery. Allowed: `"sent"`, `"failed"`, `"unknown"`. |
| `expires_in` | integer | Invitation lifetime in seconds. Value: `86400`. |

### Existing invitation receipt

| Field | Type | Meaning |
| - | - | - |
| `id` | string | UUID identifier. Format: uuid. |
| `delivery` | string | Stored delivery status. Allowed: `"pending"`, `"sent"`, `"failed"`, `"unknown"`. |
| `created` | boolean | An existing receipt was returned without a new invitation. Value: `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-146.json privately before using cURL or CLI; replace fixture credentials only in that private file. Review the target and payload before this write.

```json request-146.json theme={"dark"}
{
  "email": "owner@example.invalid"
}
```

```bash cURL theme={"dark"}
curl --request POST \
  --url "https://api.nixflex.com/v1/organisation/claim-invite" \
  --header "Authorization: Bearer $NIXFLEX_API_KEY" \
  --header "Content-Type: application/json" \
  --data-binary @request-146.json
```

```javascript Node theme={"dark"}
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.organisation.claimInvite("owner@example.invalid");
// Keep private responses out of logs and AI conversations.
```

```python Python theme={"dark"}
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.organisation.claim_invite('owner@example.invalid')
```

```powershell CLI (PowerShell) theme={"dark"}
# Save the documented JSON fields privately as request-146.json first.
nixflex organisation claimInvite --body '@request-146.json' --confirm --json --base-url "https://api.nixflex.com"
```

```json MCP theme={"dark"}
{
  "name": "claim_organisation_owner",
  "arguments": {
    "email": "owner@example.invalid",
    "confirm": true
  }
}
```

## Example response

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

```json Response theme={"dark"}
{
  "id": "11111111-1111-4111-8111-111111111111",
  "delivery": "sent",
  "expires_in": 86400
}
```

## 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.

| Status | Code | Meaning | What to do |
| - | - | - | - |
| 404 | [`not_found`](https://docs.nixflex.com/api-reference/errors#not_found) | Organisation routes are not enabled on this service. | Check deployment availability; do not retry unchanged. |
| 503 | [`organisation_unavailable`](https://docs.nixflex.com/api-reference/errors#organisation_unavailable) | The organisation action could not be confirmed. | Refresh the current state before trying again. |
| 403 | [`permission_denied`](https://docs.nixflex.com/api-reference/errors#permission_denied) | The current personal role does not allow this action. | Use an authorised personal session; do not share the organisation key. |
| 403 | [`membership_revoked`](https://docs.nixflex.com/api-reference/errors#membership_revoked) | The personal membership has ended. | Sign in again or contact the Owner. |
| 401 | [`invalid_token`](https://docs.nixflex.com/api-reference/errors#invalid_token) | The personal session is invalid or expired. | Sign in with your own login again. |
| 503 | [`auth_unavailable`](https://docs.nixflex.com/api-reference/errors#auth_unavailable) | The personal session could not be verified. | Retry the read later; reconcile uncertain changes. |
| 400 | [`invalid_invite`](https://docs.nixflex.com/api-reference/errors#invalid_invite) | The body email or role is missing or invalid. | Correct the request before retrying. |
| 409 | [`invalid_invite`](https://docs.nixflex.com/api-reference/errors#invalid_invite) | The normalised email is not valid. | Correct the request before retrying. |
| 409 | [`organisation_membership_conflict`](https://docs.nixflex.com/api-reference/errors#organisation_membership_conflict) | This identity already belongs to an account or the account is already claimed. | Read current members and invitations; resolve the conflict before retrying. |
| 409 | [`invite_already_pending`](https://docs.nixflex.com/api-reference/errors#invite_already_pending) | An unexpired invitation already exists. | Read current members and invitations; resolve the conflict before retrying. |
| 409 | [`organisation_member_limit`](https://docs.nixflex.com/api-reference/errors#organisation_member_limit) | The organisation seat limit has been reached. | Read current members and invitations; resolve the conflict before retrying. |
| 409 | [`organisation_invite_limit`](https://docs.nixflex.com/api-reference/errors#organisation_invite_limit) | The daily invitation limit has been reached. | Read current members and invitations; resolve the conflict before retrying. |
| 400 | [`invalid_json`](https://docs.nixflex.com/api-reference/errors#invalid_json) | The JSON body could not be parsed. | Correct the request before retrying. |
| 413 | [`payload_too_large`](https://docs.nixflex.com/api-reference/errors#payload_too_large) | The request body is too large. | Reduce the request body. |
| 401 | [`unauthorized`](https://docs.nixflex.com/api-reference/errors#unauthorized) | The credential is missing or invalid. | Check the full account credential. |
| 429 | [`rate_limit_exceeded`](https://docs.nixflex.com/api-reference/errors#rate_limit_exceeded) | The account request limit was reached. | Wait for Retry-After. Reconcile uncertain writes before resending. |

## Retry and idempotency

No idempotency key is accepted. After a timeout or 503, read the current team or organisation state before repeating the action. Invitation creation and resend can send email and consume quota; never replay them blindly.

## Related endpoints

* [Get organisation context](https://docs.nixflex.com/api-reference/organisation/get-organisation.md)
* [List organisation members](https://docs.nixflex.com/api-reference/organisation/get-organisation-members.md)
* [Errors and recovery](https://docs.nixflex.com/api-reference/errors.md#error-envelope)


## OpenAPI

````yaml api-reference/public.openapi.json POST /organisation/claim-invite
openapi: 3.1.0
info:
  title: Nixflex public API
  version: 1.0.0
  description: >-
    Nixflex API reference for agents, calls, messaging, knowledge, organisations
    and integrations. Authenticate with the owning account and follow each
    operation’s permissions, response and retry contract.
servers:
  - url: https://api.nixflex.com/v1
security:
  - bearerAuth: []
paths:
  /organisation/claim-invite:
    post:
      tags:
        - Organisation
      summary: Request an owner claim
      description: >-
        Start an email invitation to claim this existing, unclaimed API-only
        account. The verified recipient must accept using their own personal
        login; this does not create an account or new credit. Delivery can be
        sent, failed or unknown. A sent receipt confirms email-provider
        acceptance only. If delivery is uncertain, read the team list before
        deciding whether to resend. Never accept an invitation using the shared
        API key.
      operationId: organisationClaim
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                email:
                  type: string
                  description: Invited email; trimmed and lowercased by the service.
                  maxLength: 254
              required:
                - email
              additionalProperties: false
              description: ''
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                anyOf:
                  - type: object
                    properties:
                      id:
                        type: string
                        description: UUID identifier.
                        format: uuid
                      delivery:
                        type: string
                        description: Email submission outcome; sent is not inbox delivery.
                        enum:
                          - sent
                          - failed
                          - unknown
                      expires_in:
                        type: integer
                        description: Invitation lifetime in seconds.
                        const: 86400
                    required:
                      - id
                      - delivery
                      - expires_in
                    additionalProperties: false
                    description: ''
                  - type: object
                    properties:
                      id:
                        type: string
                        description: UUID identifier.
                        format: uuid
                      delivery:
                        type: string
                        description: Stored delivery status.
                        enum:
                          - pending
                          - sent
                          - failed
                          - unknown
                      created:
                        type: boolean
                        description: >-
                          An existing receipt was returned without a new
                          invitation.
                        const: false
                    required:
                      - id
                      - delivery
                      - created
                    additionalProperties: false
                    description: ''
              example:
                id: 11111111-1111-4111-8111-111111111111
                delivery: sent
                expires_in: 86400
        '400':
          description: >-
            invalid_invite: The body email or role is missing or invalid.
            invalid_json: The JSON body could not be parsed.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      type:
                        type: string
                        description: Error category.
                      code:
                        type: string
                        description: Machine-readable error code.
                      message:
                        type: string
                        description: Safe explanation.
                      doc_url:
                        type: string
                        description: Error documentation URL.
                      details:
                        type: object
                        additionalProperties: true
                    required:
                      - code
                      - message
                      - doc_url
                      - type
                    additionalProperties: false
                    description: ''
                required:
                  - error
                additionalProperties: false
                description: ''
        '401':
          description: >-
            invalid_token: The personal session is invalid or expired.
            unauthorized: The credential is missing or invalid.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      type:
                        type: string
                        description: Error category.
                      code:
                        type: string
                        description: Machine-readable error code.
                      message:
                        type: string
                        description: Safe explanation.
                      doc_url:
                        type: string
                        description: Error documentation URL.
                      details:
                        type: object
                        additionalProperties: true
                    required:
                      - code
                      - message
                      - doc_url
                      - type
                    additionalProperties: false
                    description: ''
                required:
                  - error
                additionalProperties: false
                description: ''
        '403':
          description: >-
            permission_denied: The current personal role does not allow this
            action. membership_revoked: The personal membership has ended.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      type:
                        type: string
                        description: Error category.
                      code:
                        type: string
                        description: Machine-readable error code.
                      message:
                        type: string
                        description: Safe explanation.
                      doc_url:
                        type: string
                        description: Error documentation URL.
                      details:
                        type: object
                        additionalProperties: true
                    required:
                      - code
                      - message
                      - doc_url
                      - type
                    additionalProperties: false
                    description: ''
                required:
                  - error
                additionalProperties: false
                description: ''
        '404':
          description: 'not_found: Organisation routes are not enabled on this service.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      type:
                        type: string
                        description: Error category.
                      code:
                        type: string
                        description: Machine-readable error code.
                      message:
                        type: string
                        description: Safe explanation.
                      doc_url:
                        type: string
                        description: Error documentation URL.
                      details:
                        type: object
                        additionalProperties: true
                    required:
                      - code
                      - message
                      - doc_url
                      - type
                    additionalProperties: false
                    description: ''
                required:
                  - error
                additionalProperties: false
                description: ''
        '409':
          description: >-
            invalid_invite: The normalised email is not valid.
            organisation_membership_conflict: This identity already belongs to
            an account or the account is already claimed.
            invite_already_pending: An unexpired invitation already exists.
            organisation_member_limit: The organisation seat limit has been
            reached. organisation_invite_limit: The daily invitation limit has
            been reached.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      type:
                        type: string
                        description: Error category.
                      code:
                        type: string
                        description: Machine-readable error code.
                      message:
                        type: string
                        description: Safe explanation.
                      doc_url:
                        type: string
                        description: Error documentation URL.
                      details:
                        type: object
                        additionalProperties: true
                    required:
                      - code
                      - message
                      - doc_url
                      - type
                    additionalProperties: false
                    description: ''
                required:
                  - error
                additionalProperties: false
                description: ''
        '413':
          description: 'payload_too_large: The request body is too large.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      type:
                        type: string
                        description: Error category.
                      code:
                        type: string
                        description: Machine-readable error code.
                      message:
                        type: string
                        description: Safe explanation.
                      doc_url:
                        type: string
                        description: Error documentation URL.
                      details:
                        type: object
                        additionalProperties: true
                    required:
                      - code
                      - message
                      - doc_url
                      - type
                    additionalProperties: false
                    description: ''
                required:
                  - error
                additionalProperties: false
                description: ''
        '429':
          description: 'rate_limit_exceeded: The account request limit was reached.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      type:
                        type: string
                        description: Error category.
                      code:
                        type: string
                        description: Machine-readable error code.
                      message:
                        type: string
                        description: Safe explanation.
                      doc_url:
                        type: string
                        description: Error documentation URL.
                      details:
                        type: object
                        additionalProperties: true
                    required:
                      - code
                      - message
                      - doc_url
                      - type
                    additionalProperties: false
                    description: ''
                required:
                  - error
                additionalProperties: false
                description: ''
        '503':
          description: >-
            organisation_unavailable: The organisation action could not be
            confirmed. auth_unavailable: The personal session could not be
            verified.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      type:
                        type: string
                        description: Error category.
                      code:
                        type: string
                        description: Machine-readable error code.
                      message:
                        type: string
                        description: Safe explanation.
                      doc_url:
                        type: string
                        description: Error documentation URL.
                      details:
                        type: object
                        additionalProperties: true
                    required:
                      - code
                      - message
                      - doc_url
                      - type
                    additionalProperties: false
                    description: ''
                required:
                  - error
                additionalProperties: false
                description: ''
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        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.

````

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