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

# JSON Web Key Set

> Public key directory for Beltic-issued credentials. Verifiers fetch
this to validate JWT signatures. Supports multiple keys to handle rotation:
keys marked `active` are used for new signatures, while `next` and
`retired` keys remain available to verify credentials signed by prior keys.

`Cache-Control: max-age=3600` — verifiers should cache.



## OpenAPI

````yaml GET /.well-known/jwks.json
openapi: 3.1.0
info:
  title: Beltic Credentials API
  version: 1.0.0
servers: []
security: []
paths:
  /.well-known/jwks.json:
    get:
      tags:
        - Well-known
      summary: JSON Web Key Set
      description: >-
        Public key directory for Beltic-issued credentials. Verifiers fetch

        this to validate JWT signatures. Supports multiple keys to handle
        rotation:

        keys marked `active` are used for new signatures, while `next` and

        `retired` keys remain available to verify credentials signed by prior
        keys.


        `Cache-Control: max-age=3600` — verifiers should cache.
      responses:
        '200':
          description: JWKS document
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JwksResponse'
        '400':
          description: Validation error or malformed request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '403':
          description: Forbidden — caller lacks required permission
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '409':
          description: Conflict (e.g., credential already revoked, idempotency clash)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
components:
  schemas:
    JwksResponse:
      type: object
      properties:
        keys:
          type: array
          items:
            type: object
            properties:
              kty:
                type: string
                enum:
                  - EC
              crv:
                type: string
                enum:
                  - P-256
              x:
                type: string
              'y':
                type: string
              alg:
                type: string
                enum:
                  - ES256
              use:
                type: string
                enum:
                  - sig
              kid:
                type: string
            required:
              - kty
              - crv
              - x
              - 'y'
              - alg
              - use
              - kid
      required:
        - keys
    ApiErrorResponse:
      type: object
      properties:
        error:
          $ref: '#/components/schemas/ApiError'
      required:
        - error
    ApiError:
      type: object
      properties:
        code:
          type: string
        message:
          type: string
        details:
          type: array
          items:
            $ref: '#/components/schemas/ApiErrorDetail'
        request_id:
          type: string
      required:
        - code
        - message
    ApiErrorDetail:
      type: object
      properties:
        field:
          type: string
        issue:
          type: string
        hint:
          type: string
      required:
        - issue

````