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

# Object timeline

> The events and actions of an object, in order.



## OpenAPI

````yaml openapi/en/cell.json GET /v1/objects/{object_type}/{namespace}/{external_id}/timeline
openapi: 3.1.0
info:
  title: Niadra data API
  version: '1'
  description: >-
    Writing, context, history, objects, identity, privacy and governance of one
    space. Every space has a stable address, with the space and the region in
    its name.
servers:
  - url: https://{space}.{region}.api.niadra.com
    variables:
      space:
        default: acme-prod
        description: The space, which comes in the source key.
      region:
        default: us-east-1
        description: The region of the space, which also comes in the key.
security: []
paths:
  /v1/objects/{object_type}/{namespace}/{external_id}/timeline:
    get:
      tags:
        - objects
      summary: Object timeline
      description: >-
        The events and actions of one object, newest first.


        **Authentication.** Source key: `Authorization: Bearer nia_sk_...`.
        Required scope: `context`.
      operationId: >-
        object_timeline_v1_objects__object_type___namespace___external_id__timeline_get
      parameters:
        - in: path
          name: object_type
          required: true
          schema:
            title: Object Type
            type: string
          example: invoice
        - in: path
          name: namespace
          required: true
          schema:
            title: Namespace
            type: string
          example: erp
        - in: path
          name: external_id
          required: true
          schema:
            title: External Id
            type: string
          description: The id in the system of record. It may contain slashes.
          example: '0823'
        - in: query
          name: cursor
          required: false
          schema:
            anyOf:
              - maxLength: 200
                type: string
              - type: 'null'
            title: Cursor
          description: Opaque cursor from `next_cursor`.
        - in: query
          name: limit
          required: false
          schema:
            default: 20
            maximum: 100
            minimum: 1
            title: Limit
            type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ObjectTimeline'
              example:
                ref:
                  type: invoice
                  namespace: erp
                  id: '0823'
                items:
                  - id: act_01J8ZK
                    kind: action
                    text: credit · $40 · Billing agent · confirmed by the system
                    at: '2026-09-22T17:06:21Z'
                    channel: erp
                    source_id: src_billing
                    outcome: confirmed
                    confidence: null
                    origin_event_id: 0192f7a1-6a2b-7d11-9c3e-1a2b3c4d5e02
                  - id: se_01J8ZJ
                    kind: system_event
                    text: invoice.disputed · August bill
                    at: '2026-09-22T17:05:40Z'
                    channel: erp
                    source_id: src_erp
                    outcome: null
                    confidence: null
                    origin_event_id: 0192f7a1-6a2b-7d11-9c3e-1a2b3c4d5e04
                next_cursor: null
                as_of: '2026-09-22T17:07:02Z'
          description: One page.
        '422':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: The request does not match the contract.
      security:
        - sourceKey: []
      x-codeSamples:
        - lang: python
          label: Python
          source: |-
            page = niadra.object_timeline("invoice:erp:0823", limit=20)
            if page:
                for item in page.items:
                    print(item.at, item.kind, item.text)
        - lang: typescript
          label: TypeScript
          source: >-
            const { data: page } = await
            niadra.objectTimeline("invoice:erp:0823", { limit: 20 });

            for (const item of page?.items ?? []) console.log(item.at,
            item.kind, item.text);
components:
  schemas:
    ObjectTimeline:
      additionalProperties: false
      properties:
        as_of:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          title: As Of
        items:
          items:
            $ref: '#/components/schemas/HistoryItem'
          title: Items
          type: array
        next_cursor:
          anyOf:
            - type: string
            - type: 'null'
          title: Next Cursor
        ref:
          $ref: '#/components/schemas/ObjectRef'
      required:
        - ref
        - items
      title: ObjectTimeline
      type: object
    Problem:
      additionalProperties: false
      description: RFC 9457 problem details; `code` comes from the versioned error catalog.
      properties:
        code:
          title: Code
          type: string
        detail:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Detail
        request_id:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Request Id
        status:
          title: Status
          type: integer
        title:
          title: Title
          type: string
        type:
          default: about:blank
          title: Type
          type: string
      required:
        - title
        - status
        - code
      title: Problem
      type: object
    HistoryItem:
      additionalProperties: false
      properties:
        at:
          format: date-time
          title: At
          type: string
        channel:
          anyOf:
            - type: string
            - type: 'null'
          title: Channel
        confidence:
          anyOf:
            - type: number
            - type: 'null'
          title: Confidence
        id:
          title: Id
          type: string
        kind:
          title: Kind
          type: string
          description: >-
            One of `episode`, `fact`, `open_item`, `action`, `system_event`,
            `object`, `trait`.
        origin_event_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Origin Event Id
          description: The event this item came from.
        outcome:
          anyOf:
            - type: string
            - type: 'null'
          title: Outcome
        source_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Source Id
        text:
          title: Text
          type: string
          description: Dense text, in the same key-value style as the pack.
      required:
        - id
        - kind
        - text
        - at
      title: HistoryItem
      type: object
    ObjectRef:
      additionalProperties: false
      description: >-
        A business object in a system of record, e.g. `invoice` / `erp` /
        `0823`.
      properties:
        id:
          maxLength: 512
          minLength: 1
          title: Id
          type: string
          description: The id in that system.
        namespace:
          maxLength: 256
          minLength: 1
          title: Namespace
          type: string
          description: The system it lives in, such as `erp`.
        type:
          maxLength: 256
          minLength: 1
          title: Type
          type: string
          description: Object type, such as `invoice`, `order` or `ticket`.
      required:
        - type
        - namespace
        - id
      title: ObjectRef
      type: object
  securitySchemes:
    sourceKey:
      type: http
      scheme: bearer
      description: nia_sk_...

````