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

# Get an LLM's resource signing key status

> The kid, source and rotation state of the key that signs the native API resource IDs (for example Anthropic batch IDs) the gateway hands out for this LLM. The key itself is never returned.



## OpenAPI

````yaml /swagger/5.16/ai-studio-swagger.yml get /llms/{id}/resource-signing-key
openapi: 3.0.1
info:
  title: Midsommar API
  description: This is the API for the Midsommar user and group management system.
  termsOfService: http://swagger.io/terms/
  contact:
    name: API Support
    url: http://www.swagger.io/support
    email: support@swagger.io
  license:
    name: Apache 2.0
    url: http://www.apache.org/licenses/LICENSE-2.0.html
  version: '1.0'
servers:
  - url: //localhost:8080/api/v1
security: []
paths:
  /llms/{id}/resource-signing-key:
    get:
      tags:
        - llms
      summary: Get an LLM's resource signing key status
      description: >-
        The kid, source and rotation state of the key that signs the native API
        resource IDs (for example Anthropic batch IDs) the gateway hands out for
        this LLM. The key itself is never returned.
      parameters:
        - name: id
          in: path
          description: LLM ID
          required: true
          schema:
            type: integer
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api.ResourceSigningStatusResponse'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api.ErrorResponse'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api.ErrorResponse'
      security:
        - BearerAuth: []
components:
  schemas:
    api.ResourceSigningStatusResponse:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/api.ResourceSigningStatus'
    api.ErrorResponse:
      type: object
      properties:
        errors:
          type: array
          items:
            type: object
            properties:
              detail:
                type: string
              title:
                type: string
      description: Error response model
    api.ResourceSigningStatus:
      type: object
      properties:
        kid:
          type: string
        llm_id:
          type: integer
        previous:
          $ref: '#/components/schemas/api.ResourceSigningPreviousKey'
        rotated_at:
          type: string
        source:
          type: string
          description: >-
            Source of the current key: "secret", or "vendor_credential" while
            the

            LLM has no secret (it gets one at the next Studio start or
            rotation),

            or "none" when it has neither.
    api.ResourceSigningPreviousKey:
      type: object
      properties:
        active:
          type: boolean
          description: |-
            Active is false once ExpiresAt has passed: IDs it signed no longer
            verify (except on the node whose ledger holds the resource).
        expires_at:
          type: string
        kid:
          type: string
        source:
          type: string
          description: |-
            Source is "secret" (hub-generated) or "vendor_credential" (derived
            from the LLM's API key, for IDs minted before the LLM had a secret).
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer

````