Naturali Activity API

Read the autonomous-execution activity feed

GitHub OpenAPI

Operations 2

GET /v1/projects/{project_id}/activity List activity feed entries #
GET /v1/projects/{project_id}/activity/export Export the activity feed as NDJSON #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/naturali-ai:naturali-ai-activity-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

naturali-ai-activity-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: naturali.ai Activity API
  version: 1.0.0
  description: The naturali.ai API. This document is the merge of every per-resource spec under openapi/v1/ — the single wire contract for all v1 endpoints.
  contact:
    name: naturali.ai
    url: https://naturali.ai
servers:
- url: https://api.naturali.ai
  description: Host of your naturali.ai deployment; every path carries the /v1 prefix.
security:
- bearerAuth: []
- oauth2:
  - mcp:access
tags:
- name: Activity
  description: Read the autonomous-execution activity feed
paths:
  /v1/projects/{project_id}/activity:
    parameters:
    - $ref: '#/components/parameters/ProjectId'
    get:
      tags:
      - Activity
      summary: List activity feed entries
      description: Returns activity entries for a project, newest first, filterable by kind, severity, agent, generation and orchestration run — every filter composable with the rest. Pass the previous page's `next_cursor` as `cursor` to fetch the next one; a `null` `next_cursor` means there is no more data.
      operationId: listActivity
      parameters:
      - name: kind
        in: query
        description: Filter by activity kind
        schema:
          type: string
          enum:
          - action_executed
          - approval_created
          - approval_resolved
          - exception_created
          - schedule_fired
          - share_cap_exceeded
          - share_resumed
          - share_revoked
          - share_suspended
          - tool_resolution_failed
          - usage_quantity_invalid
      - name: severity
        in: query
        description: Filter by severity
        schema:
          type: string
          enum:
          - info
          - warning
          - critical
      - name: agent_id
        in: query
        description: Filter to entries produced by one agent. Composable with every other filter — entries carry one agent, one generation and one run, so naming two narrows to the rows where both hold.
        schema:
          type: string
          example: agent_V1StGXR8Z5jdHi6B
      - name: generation_id
        in: query
        description: 'Filter to entries produced during one agent generation. This is what turns `tool_resolution_failed` from alertable into usable: the warning for a suspect turn is one query rather than a scan of the project''s feed.'
        schema:
          type: string
          example: gen_V1StGXR8Z5jdHi6B
      - name: orchestration_run_id
        in: query
        description: Filter to entries produced during one orchestration run.
        schema:
          type: string
          example: orch_run_V1StGXR8Z5jdHi
      - $ref: '#/components/parameters/Limit'
      - $ref: '#/components/parameters/Cursor'
      responses:
        '200':
          description: Page of activity entries
          content:
            application/json:
              schema:
                allOf:
                - $ref: '#/components/schemas/Page'
                - properties:
                    data:
                      type: array
                      items:
                        $ref: '#/components/schemas/ActivityEntry'
        '400':
          description: Malformed cursor, or one sent with other filters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          $ref: '#/components/responses/ProjectNotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
  /v1/projects/{project_id}/activity/export:
    parameters:
    - $ref: '#/components/parameters/ProjectId'
    get:
      tags:
      - Activity
      summary: Export the activity feed as NDJSON
      description: 'Streams a project''s activity entries as newline-delimited JSON — one entry object per line, **oldest first**, where the feed itself reads newest first: a feed answers what just happened, and a file is read start to end. `project_id` is required: the export is per-project by design. Filters behave exactly as they do on the list endpoint.'
      operationId: exportActivity
      x-mcp-exclude: true
      parameters:
      - name: kind
        in: query
        description: Only entries of this kind
        schema:
          type: string
          enum:
          - action_executed
          - approval_created
          - approval_resolved
          - exception_created
          - schedule_fired
          - share_cap_exceeded
          - share_resumed
          - share_revoked
          - share_suspended
          - tool_resolution_failed
          - usage_quantity_invalid
      - name: severity
        in: query
        description: Only entries of this severity
        schema:
          type: string
          enum:
          - info
          - warning
          - critical
      - name: agent_id
        in: query
        description: Only entries an agent produced
        schema:
          type: string
          example: agent_V1StGXR8Z5jdHi6B
      - name: generation_id
        in: query
        description: Only entries a generation produced
        schema:
          type: string
          example: gen_V1StGXR8Z5jdHi6B
      - name: orchestration_run_id
        in: query
        description: Only entries an orchestration run produced
        schema:
          type: string
          example: orch_run_V1StGXR8Z5jdHi6B
      responses:
        '200':
          description: A newline-delimited stream of activity entries. Each line is a JSON object with the same fields as `ActivityEntry`.
          content:
            application/x-ndjson:
              schema:
                type: string
        '400':
          description: '`project_id` is required'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          $ref: '#/components/responses/ProjectNotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '500':
          $ref: '#/components/responses/InternalError'
components:
  responses:
    TooManyRequests:
      description: '`QUOTA_EXCEEDED` — a `requests` quota on the calling API key or its project is spent for the window; `Retry-After` says when it reopens'
      headers:
        Retry-After:
          description: Seconds until the quota window admits a request again
          schema:
            type: integer
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    ProjectNotFound:
      description: The project does not exist or the caller is not a member of it (`not_found`).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    InternalError:
      description: Unexpected server error — `INTERNAL_ERROR`, with the raw message never forwarded
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  parameters:
    ProjectId:
      name: project_id
      in: path
      required: true
      description: Project public ID (proj_ prefix).
      schema:
        type: string
        example: proj_V1StGXR8Z5jdHi6B
    Limit:
      name: limit
      in: query
      required: false
      description: Results per page, 1 to 100 (default 50). Above 100 it is clamped; below 1 or not an integer it is `400`.
      schema:
        type: integer
        minimum: 1
        maximum: 100
        default: 50
    Cursor:
      name: cursor
      in: query
      required: false
      description: The previous page's `next_cursor`; omit it for the first page. A cursor this list did not issue is `400`.
      schema:
        type: string
  schemas:
    Page:
      type: object
      description: One page of a list. Rows inserted or removed between two calls neither repeat nor skip a row on the next page.
      required:
      - data
      - next_cursor
      properties:
        data:
          type: array
          description: This page's items, in the list's order.
          items: {}
        next_cursor:
          type:
          - string
          - 'null'
          description: Pass as `cursor` to fetch the next page; `null` on the last page.
    ActivityEntry:
      type: object
      properties:
        id:
          type: string
          example: acte_V1StGXR8Z5jdHi6B
        project_id:
          x-naturali-ref: projects
          type: string
        kind:
          type: string
          enum:
          - action_executed
          - approval_created
          - approval_resolved
          - exception_created
          - schedule_fired
          - share_cap_exceeded
          - share_resumed
          - share_revoked
          - share_suspended
          - tool_resolution_failed
          - usage_quantity_invalid
          description: How the entry was produced. `tool_resolution_failed` means a tool binding contributed no tool to the turn — its source could not be reached or refused the listing, or the listing was read and left nothing to attach — so the turn ran without it. The generation itself completes, carrying no error, so this is the only signal that it answered with fewer tools than it was configured to have. `share_suspended`, `share_resumed` and `share_revoked` land in a consumer project when the publisher of a share it accepted suspends, resumes or revokes it; `ref_id` is the share and `detail` names the resource and the publisher project. `share_cap_exceeded` lands in the consumer project when a call through a share it accepted is refused by the share's `cap`. `usage_quantity_invalid` lands in the project a tool call is metered in when a resource price row's `quantity` reads no finite number >= 0; `ref_id` is the tool.
        severity:
          type: string
          enum:
          - info
          - warning
          - critical
        summary:
          type: string
          description: One-line, human-readable description
        detail:
          type:
          - object
          - 'null'
          description: Kind-specific structured context (tool, args digest, node id, guardrail policy version)
        orchestration_run_id:
          type:
          - string
          - 'null'
          description: Originating orchestration run, if any
        agent_id:
          type:
          - string
          - 'null'
          description: Associated agent, if any
        generation_id:
          type:
          - string
          - 'null'
          description: The agent generation the entry was produced during, if any. Filter on it with the `generation_id` query parameter to read everything one turn did.
        ref_id:
          type:
          - string
          - 'null'
          description: Producer-specific reference (the approval, exception, or trigger firing id the entry came from, or the executed tool's id)
        created_at:
          type: string
          format: date-time
    ErrorResponse:
      type: object
      required:
      - error
      properties:
        error:
          type: object
          description: Structured error. Every error response uses this shape, so `code` can be read without first checking the type of `error`.
          required:
          - code
          - message
          properties:
            code:
              type: string
              description: 'Machine-readable error code: lower_snake for an error naturali raises (`access_denied`), UPPER_SNAKE for one the runtime reports (`RESOURCE_NOT_FOUND`).'
              example: access_denied
            message:
              type: string
              description: Human-readable explanation.
              example: Your role in this project does not carry this action.
            details:
              type: object
              additionalProperties: true
              description: Structured context for an error naturali raises, such as the `resource` and `limit` of a `plan_limit_reached`.
            meta:
              type: object
              description: Structured context for an error the runtime reports.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: A naturali API key (nat_sk_…) or a session JWT.
    oauth2:
      type: oauth2
      description: 'A connected app''s OAuth access token, issued by this API''s authorization server (discovery: /.well-known/oauth-authorization-server). Its one scope carries every operation, confined to the projects the user chose when approving the app.'
      flows:
        authorizationCode:
          authorizationUrl: https://api.naturali.ai/authorize
          tokenUrl: https://api.naturali.ai/token
          refreshUrl: https://api.naturali.ai/token
          scopes:
            mcp:access: Every operation this API serves, on the projects the grant covers.