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

# Issue

> Clear this agent for its environment, in your name.

**Who may call it:** governance-officer or admin. A workspace API key is refused here: this is an act that belongs to a named person.



## OpenAPI

````yaml /api/openapi.json post /v1/agents/{agent_id}/certification
openapi: 3.1.0
info:
  title: RotaGrant API
  version: 0.1.0
  description: >-
    The HTTP API of a RotaGrant deployment, made from the product's own route
    definitions at the commit named in `x-rotascale-source`. Nothing here is
    written by hand.


    There is no shared endpoint. RotaGrant runs in your environment, and your
    deployment serves its own copy of this description at `/api/docs`. That copy
    is the authority on what your version has and which features are switched
    on; this one is the reference for one commit of the main line. The version
    is 0.1.0: routes and shapes can still change.


    Every route says who may call it. Most need a bearer token from the identity
    provider your deployment uses, held by a person with the role named. The
    routes an SDK calls also accept a workspace API key. A few are open, and say
    why.
servers:
  - url: https://{deployment}
    description: Your own deployment. There is no shared endpoint.
    variables:
      deployment:
        default: rotagrant.internal.example
        description: The host your deployment answers on.
security: []
paths:
  /v1/agents/{agent_id}/certification:
    post:
      tags:
        - Certification
      summary: Issue
      description: >-
        Clear this agent for its environment, in your name.


        **Who may call it:** governance-officer or admin. A workspace API key is
        refused here: this is an act that belongs to a named person.
      operationId: issue_v1_agents__agent_id__certification_post
      parameters:
        - name: agent_id
          in: path
          required: true
          schema:
            type: string
            title: Agent Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/IssueIn'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CertificateOut'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - bearerToken: []
components:
  schemas:
    IssueIn:
      properties:
        basis:
          type: string
          maxLength: 4000
          minLength: 10
          title: Basis
        accepts_unknowns:
          type: boolean
          title: Accepts Unknowns
          default: false
      type: object
      required:
        - basis
      title: IssueIn
      description: What the signer adds. Everything else is assembled, not typed in.
    CertificateOut:
      properties:
        id:
          type: string
          title: Id
        agent_id:
          type: string
          title: Agent Id
        environment:
          type: string
          title: Environment
        issued_by:
          type: string
          title: Issued By
        issued_by_email:
          anyOf:
            - type: string
            - type: 'null'
          title: Issued By Email
        issued_at:
          type: string
          format: date-time
          title: Issued At
        basis:
          type: string
          title: Basis
        manifest_hash:
          anyOf:
            - type: string
            - type: 'null'
          title: Manifest Hash
        content_hash:
          anyOf:
            - type: string
            - type: 'null'
          title: Content Hash
        provenance_version:
          anyOf:
            - type: integer
            - type: 'null'
          title: Provenance Version
        market_profile:
          anyOf:
            - type: string
            - type: 'null'
          title: Market Profile
        checks:
          additionalProperties: true
          type: object
          title: Checks
        revoked_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Revoked At
        revoked_by:
          anyOf:
            - type: string
            - type: 'null'
          title: Revoked By
        revocation_reason:
          anyOf:
            - type: string
            - type: 'null'
          title: Revocation Reason
        standing:
          anyOf:
            - $ref: '#/components/schemas/StandingOut'
            - type: 'null'
      type: object
      required:
        - id
        - agent_id
        - environment
        - issued_by
        - issued_at
        - basis
        - checks
      title: CertificateOut
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    StandingOut:
      properties:
        state:
          type: string
          title: State
        detail:
          type: string
          title: Detail
        cleared:
          type: boolean
          title: Cleared
        certificate_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Certificate Id
        issued_by:
          anyOf:
            - type: string
            - type: 'null'
          title: Issued By
        issued_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Issued At
      type: object
      required:
        - state
        - detail
        - cleared
      title: StandingOut
      description: Whether the clearance still says what it said, computed now.
    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:
    bearerToken:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        A token from the identity provider your deployment federates with. It
        identifies a person; their roles in the workspace decide what they may
        do.

````

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