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

# Retrieve published public key

> Get a key's published public key as a JWKS. Requires no authentication, so verifiers can fetch it directly. Returns 404 unless the key's public key is published and the key is enabled.



## OpenAPI

````yaml GET /api/v1/kms/keys/{keyId}/jwks.json
openapi: 3.0.3
info:
  title: Infisical API
  description: List of all available APIs that can be consumed
  version: 0.0.1
servers:
  - url: https://us.infisical.com
    description: Production server (US)
  - url: https://eu.infisical.com
    description: Production server (EU)
  - url: http://localhost:8080
    description: Local server
security: []
paths:
  /api/v1/kms/keys/{keyId}/jwks.json:
    get:
      tags:
        - KMS Signing
      description: >-
        Get a key's published public key as a JWKS. Requires no authentication,
        so verifiers can fetch it directly. Returns 404 unless the key's public
        key is published and the key is enabled.
      operationId: getKmsKeyPublicJwks
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: keyId
          required: true
          description: The ID of the key whose published public key to return.
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  keys:
                    type: array
                    items:
                      type: object
                      properties:
                        kty:
                          type: string
                          description: >-
                            The key type: RSA for RSA keys, EC for ECC keys, and
                            OKP for ED25519 keys.
                        use:
                          type: string
                          description: Always sig, because the key verifies signatures.
                        kid:
                          type: string
                          description: >-
                            The key's identifier in the set: the KMS key ID
                            followed by the key version, such as <key-id>:v1.
                            Put it in the kid header of tokens signed with this
                            key, so verifiers can find the key.
                        alg:
                          type: string
                          description: >-
                            The algorithm the key signs with: ES256, ES384, or
                            ES512 for ECC keys, and EdDSA for ED25519 keys. Left
                            out for RSA keys, which can sign with RS256, RS384,
                            RS512, PS256, PS384, or PS512.
                        'n':
                          type: string
                          description: The RSA modulus, base64url encoded.
                        e:
                          type: string
                          description: The RSA public exponent, base64url encoded.
                        crv:
                          type: string
                          description: >-
                            The curve: P-256, P-384, or P-521 for ECC keys, and
                            Ed25519 for ED25519 keys.
                        x:
                          type: string
                          description: >-
                            The x coordinate of an ECC public key, or the
                            ED25519 public key itself, base64url encoded.
                        'y':
                          type: string
                          description: >-
                            The y coordinate of an ECC public key, base64url
                            encoded.
                      required:
                        - kty
                        - use
                        - kid
                      additionalProperties: false
                    description: The key's public key as a JWK, the only entry in the set.
                required:
                  - keys
                additionalProperties: false
        '304':
          description: Default Response
          content:
            application/json:
              schema: {}
        '400':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  reqId:
                    type: string
                  statusCode:
                    type: number
                    enum:
                      - 400
                  message:
                    type: string
                  error:
                    type: string
                  details: {}
                required:
                  - reqId
                  - statusCode
                  - message
                  - error
                additionalProperties: false
        '401':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  reqId:
                    type: string
                  statusCode:
                    type: number
                    enum:
                      - 401
                  message:
                    type: string
                  error:
                    type: string
                required:
                  - reqId
                  - statusCode
                  - message
                  - error
                additionalProperties: false
        '403':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  reqId:
                    type: string
                  statusCode:
                    type: number
                    enum:
                      - 403
                  message:
                    type: string
                  details: {}
                  error:
                    type: string
                required:
                  - reqId
                  - statusCode
                  - message
                  - error
                additionalProperties: false
        '404':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  reqId:
                    type: string
                  statusCode:
                    type: number
                    enum:
                      - 404
                  message:
                    type: string
                  error:
                    type: string
                required:
                  - reqId
                  - statusCode
                  - message
                  - error
                additionalProperties: false
        '422':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  reqId:
                    type: string
                  statusCode:
                    type: number
                    enum:
                      - 422
                  message: {}
                  error:
                    type: string
                required:
                  - reqId
                  - statusCode
                  - error
                additionalProperties: false
        '500':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  reqId:
                    type: string
                  statusCode:
                    type: number
                    enum:
                      - 500
                  message:
                    type: string
                  error:
                    type: string
                required:
                  - reqId
                  - statusCode
                  - message
                  - error
                additionalProperties: false

````

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