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

# Get a mandate

> Get a mandate by ID including its current status, run count, and next scheduled run.



## OpenAPI

````yaml GET /v1/mandates/{mandateId}/status
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/mandates/{mandateId}/status:
    get:
      tags:
        - Mandates
      summary: Get a mandate
      description: >-
        Get a mandate by ID including its current status, run count, and next
        scheduled run.
      operationId: mandates-get
      parameters:
        - name: mandateId
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Mandate details.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Mandate'
        '404':
          description: Mandate not found.
components:
  schemas:
    Mandate:
      type: object
      properties:
        id:
          type: string
        tenant_id:
          type: string
        user_id:
          type: string
        soul:
          type: string
        role:
          type: string
        label:
          type: string
        task_prompt:
          type: string
        trigger_type:
          type: string
          enum:
            - cron
            - event
        trigger_config:
          type: object
        status:
          type: string
          enum:
            - active
            - paused
            - cancelled
        next_run_at:
          type: string
          format: date-time
          nullable: true
        last_run_at:
          type: string
          format: date-time
          nullable: true
        run_count:
          type: integer
        created_at:
          type: string
          format: date-time
  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.