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

# Create Agent



## OpenAPI

````yaml /api-reference/openapi.json post /api/v1/agents
openapi: 3.1.0
info:
  title: Sakshi — Agent Governance API
  description: >-
    Registry (KYA), decision flight recorder, bounded autonomy, evidence packs,
    fairness screens. Auth: bearer ingest keys create evidence; OIDC JWTs with
    governance roles mutate state.
  version: 0.1.0
servers:
  - url: https://demo.rotavision.com
    description: Public demo (read-only, synthetic data)
  - url: https://{host}
    description: Your Sakshi deployment (single-tenant, in your environment)
    variables:
      host:
        default: sakshi.your-company.internal
security:
  - bearerAuth: []
paths:
  /api/v1/agents:
    post:
      tags:
        - register
      summary: Create Agent
      operationId: create_agent_api_v1_agents_post
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AgentCreate'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentOut'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    AgentCreate:
      properties:
        name:
          type: string
          maxLength: 200
          minLength: 1
          title: Name
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        owner_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Owner Name
        owner_email:
          anyOf:
            - type: string
              format: email
            - type: 'null'
          title: Owner Email
        org_unit:
          anyOf:
            - type: string
            - type: 'null'
          title: Org Unit
        autonomy_tier:
          type: string
          enum:
            - L0
            - L1
            - L2
            - L3
            - L4
          title: Autonomy Tier
          default: L0
        blast_radius:
          additionalProperties: true
          type: object
          title: Blast Radius
        recert_due_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Recert Due At
      type: object
      required:
        - name
      title: AgentCreate
    AgentOut:
      properties:
        id:
          type: string
          title: Id
        tenant_id:
          type: string
          title: Tenant Id
        name:
          type: string
          title: Name
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        owner_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Owner Name
        owner_email:
          anyOf:
            - type: string
            - type: 'null'
          title: Owner Email
        identity_verified:
          type: boolean
          title: Identity Verified
          default: false
        identity_source:
          anyOf:
            - type: string
            - type: 'null'
          title: Identity Source
        identity_ref:
          anyOf:
            - type: string
            - type: 'null'
          title: Identity Ref
        org_unit:
          anyOf:
            - type: string
            - type: 'null'
          title: Org Unit
        autonomy_tier:
          type: string
          title: Autonomy Tier
        blast_radius:
          additionalProperties: true
          type: object
          title: Blast Radius
        status:
          type: string
          title: Status
        recert_due_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Recert Due At
        decommissioned_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Decommissioned At
        created_at:
          type: string
          format: date-time
          title: Created At
      type: object
      required:
        - id
        - tenant_id
        - name
        - description
        - owner_name
        - owner_email
        - org_unit
        - autonomy_tier
        - blast_radius
        - status
        - recert_due_at
        - decommissioned_at
        - created_at
      title: AgentOut
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Ingest API key or OIDC JWT. See /authentication.

````