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

> Where each audit trail ends, for anyone to write down. No sign-in.



## OpenAPI

````yaml /api/openapi.json get /v1/audit/head
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/head:
    get:
      tags:
        - Audit
      summary: Audit Head
      description: Where each audit trail ends, for anyone to write down. No sign-in.
      operationId: audit_head_v1_audit_head_get
      parameters:
        - name: trail
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: only this trail
            title: Trail
          description: only this trail
        - name: from
          in: query
          required: false
          schema:
            anyOf:
              - type: integer
                minimum: 0
              - type: 'null'
            description: seals numbered from here, oldest first, instead of the newest
            title: From
          description: seals numbered from here, oldest first, instead of the newest
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuditHeadOut'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security: []
components:
  schemas:
    AuditHeadOut:
      properties:
        trails:
          items:
            $ref: '#/components/schemas/TrailHeadOut'
          type: array
          title: Trails
        what_this_is:
          type: string
          title: What This Is
        timestamps:
          anyOf:
            - $ref: '#/components/schemas/StampBacklogOut'
            - type: 'null'
      type: object
      required:
        - trails
        - what_this_is
      title: AuditHeadOut
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    TrailHeadOut:
      properties:
        trail:
          type: string
          title: Trail
        seals:
          type: integer
          title: Seals
        recent:
          items:
            $ref: '#/components/schemas/SealHeadOut'
          type: array
          title: Recent
      type: object
      required:
        - trail
        - seals
        - recent
      title: TrailHeadOut
    StampBacklogOut:
      properties:
        awaiting:
          type: integer
          title: Awaiting
        waiting_since:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Waiting Since
      type: object
      required:
        - awaiting
      title: StampBacklogOut
      description: Whether seals are getting their timestamps, for a watcher outside.
    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
    SealHeadOut:
      properties:
        'no':
          type: integer
          title: 'No'
        hash:
          type: string
          title: Hash
        previous:
          anyOf:
            - type: string
            - type: 'null'
          title: Previous
        sealed_at:
          type: string
          format: date-time
          title: Sealed At
      type: object
      required:
        - 'no'
        - hash
        - sealed_at
      title: SealHeadOut

````

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