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

# Audit Seals

> Every seal over the audit trail, with its signature and its timestamp.

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



## OpenAPI

````yaml /api/openapi.json get /v1/audit/seals
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/audit/seals:
    get:
      tags:
        - Audit
      summary: Audit Seals
      description: >-
        Every seal over the audit trail, with its signature and its timestamp.


        **Who may call it:** admin or auditor. A workspace API key is refused
        here: this is an act that belongs to a named person.
      operationId: audit_seals_v1_audit_seals_get
      parameters:
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 500
            minimum: 1
            default: 100
            title: Limit
        - name: offset
          in: query
          required: false
          schema:
            type: integer
            minimum: 0
            default: 0
            title: Offset
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuditSealsOut'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - bearerToken: []
components:
  schemas:
    AuditSealsOut:
      properties:
        seals:
          items:
            $ref: '#/components/schemas/AuditSealOut'
          type: array
          title: Seals
        total:
          type: integer
          title: Total
        limit:
          type: integer
          title: Limit
        offset:
          type: integer
          title: Offset
        how_to_verify:
          type: string
          title: How To Verify
      type: object
      required:
        - seals
        - total
        - limit
        - offset
        - how_to_verify
      title: AuditSealsOut
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    AuditSealOut:
      properties:
        seal_no:
          type: integer
          title: Seal No
        statement:
          additionalProperties: true
          type: object
          title: Statement
        statement_hash:
          type: string
          title: Statement Hash
        signature:
          type: string
          title: Signature
        signing_public_key:
          type: string
          title: Signing Public Key
        signing_key_ref:
          anyOf:
            - type: string
            - type: 'null'
          title: Signing Key Ref
        key_custody:
          anyOf:
            - type: string
            - type: 'null'
          title: Key Custody
        key_custody_means:
          type: string
          title: Key Custody Means
        sealed_at:
          type: string
          format: date-time
          title: Sealed At
        timestamp:
          anyOf:
            - $ref: '#/components/schemas/SealTimestampOut'
            - type: 'null'
      type: object
      required:
        - seal_no
        - statement
        - statement_hash
        - signature
        - signing_public_key
        - key_custody_means
        - sealed_at
      title: AuditSealOut
    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
    SealTimestampOut:
      properties:
        authority:
          anyOf:
            - type: string
            - type: 'null'
          title: Authority
        signer:
          anyOf:
            - type: string
            - type: 'null'
          title: Signer
        serial:
          anyOf:
            - type: string
            - type: 'null'
          title: Serial
        time:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Time
        seconds_after_newest_record:
          anyOf:
            - type: number
            - type: 'null'
          title: Seconds After Newest Record
        state:
          type: string
          title: State
        problem:
          anyOf:
            - type: string
            - type: 'null'
          title: Problem
        message:
          type: string
          title: Message
        response:
          type: string
          title: Response
        proves:
          type: string
          title: Proves
        how_to_verify:
          type: string
          title: How To Verify
      type: object
      required:
        - state
        - message
        - response
        - proves
        - how_to_verify
      title: SealTimestampOut
      description: An authority's token over one seal, with what is needed to check it.
  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.