View as Markdown

Platform · API reference

Public keys

The published keys that verify everything Provenance signs.

Related guide: Verify a proof

The jwks object

Attributes

keysarray of objects
The keys.
Show child attributes
ktystring
The key type, EC.
crvstring
The curve, P-256.
xstring
The x-coordinate of the public key.
ystring
The y-coordinate of the public key.
kidstring
Key id (matches the token header kid).
usestring
sig: the key signs.
algstring
The algorithm, ES256.

The jwks object

{
  "keys": [
    {
      "kty": "EC",
      "crv": "P-256",
      "x": "ZcUUGCBlqah-wZnUYcMZVlPRX4LzmUiacRPeXxU2eC0",
      "y": "BgopxKsogtnpwK7Ow8bM0ysJ71eT0Afz1m4J5HuS9dE",
      "kid": "f765a99ad0543d99",
      "use": "sig",
      "alg": "ES256"
    }
  ]
}

Get the published keys

GET/.well-known/jwks.json

Returns the ES256 public keys that sign intent tokens, receipts, manifests and log checkpoints, so anyone can verify them offline. Served at the domain root, with no key. Cacheable for an hour.

No API key needed.

Parameters

No parameters.

Returns

The public signing keys. See the jwks object.

curl "$PROVENANCE_API/.well-known/jwks.json"

Response 200

{
  "keys": [
    {
      "kty": "EC",
      "crv": "P-256",
      "x": "ZcUUGCBlqah-wZnUYcMZVlPRX4LzmUiacRPeXxU2eC0",
      "y": "BgopxKsogtnpwK7Ow8bM0ysJ71eT0Afz1m4J5HuS9dE",
      "kid": "f765a99ad0543d99",
      "use": "sig",
      "alg": "ES256"
    }
  ]
}

Get the AP2 issuer's keys

GET/.well-known/ap2/jwks.json

The ES256 public key that signs the AP2 mandates Provenance issues, separate from the intent keyset: list it as an AP2 issuer to trust those mandates and nothing else. No key needed; cacheable for an hour. A kid starting sandbox- was made at boot. 503 until the deployment turns the AP2 issuer on.

No API key needed.

Parameters

No parameters.

Returns

The AP2 issuer's public key. See the jwks object.

Errors

export PROVENANCE_KEY=prv_test_full_K7mN3xQp9RbT2vWm8sYd4cFjLhXn6gAe
curl "$PROVENANCE_API/v1/.well-known/ap2/jwks.json" \
  -H "Authorization: Bearer $PROVENANCE_KEY"

Response 200

{
  "keys": [
    {
      "kty": "EC",
      "crv": "P-256",
      "x": "7MAQoKtKbW2cUuJwVb4wzDbX9o0x1ZqjGfL1s3R8nYc",
      "y": "i3OUjGXe0rQwP2l7mE4hYt6aS9kV1cN5dZ8bF3gJ2uA",
      "kid": "3c1f0a9b7d2e4f60",
      "use": "sig",
      "alg": "ES256"
    }
  ]
}

Was this page helpful? Send us feedback

LLM? Read llms.txt.