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

> Run the certification battery over a candidate agent and issue a signed
certificate. A governance act (officer and above): certifying an agent as
fit for production is a sign-off, not a read.



## OpenAPI

````yaml /api-reference/openapi.json post /api/v1/certify/runs
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/certify/runs:
    post:
      tags:
        - certify
      summary: Create Certification
      description: >-
        Run the certification battery over a candidate agent and issue a signed

        certificate. A governance act (officer and above): certifying an agent
        as

        fit for production is a sign-off, not a read.
      operationId: create_certification_api_v1_certify_runs_post
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CertifyRequest'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CertificationOut'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    CertifyRequest:
      properties:
        agent_id:
          type: string
          title: Agent Id
        validity_days:
          type: integer
          title: Validity Days
          default: 90
      type: object
      required:
        - agent_id
      title: CertifyRequest
    CertificationOut:
      properties:
        id:
          type: string
          title: Id
        agent_id:
          type: string
          title: Agent Id
        agent_name:
          type: string
          title: Agent Name
        status:
          type: string
          title: Status
        score:
          type: number
          title: Score
        checks:
          items:
            $ref: '#/components/schemas/CheckOut'
          type: array
          title: Checks
        expires_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Expires At
        created_at:
          type: string
          format: date-time
          title: Created At
        ran_by:
          anyOf:
            - type: string
            - type: 'null'
          title: Ran By
      type: object
      required:
        - id
        - agent_id
        - agent_name
        - status
        - score
        - checks
        - expires_at
        - created_at
        - ran_by
      title: CertificationOut
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    CheckOut:
      properties:
        name:
          type: string
          title: Name
        status:
          type: string
          title: Status
        clause:
          type: string
          title: Clause
        detail:
          type: string
          title: Detail
        hard:
          type: boolean
          title: Hard
      type: object
      required:
        - name
        - status
        - clause
        - detail
        - hard
      title: CheckOut
    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.

````