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

# Create a soul

> Create a new agent identity for your tenant. Soul names must be unique.



## OpenAPI

````yaml POST /v1/setup/soul
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/setup/soul:
    post:
      tags:
        - Souls
      summary: Create a soul
      description: Create a new agent identity for your tenant. Soul names must be unique.
      operationId: souls-create
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - name
              properties:
                name:
                  type: string
                  description: Internal name — used as `soul` in invoke calls.
                  example: support
                soul_md:
                  type: string
                  description: >-
                    The soul's identity, personality, and instructions in
                    markdown. Becomes the agent's system prompt.
                default_model:
                  type: string
                  default: claude-sonnet-4-6
                  description: >-
                    Model identifier. Supports Anthropic, OpenAI, and OpenRouter
                    models.
                  example: claude-sonnet-4-6
      responses:
        '200':
          description: Soul created.
          content:
            application/json:
              schema:
                type: object
                properties:
                  soul_id:
                    type: string
                  name:
                    type: string
                  soul_md:
                    type: string
        '409':
          description: Soul name already exists.
components:
  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.