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

# List organisation activity

> Read Nixflex organisation activity, newest first, with up to 50 events per JSON page. Check role permissions and paging rules.

**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)

Read current organisation activity, newest first. JSON pages contain up to 50 events. Owner and Admin personal sessions can read activity.

Method: **GET** · Success: **200** · Scope: **Owning account**

**The important part**

* Use activity as an audit trail within its retention limits.
* An activity row is not a complete provider delivery or billing record.

[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. Owner and Admin personal sessions are allowed. Members are refused. 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.

## Request fields

| Field | Type | Required | Default | Limits and meaning |
| - | - | - | - | - |
| `before` (query) | string | No | Omitted | Decimal event cursor. Pattern: `^\d{1,18}$`. |
| `actor` (query) | string | No | Omitted | Filter by person UUID. Format: uuid. |
| `from` (query) | string | No | Omitted | Inclusive UTC start day; clamped to retained activity, at most 12 months. Format: date. |
| `to` (query) | string | No | Omitted | Inclusive UTC end day; capped at now. Format: date. |
| `format` (query) | string | No | Omitted | Use csv for a streamed export; other values keep JSON. The examples use JSON. |

Do not send a request body.

The from date must precede the exclusive day after to and cannot be in the future. Dates must be real YYYY-MM-DD dates. CSV uses 500-row chunks and streams the full matching result; 500 is not a total export limit. Permissions are checked for every chunk. An interrupted download is incomplete. CSV columns are When, Action and Result. Use the date filters for a streamed CSV export. Activity IDs are strings. Use the cursor returned by the activity read.

For CSV, Node uses `organisation.activityCsv` and Python uses `organisation.activity_csv` as byte iterators; the CLI uses `organisation activityCsv --set from=2026-10-01 --set to=2026-10-31 --output activity.csv`. The CLI publishes only a completed new file and never overwrites. Discard partial SDK output on failure. CSV is not an MCP tool.

## 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 |
| - | - | - |
| `events` | array of object | Up to 50 events. Maximum 50 items. |
| `events[].id` | string | Decimal event ID. Treat as an opaque string. |
| `events[].created_at` | string | UTC timestamp. Format: date-time. |
| `events[].actor_id` | string or null | UUID identifier. Format: uuid. |
| `events[].actor` | string | Human-readable actor label. |
| `events[].sentence` | string | Human-readable action sentence. |
| `events[].result` | string | Displayed outcome. Allowed: `"Done"`, `"Not allowed"`, `"Not confirmed"`. |
| `next_cursor` | string or null | Pass as before on the next JSON request; null when no full page remains. |

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

```bash cURL theme={"dark"}
curl --request GET \
  --url "https://api.nixflex.com/v1/organisation/activity?from=2026-10-01&to=2026-10-31" \
  --header "Authorization: Bearer $NIXFLEX_API_KEY"
```

```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.activity({from:"2026-10-01",to:"2026-10-31"});
// 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.activity(from_='2026-10-01', to='2026-10-31')
```

```powershell CLI (PowerShell) theme={"dark"}
nixflex organisation activity --set from=2026-10-01 --set to=2026-10-31 --json --base-url "https://api.nixflex.com"
```

```json MCP theme={"dark"}
{
  "name": "list_organisation_activity_filtered",
  "arguments": {
    "from": "2026-10-01",
    "to": "2026-10-31"
  }
}
```

## Example response

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

```json Response theme={"dark"}
{
  "events": [],
  "next_cursor": null
}
```

## 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_filter`](https://docs.nixflex.com/api-reference/errors#invalid_filter) | An activity cursor, actor or date filter is invalid. | Correct the request before retrying. |
| 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

This is a read-only request. Retry transient connection or server failures with bounded backoff; respect Retry-After for 429. Do not retry validation or ownership errors unchanged. A later read can return newer state.

## 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 GET /organisation/activity
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/activity:
    get:
      tags:
        - Organisation
      summary: List organisation activity
      description: >-
        Read current organisation activity, newest first. JSON pages contain up
        to 50 events. Owner and Admin personal sessions can read activity. The
        from date must precede the exclusive day after to and cannot be in the
        future. Dates must be real YYYY-MM-DD dates. CSV uses 500-row chunks and
        streams the full matching result; 500 is not a total export limit.
        Permissions are checked for every chunk. An interrupted download is
        incomplete. CSV columns are When, Action and Result. Use the date
        filters for a streamed CSV export. Activity IDs are strings. Use the
        cursor returned by the activity read.


        For CSV, Node uses organisation.activityCsv and Python uses
        organisation.activity_csv as byte iterators; the CLI uses organisation
        activityCsv --set from=2026-10-01 --set to=2026-10-31 --output
        activity.csv. The CLI publishes only a completed new file and never
        overwrites. Discard partial SDK output on failure. CSV is not an MCP
        tool.
      operationId: organisationActivity
      parameters:
        - name: before
          in: query
          required: false
          schema:
            type: string
            description: Decimal event cursor.
            pattern: ^\d{1,18}$
        - name: actor
          in: query
          required: false
          schema:
            type: string
            description: Filter by person UUID.
            format: uuid
        - name: from
          in: query
          required: false
          schema:
            type: string
            description: >-
              Inclusive UTC start day; clamped to retained activity, at most 12
              months.
            format: date
        - name: to
          in: query
          required: false
          schema:
            type: string
            description: Inclusive UTC end day; capped at now.
            format: date
        - name: format
          in: query
          required: false
          schema:
            type: string
            description: >-
              Use csv for a streamed export; other values keep JSON. The
              examples use JSON.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  events:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          description: Decimal event ID. Treat as an opaque string.
                        created_at:
                          type: string
                          description: UTC timestamp.
                          format: date-time
                        actor_id:
                          type:
                            - string
                            - 'null'
                          description: UUID identifier.
                          format: uuid
                        actor:
                          type: string
                          description: Human-readable actor label.
                        sentence:
                          type: string
                          description: Human-readable action sentence.
                        result:
                          type: string
                          description: Displayed outcome.
                          enum:
                            - Done
                            - Not allowed
                            - Not confirmed
                      required:
                        - id
                        - created_at
                        - actor_id
                        - actor
                        - sentence
                        - result
                      additionalProperties: false
                      description: ''
                    description: Up to 50 events.
                    maxItems: 50
                  next_cursor:
                    type:
                      - string
                      - 'null'
                    description: >-
                      Pass as before on the next JSON request; null when no full
                      page remains.
                required:
                  - events
                  - next_cursor
                additionalProperties: false
                description: ''
              example:
                events: []
                next_cursor: null
            text/csv:
              schema:
                type: string
              example: "When,Action,Result\r\n"
        '400':
          description: 'invalid_filter: An activity cursor, actor or date filter is 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: ''
        '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: ''
        '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.