View as Markdown

Identify · API reference

Signed agents

An agent's Web Bot Auth signing keys, its public key directory and its card.

Related guide: Sign your agent's requests

The agent signing key object

Attributes

idstring
Unique identifier for the object.
objectenum
The type of object. One of agent_signing_key.
agent_idstring
The agent the key belongs to.
kidstring
The key's JWK SHA-256 thumbprint: the keyid in a signature.
jwkobject
The public JWK.
Show child attributes
ktystring
The key type.
crvstring
The curve.
xstring
The public key, base64url.
kidstring
The thumbprint.
statusenum
The key's status. One of active, revoked.
directory_urlstring
The agent's key directory: put it in Signature-Agent with type=jwks_uri.
card_urlstring
The agent's Signature Agent Card (type=cimd).
created_attimestamp
When it was created.
expires_atstring | null
When the key stops being published.
revoked_atstring | null
When it was revoked.

The agent signing key object

{
  "id": "ask_01M6VQDE5JMR9KR0R1D4KQTWXV",
  "object": "agent_signing_key",
  "agent_id": "agt_01M6VQDE5HSNE700XZKGYFBEQ9",
  "kid": "lyRUHRS4LQGoXlD_Oaa0IK6BCBsxD6DdTLQRUUK3JW4",
  "jwk": {
    "kty": "OKP",
    "crv": "Ed25519",
    "x": "G_STrQBvTD7Bi8OjlNnLcKPPiPp03Vh0sJKTMG7QzFY",
    "kid": "lyRUHRS4LQGoXlD_Oaa0IK6BCBsxD6DdTLQRUUK3JW4"
  },
  "status": "active",
  "directory_url": "http://127.0.0.1:50287/v1/public/agents/agt_01M6VQDE5HSNE700XZKGYFBEQ9/directory",
  "card_url": "http://127.0.0.1:50287/v1/public/agents/agt_01M6VQDE5HSNE700XZKGYFBEQ9/card",
  "created_at": "2026-11-07T19:22:53.490Z",
  "expires_at": null,
  "revoked_at": null
}

Add a signing key

POST/v1/identify/agents/{id}/signing_keys

Registers an Ed25519 public key (a JWK) the agent signs Web Bot Auth requests with. Send the public key only; the private key stays with your agent. An agent publishes at most five active keys. Free on every plan.

Parameters

Idempotency-Keystringheader
Retry a create safely: the same key + request returns the stored response (24 h, per caller).
idstringpathRequired
The agent's ID.
jwkobjectRequired
The public key: kty OKP, crv Ed25519 and x. A kid, when sent, must be the key's JWK thumbprint.
Show child attributes
ktyenum
The key type. One of OKP.
crvenum
The curve. One of Ed25519.
xstring
The 32-byte public key, base64url.
kidstring
Optional; the key's JWK thumbprint.
expires_attimestamp
When the key stops being published.

Returns

The signing key, with the agent's directory and card URLs. See the agent signing key object.

Errors

export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl -s -X POST "$PROVENANCE_API/v1/mandate/agents" \
  -H "Authorization: Bearer $PROVENANCE_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "name": "pantry-pal", "category": "shopping_agent" }' > step.json
export AGENT_ID=$(jq -r '.id' step.json)
curl -X POST "$PROVENANCE_API/v1/identify/agents/$AGENT_ID/signing_keys" \
  -H "Authorization: Bearer $PROVENANCE_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "jwk": {
      "kty": "OKP",
      "crv": "Ed25519",
      "x": "G_STrQBvTD7Bi8OjlNnLcKPPiPp03Vh0sJKTMG7QzFY"
    }
  }'

Response 201

{
  "id": "ask_01M6VQDE5Q71EMJJ3AYE8QGYE2",
  "object": "agent_signing_key",
  "agent_id": "agt_01M6VQDE5P0EHHA9GN5ZCN215B",
  "kid": "lyRUHRS4LQGoXlD_Oaa0IK6BCBsxD6DdTLQRUUK3JW4",
  "jwk": {
    "kty": "OKP",
    "crv": "Ed25519",
    "x": "G_STrQBvTD7Bi8OjlNnLcKPPiPp03Vh0sJKTMG7QzFY",
    "kid": "lyRUHRS4LQGoXlD_Oaa0IK6BCBsxD6DdTLQRUUK3JW4"
  },
  "status": "active",
  "directory_url": "http://127.0.0.1:50287/v1/public/agents/agt_01M6VQDE5P0EHHA9GN5ZCN215B/directory",
  "card_url": "http://127.0.0.1:50287/v1/public/agents/agt_01M6VQDE5P0EHHA9GN5ZCN215B/card",
  "created_at": "2026-11-07T19:22:53.495Z",
  "expires_at": null,
  "revoked_at": null
}

Get an agent's key directory

GET/v1/public/agents/{id}/directory

The agent's Web Bot Auth key directory: a JWK Set of its active public keys, served as application/http-message-signatures-directory+json. No API key needed. A suspended agent publishes an empty set, so its signatures stop verifying.

No API key needed.

Parameters

idstringpathRequired
The agent's ID.

Returns

The agent's JWK Set.

Errors

curl -s -X POST "$PROVENANCE_API/v1/mandate/agents" \
  -H "Authorization: Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5" \
  -H "Content-Type: application/json" \
  -d '{ "name": "pantry-pal", "category": "shopping_agent" }' > step.json
export AGENT_ID=$(jq -r '.id' step.json)
curl -s -X POST "$PROVENANCE_API/v1/identify/agents/$AGENT_ID/signing_keys" \
  -H "Authorization: Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5" \
  -H "Content-Type: application/json" \
  -d '{
    "jwk": {
      "kty": "OKP",
      "crv": "Ed25519",
      "x": "G_STrQBvTD7Bi8OjlNnLcKPPiPp03Vh0sJKTMG7QzFY"
    }
  }' > step.json
export KEY_ID=$(jq -r '.id' step.json)
curl "$PROVENANCE_API/v1/public/agents/$AGENT_ID/directory"

Response 200

{
  "keys": [
    {
      "kty": "OKP",
      "crv": "Ed25519",
      "x": "G_STrQBvTD7Bi8OjlNnLcKPPiPp03Vh0sJKTMG7QzFY",
      "kid": "lyRUHRS4LQGoXlD_Oaa0IK6BCBsxD6DdTLQRUUK3JW4",
      "use": "sig"
    }
  ]
}

Get an agent's card

GET/v1/public/agents/{id}/card

The agent's Signature Agent Card (its name, category, operator and key directory), for a Signature-Agent member of type cimd. No API key needed.

No API key needed.

Parameters

idstringpathRequired
The agent's ID.

Returns

The Signature Agent Card.

Errors

curl -s -X POST "$PROVENANCE_API/v1/mandate/agents" \
  -H "Authorization: Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5" \
  -H "Content-Type: application/json" \
  -d '{ "name": "pantry-pal", "category": "shopping_agent" }' > step.json
export AGENT_ID=$(jq -r '.id' step.json)
curl -s -X POST "$PROVENANCE_API/v1/identify/agents/$AGENT_ID/signing_keys" \
  -H "Authorization: Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5" \
  -H "Content-Type: application/json" \
  -d '{
    "jwk": {
      "kty": "OKP",
      "crv": "Ed25519",
      "x": "G_STrQBvTD7Bi8OjlNnLcKPPiPp03Vh0sJKTMG7QzFY"
    }
  }' > step.json
export KEY_ID=$(jq -r '.id' step.json)
curl "$PROVENANCE_API/v1/public/agents/$AGENT_ID/card"

Response 200

{
  "client_id": "http://127.0.0.1:50287/v1/public/agents/agt_01M6VQDE5YDGC9WJHCH8N395JA/card",
  "client_name": "pantry-pal",
  "jwks_uri": "http://127.0.0.1:50287/v1/public/agents/agt_01M6VQDE5YDGC9WJHCH8N395JA/directory",
  "web_bot_auth": {
    "trigger": "fetcher",
    "purpose": "shopping_agent"
  },
  "provenance": {
    "agent_id": "agt_01M6VQDE5YDGC9WJHCH8N395JA",
    "category": "shopping_agent",
    "operator": "sandbox.example",
    "status": "active"
  }
}

List an agent's signing keys

GET/v1/identify/agents/{id}/signing_keys

Lists the Ed25519 public keys an agent signs its requests with, newest first, revoked ones included.

Parameters

idstringpathRequired
The agent's ID.

Returns

The agent's signing keys.

Errors

export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl -s -X POST "$PROVENANCE_API/v1/mandate/agents" \
  -H "Authorization: Bearer $PROVENANCE_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "name": "pantry-pal", "category": "shopping_agent" }' > step.json
export AGENT_ID=$(jq -r '.id' step.json)
curl -s -X POST "$PROVENANCE_API/v1/identify/agents/$AGENT_ID/signing_keys" \
  -H "Authorization: Bearer $PROVENANCE_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "jwk": {
      "kty": "OKP",
      "crv": "Ed25519",
      "x": "G_STrQBvTD7Bi8OjlNnLcKPPiPp03Vh0sJKTMG7QzFY"
    }
  }' > step.json
export KEY_ID=$(jq -r '.id' step.json)
curl "$PROVENANCE_API/v1/identify/agents/$AGENT_ID/signing_keys" \
  -H "Authorization: Bearer $PROVENANCE_KEY"

Response 200

{
  "object": "list",
  "data": [
    {
      "id": "ask_01M6VQDE5JMR9KR0R1D4KQTWXV",
      "object": "agent_signing_key",
      "agent_id": "agt_01M6VQDE5HSNE700XZKGYFBEQ9",
      "kid": "lyRUHRS4LQGoXlD_Oaa0IK6BCBsxD6DdTLQRUUK3JW4",
      "jwk": {
        "kty": "OKP",
        "crv": "Ed25519",
        "x": "G_STrQBvTD7Bi8OjlNnLcKPPiPp03Vh0sJKTMG7QzFY",
        "kid": "lyRUHRS4LQGoXlD_Oaa0IK6BCBsxD6DdTLQRUUK3JW4"
      },
      "status": "active",
      "directory_url": "http://127.0.0.1:50287/v1/public/agents/agt_01M6VQDE5HSNE700XZKGYFBEQ9/directory",
      "card_url": "http://127.0.0.1:50287/v1/public/agents/agt_01M6VQDE5HSNE700XZKGYFBEQ9/card",
      "created_at": "2026-11-07T19:22:53.490Z",
      "expires_at": null,
      "revoked_at": null
    }
  ],
  "has_more": false,
  "next_cursor": null
}

Revoke a signing key

DELETE/v1/identify/agents/{id}/signing_keys/{key_id}

Revokes a signing key. The agent's directory stops publishing it, so verifiers drop it within their cache time (five minutes for the hosted directory).

Parameters

idstringpathRequired
The agent's ID.
key_idstringpathRequired
The signing key's ID.

Returns

The revoked key.

Errors

export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl -s -X POST "$PROVENANCE_API/v1/mandate/agents" \
  -H "Authorization: Bearer $PROVENANCE_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "name": "pantry-pal", "category": "shopping_agent" }' > step.json
export AGENT_ID=$(jq -r '.id' step.json)
curl -s -X POST "$PROVENANCE_API/v1/identify/agents/$AGENT_ID/signing_keys" \
  -H "Authorization: Bearer $PROVENANCE_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "jwk": {
      "kty": "OKP",
      "crv": "Ed25519",
      "x": "G_STrQBvTD7Bi8OjlNnLcKPPiPp03Vh0sJKTMG7QzFY"
    }
  }' > step.json
export KEY_ID=$(jq -r '.id' step.json)
curl -X DELETE "$PROVENANCE_API/v1/identify/agents/$AGENT_ID/signing_keys/$KEY_ID" \
  -H "Authorization: Bearer $PROVENANCE_KEY"

Response 200

{
  "id": "ask_01M6VQDE5R2RWNJ7NQ1ZZJM1VR",
  "object": "agent_signing_key",
  "deleted": true
}

Was this page helpful? Send us feedback

LLM? Read llms.txt.