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

# List invocations

> List invocations for your tenant with optional filters and cursor-based pagination.



## OpenAPI

````yaml GET /v1/agent/invocations
openapi: 3.1.0
info:
  title: Kairn API
  version: 1.0.0
  description: >-
    The Kairn API. All requests require an `X-API-Key` header with your tenant
    API key.
servers:
  - url: https://api.kairn.sh
    description: Production
security:
  - ApiKey: []
tags:
  - name: Agent
    description: Invoke agents and stream responses.
  - name: Memory
    description: Read and write per-user agent memory.
  - name: Souls
    description: Manage agent identities.
  - name: Skills
    description: Manage custom skills (instructions and webhook tools).
  - name: Mandates
    description: Schedule autonomous agent tasks.
  - name: Invocations
    description: Inspect past agent runs.
  - name: Sessions
    description: Access multi-turn conversation history.
  - name: Audit
    description: Audit log for all agent activity.
paths:
  /v1/agent/invocations:
    get:
      tags:
        - Invocations
      summary: List invocations
      description: >-
        List invocations for your tenant with optional filters and cursor-based
        pagination.
      operationId: invocations-list
      parameters:
        - name: user_id
          in: query
          schema:
            type: string
          description: Filter by user ID.
        - name: soul
          in: query
          schema:
            type: string
          description: Filter by soul name.
        - name: status
          in: query
          schema:
            type: string
            enum:
              - running
              - completed
              - failed
              - pending
        - name: limit
          in: query
          schema:
            type: integer
            default: 20
            maximum: 100
        - name: cursor
          in: query
          schema:
            type: string
          description: Cursor from a previous response's `next_cursor` for pagination.
        - name: after
          in: query
          schema:
            type: string
            format: date-time
        - name: before
          in: query
          schema:
            type: string
            format: date-time
      responses:
        '200':
          description: Invocation list with pagination cursor.
          content:
            application/json:
              schema:
                type: object
                properties:
                  invocations:
                    type: array
                    items:
                      $ref: '#/components/schemas/Invocation'
                  next_cursor:
                    type: string
                    nullable: true
components:
  schemas:
    Invocation:
      type: object
      properties:
        id:
          type: string
        tenant_id:
          type: string
        user_id:
          type: string
        soul:
          type: string
        role:
          type: string
        input:
          type: string
        output:
          type: string
          nullable: true
        status:
          type: string
          enum:
            - running
            - completed
            - failed
            - pending
        memory_delta:
          type: object
          nullable: true
        tokens_input:
          type: integer
          nullable: true
        tokens_output:
          type: integer
          nullable: true
        duration_ms:
          type: integer
          nullable: true
        error:
          type: string
          nullable: true
        created_at:
          type: string
          format: date-time
        completed_at:
          type: string
          format: date-time
          nullable: true
  securitySchemes:
    ApiKey:
      type: apiKey
      in: header
      name: X-API-Key

````

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