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

# Proof

> The artifact handed to a regulator: an inclusion proof against a signed,
anchored Merkle root, disclosing nothing about any other trajectory.

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



## OpenAPI

````yaml /api/openapi.json get /v1/trajectories/{trajectory_id}/proof
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/trajectories/{trajectory_id}/proof:
    get:
      tags:
        - Evidence
      summary: Proof
      description: >-
        The artifact handed to a regulator: an inclusion proof against a signed,

        anchored Merkle root, disclosing nothing about any other trajectory.


        **Who may call it:** any role. A workspace API key is refused here: this
        is an act that belongs to a named person.
      operationId: proof_v1_trajectories__trajectory_id__proof_get
      parameters:
        - name: trajectory_id
          in: path
          required: true
          schema:
            type: string
            title: Trajectory Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProofOut'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - bearerToken: []
components:
  schemas:
    ProofOut:
      properties:
        trajectory_id:
          type: string
          title: Trajectory Id
        leaf_hash:
          type: string
          title: Leaf Hash
        position:
          type: integer
          title: Position
        proof:
          items:
            additionalProperties:
              type: string
            type: object
          type: array
          title: Proof
        root_hash:
          type: string
          title: Root Hash
        leaf_count:
          type: integer
          title: Leaf Count
        signature:
          type: string
          title: Signature
        signing_key_ref:
          type: string
          title: Signing Key Ref
        public_key:
          type: string
          title: Public Key
        key_custody:
          anyOf:
            - type: string
            - type: 'null'
          title: Key Custody
        key_custody_means:
          type: string
          title: Key Custody Means
          default: ''
        key_is_recorded:
          type: boolean
          title: Key Is Recorded
          default: false
        sealed_at:
          type: string
          format: date-time
          title: Sealed At
        anchor:
          anyOf:
            - $ref: '#/components/schemas/AnchorOut'
            - type: 'null'
        timestamp:
          anyOf:
            - $ref: '#/components/schemas/TimestampOut'
            - type: 'null'
        verified_locally:
          type: boolean
          title: Verified Locally
        how_to_verify:
          type: string
          title: How To Verify
      type: object
      required:
        - trajectory_id
        - leaf_hash
        - position
        - proof
        - root_hash
        - leaf_count
        - signature
        - signing_key_ref
        - public_key
        - sealed_at
        - verified_locally
        - how_to_verify
      title: ProofOut
      description: An inclusion proof a counterparty can check without us.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    AnchorOut:
      properties:
        provider:
          type: string
          title: Provider
        root_hash:
          type: string
          title: Root Hash
        signature:
          type: string
          title: Signature
        created_at:
          type: string
          format: date-time
          title: Created At
        instructions:
          anyOf:
            - type: string
            - type: 'null'
          title: Instructions
        warning:
          anyOf:
            - type: string
            - type: 'null'
          title: Warning
        anchored:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Anchored
        why_not:
          anyOf:
            - type: string
            - type: 'null'
          title: Why Not
        beacon:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Beacon
        proves:
          anyOf:
            - type: string
            - type: 'null'
          title: Proves
      type: object
      required:
        - provider
        - root_hash
        - signature
        - created_at
      title: AnchorOut
      description: What was done to fix this root in time.
    TimestampOut:
      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: TimestampOut
      description: |-
        A timestamp authority's token over this root.

        What says WHEN the root existed, in the words of a party that does not
        hold this deployment's key.
    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.