SPIRE Keys API

JSON Web Key Set endpoint that exposes public keys used to verify JWT-SVIDs issued by SPIRE.

Operations 1

GET /keys SPIRE Get JSON Web Key Set #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/spire-keys-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

spire-keys-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SPIRE OIDC Discovery Provider Keys API
  description: The SPIRE OIDC Discovery Provider is a helper component that exposes a minimal OpenID Connect discovery document and JSON Web Key Set (JWKS) endpoint. This allows workloads to present JWT-SVIDs issued by SPIRE to systems that support standard OIDC token validation, including cloud provider IAM systems such as AWS, GCP, and Azure. The provider derives its key material from the SPIRE Server or Agent trust bundle and serves it over HTTPS.
  version: '1.0'
  contact:
    name: SPIFFE Community
    url: https://spiffe.io/community/
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0
servers:
- url: https://{domain}
  description: SPIRE OIDC Discovery Provider
  variables:
    domain:
      default: oidc-discovery.example.com
      description: The domain name configured for the OIDC discovery provider instance.
tags:
- name: Keys
  description: JSON Web Key Set endpoint that exposes public keys used to verify JWT-SVIDs issued by SPIRE.
paths:
  /keys:
    get:
      operationId: getJWKS
      summary: SPIRE Get JSON Web Key Set
      description: Returns the JSON Web Key Set (JWKS) containing the public keys used to verify JWT-SVIDs issued by SPIRE. The keys are derived from the SPIRE trust bundle and are automatically rotated as SPIRE rotates its signing keys. Consumers must re-fetch this endpoint periodically to stay current with key rotations. Supported signing algorithms include RS256, ES256, and ES384.
      tags:
      - Keys
      responses:
        '200':
          description: JSON Web Key Set containing public verification keys
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JWKS'
components:
  schemas:
    JWK:
      type: object
      description: A single JSON Web Key representing a public key used for JWT-SVID signature verification.
      required:
      - kty
      - use
      - kid
      properties:
        kty:
          type: string
          description: Key type. RSA for RS256 keys, EC for elliptic curve keys used with ES256 and ES384.
          enum:
          - RSA
          - EC
        use:
          type: string
          description: Intended use of the key. Always sig (signature verification) for SPIRE JWT authority keys.
          enum:
          - sig
        kid:
          type: string
          description: Key identifier uniquely identifying this key within the JWKS. Used to match the kid header in JWT-SVIDs to the correct verification key.
          example: abc123def456
        alg:
          type: string
          description: Algorithm intended for use with this key, such as RS256, ES256, or ES384.
          enum:
          - RS256
          - ES256
          - ES384
        n:
          type: string
          description: 'RSA modulus value (Base64urlUInt-encoded). Present only for RSA keys (kty: RSA).'
        e:
          type: string
          description: 'RSA public exponent value (Base64urlUInt-encoded). Present only for RSA keys (kty: RSA).'
          example: AQAB
        crv:
          type: string
          description: 'Elliptic curve name. Present only for EC keys (kty: EC).'
          enum:
          - P-256
          - P-384
        x:
          type: string
          description: 'Elliptic curve x-coordinate (Base64urlUInt-encoded). Present only for EC keys (kty: EC).'
        y:
          type: string
          description: 'Elliptic curve y-coordinate (Base64urlUInt-encoded). Present only for EC keys (kty: EC).'
    JWKS:
      type: object
      description: JSON Web Key Set document containing the public keys used to verify JWT-SVIDs issued by SPIRE. The keys correspond to the trust bundle JWT authorities for the SPIRE trust domain.
      required:
      - keys
      properties:
        keys:
          type: array
          description: Array of JSON Web Key objects representing the public keys in the SPIRE trust bundle. Each key corresponds to a JWT authority in the trust domain's bundle.
          items:
            $ref: '#/components/schemas/JWK'
externalDocs:
  description: SPIRE OIDC Discovery Provider Documentation
  url: https://github.com/spiffe/spire/tree/main/support/oidc-discovery-provider