# Signed agents

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

Related guide: [Sign your agent's requests](https://provenanceauth.com/docs/identify/guides/sign-agent-requests.md)

## Endpoints

- `POST /v1/identify/agents/{id}/signing_keys`: [Add a signing key](#post-v1-identify-agents-id-signing-keys)
- `GET /v1/public/agents/{id}/directory`: [Get an agent's key directory](#get-v1-public-agents-id-directory)
- `GET /v1/public/agents/{id}/card`: [Get an agent's card](#get-v1-public-agents-id-card)
- `GET /v1/identify/agents/{id}/signing_keys`: [List an agent's signing keys](#get-v1-identify-agents-id-signing-keys)
- `DELETE /v1/identify/agents/{id}/signing_keys/{key_id}`: [Revoke a signing key](#delete-v1-identify-agents-id-signing-keys-key-id)

## The agent signing key object

### Attributes

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | no | Unique identifier for the object. |
| `object` | enum | no | The type of object. One of `agent_signing_key`. |
| `agent_id` | string | no | The agent the key belongs to. |
| `kid` | string | no | The key's JWK SHA-256 thumbprint: the `keyid` in a signature. |
| `jwk` | object | no | The public JWK. |
| `jwk.kty` | string | no | The key type. |
| `jwk.crv` | string | no | The curve. |
| `jwk.x` | string | no | The public key, base64url. |
| `jwk.kid` | string | no | The thumbprint. |
| `status` | enum | no | The key's status. One of `active`, `revoked`. |
| `directory_url` | string | no | The agent's key directory: put it in `Signature-Agent` with `type=jwks_uri`. |
| `card_url` | string | no | The agent's Signature Agent Card (`type=cimd`). |
| `created_at` | timestamp | no | When it was created. |
| `expires_at` | string \| null | no | When the key stops being published. |
| `revoked_at` | string \| null | no | When it was revoked. |

### Example

```json
{
  "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.

Auth: an API key, as `Authorization: Bearer <key>`.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `Idempotency-Key` | header | string | no | Retry a create safely: the same key + request returns the stored response (24 h, per caller). |
| `id` | path | string | yes | The agent's ID. |
| `jwk` | body | object | yes | The public key: `kty` OKP, `crv` Ed25519 and `x`. A `kid`, when sent, must be the key's JWK thumbprint. |
| `jwk.kty` | body | enum | no | The key type. One of `OKP`. |
| `jwk.crv` | body | enum | no | The curve. One of `Ed25519`. |
| `jwk.x` | body | string | no | The 32-byte public key, base64url. |
| `jwk.kid` | body | string | no | Optional; the key's JWK thumbprint. |
| `expires_at` | body | timestamp | no | When the key stops being published. |

### Returns

The signing key, with the agent's directory and card URLs. See [the agent signing key object](#object).

### Errors

- [`authentication_required`](https://provenanceauth.com/docs/platform/errors.md#authentication_required)
- [`invalid_json`](https://provenanceauth.com/docs/platform/errors.md#invalid_json)
- [`parameter_invalid`](https://provenanceauth.com/docs/platform/errors.md#parameter_invalid)
- [`parameter_missing`](https://provenanceauth.com/docs/platform/errors.md#parameter_missing)
- [`rate_limit_exceeded`](https://provenanceauth.com/docs/platform/errors.md#rate_limit_exceeded)
- [`resource_missing`](https://provenanceauth.com/docs/platform/errors.md#resource_missing)
- [`signing_key_exists`](https://provenanceauth.com/docs/platform/errors.md#signing_key_exists)
- [`signing_key_limit_reached`](https://provenanceauth.com/docs/platform/errors.md#signing_key_limit_reached)

### Request

**curl**

```bash
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"
    }
  }'
```

**Node**

```ts
const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/mandate/agents`, {
  method: "POST",
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
  body: JSON.stringify({ "name": "pantry-pal", "category": "shopping_agent" }),
})).json();
const agentId = step1.id;
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/identify/agents/${agentId}/signing_keys`, {
  method: "POST",
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
  body: JSON.stringify({
    "jwk": {
      "kty": "OKP",
      "crv": "Ed25519",
      "x": "G_STrQBvTD7Bi8OjlNnLcKPPiPp03Vh0sJKTMG7QzFY"
    }
  }),
})).json();
```

**Python**

```python
import os
import httpx

api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/mandate/agents", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
    "name": "pantry-pal",
    "category": "shopping_agent"
}).json()
agent_id = step1["id"]
data = httpx.post(f"{api}/v1/identify/agents/{agent_id}/signing_keys", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
    "jwk": {
        "kty": "OKP",
        "crv": "Ed25519",
        "x": "G_STrQBvTD7Bi8OjlNnLcKPPiPp03Vh0sJKTMG7QzFY"
    }
}).json()
```

### Response 201

```json
{
  "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.

Auth: none. No API key needed.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes | The agent's ID. |

### Returns

The agent's JWK Set.

### Errors

- [`rate_limit_exceeded`](https://provenanceauth.com/docs/platform/errors.md#rate_limit_exceeded)
- [`resource_missing`](https://provenanceauth.com/docs/platform/errors.md#resource_missing)

### Request

**curl**

```bash
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"
```

**Node**

```ts
const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/mandate/agents`, {
  method: "POST",
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
  body: JSON.stringify({ "name": "pantry-pal", "category": "shopping_agent" }),
})).json();
const agentId = step1.id;
const step2 = await (await fetch(`${process.env.PROVENANCE_API}/v1/identify/agents/${agentId}/signing_keys`, {
  method: "POST",
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
  body: JSON.stringify({
    "jwk": {
      "kty": "OKP",
      "crv": "Ed25519",
      "x": "G_STrQBvTD7Bi8OjlNnLcKPPiPp03Vh0sJKTMG7QzFY"
    }
  }),
})).json();
const keyId = step2.id;
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/public/agents/${agentId}/directory`)).json();
```

**Python**

```python
import os
import httpx

api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/mandate/agents", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
    "name": "pantry-pal",
    "category": "shopping_agent"
}).json()
agent_id = step1["id"]
step2 = httpx.post(f"{api}/v1/identify/agents/{agent_id}/signing_keys", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
    "jwk": {
        "kty": "OKP",
        "crv": "Ed25519",
        "x": "G_STrQBvTD7Bi8OjlNnLcKPPiPp03Vh0sJKTMG7QzFY"
    }
}).json()
key_id = step2["id"]
data = httpx.get(f"{api}/v1/public/agents/{agent_id}/directory").json()
```

### Response 200

```json
{
  "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.

Auth: none. No API key needed.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes | The agent's ID. |

### Returns

The Signature Agent Card.

### Errors

- [`rate_limit_exceeded`](https://provenanceauth.com/docs/platform/errors.md#rate_limit_exceeded)
- [`resource_missing`](https://provenanceauth.com/docs/platform/errors.md#resource_missing)

### Request

**curl**

```bash
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"
```

**Node**

```ts
const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/mandate/agents`, {
  method: "POST",
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
  body: JSON.stringify({ "name": "pantry-pal", "category": "shopping_agent" }),
})).json();
const agentId = step1.id;
const step2 = await (await fetch(`${process.env.PROVENANCE_API}/v1/identify/agents/${agentId}/signing_keys`, {
  method: "POST",
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
  body: JSON.stringify({
    "jwk": {
      "kty": "OKP",
      "crv": "Ed25519",
      "x": "G_STrQBvTD7Bi8OjlNnLcKPPiPp03Vh0sJKTMG7QzFY"
    }
  }),
})).json();
const keyId = step2.id;
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/public/agents/${agentId}/card`)).json();
```

**Python**

```python
import os
import httpx

api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/mandate/agents", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
    "name": "pantry-pal",
    "category": "shopping_agent"
}).json()
agent_id = step1["id"]
step2 = httpx.post(f"{api}/v1/identify/agents/{agent_id}/signing_keys", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
    "jwk": {
        "kty": "OKP",
        "crv": "Ed25519",
        "x": "G_STrQBvTD7Bi8OjlNnLcKPPiPp03Vh0sJKTMG7QzFY"
    }
}).json()
key_id = step2["id"]
data = httpx.get(f"{api}/v1/public/agents/{agent_id}/card").json()
```

### Response 200

```json
{
  "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.

Auth: an API key, as `Authorization: Bearer <key>`.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes | The agent's ID. |

### Returns

The agent's signing keys.

### Errors

- [`authentication_required`](https://provenanceauth.com/docs/platform/errors.md#authentication_required)
- [`rate_limit_exceeded`](https://provenanceauth.com/docs/platform/errors.md#rate_limit_exceeded)
- [`resource_missing`](https://provenanceauth.com/docs/platform/errors.md#resource_missing)

### Request

**curl**

```bash
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"
```

**Node**

```ts
const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/mandate/agents`, {
  method: "POST",
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
  body: JSON.stringify({ "name": "pantry-pal", "category": "shopping_agent" }),
})).json();
const agentId = step1.id;
const step2 = await (await fetch(`${process.env.PROVENANCE_API}/v1/identify/agents/${agentId}/signing_keys`, {
  method: "POST",
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
  body: JSON.stringify({
    "jwk": {
      "kty": "OKP",
      "crv": "Ed25519",
      "x": "G_STrQBvTD7Bi8OjlNnLcKPPiPp03Vh0sJKTMG7QzFY"
    }
  }),
})).json();
const keyId = step2.id;
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/identify/agents/${agentId}/signing_keys`, {
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5" },
})).json();
```

**Python**

```python
import os
import httpx

api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/mandate/agents", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
    "name": "pantry-pal",
    "category": "shopping_agent"
}).json()
agent_id = step1["id"]
step2 = httpx.post(f"{api}/v1/identify/agents/{agent_id}/signing_keys", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
    "jwk": {
        "kty": "OKP",
        "crv": "Ed25519",
        "x": "G_STrQBvTD7Bi8OjlNnLcKPPiPp03Vh0sJKTMG7QzFY"
    }
}).json()
key_id = step2["id"]
data = httpx.get(f"{api}/v1/identify/agents/{agent_id}/signing_keys", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}).json()
```

### Response 200

```json
{
  "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).

Auth: an API key, as `Authorization: Bearer <key>`.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes | The agent's ID. |
| `key_id` | path | string | yes | The signing key's ID. |

### Returns

The revoked key.

### Errors

- [`authentication_required`](https://provenanceauth.com/docs/platform/errors.md#authentication_required)
- [`rate_limit_exceeded`](https://provenanceauth.com/docs/platform/errors.md#rate_limit_exceeded)
- [`resource_missing`](https://provenanceauth.com/docs/platform/errors.md#resource_missing)

### Request

**curl**

```bash
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"
```

**Node**

```ts
const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/mandate/agents`, {
  method: "POST",
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
  body: JSON.stringify({ "name": "pantry-pal", "category": "shopping_agent" }),
})).json();
const agentId = step1.id;
const step2 = await (await fetch(`${process.env.PROVENANCE_API}/v1/identify/agents/${agentId}/signing_keys`, {
  method: "POST",
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
  body: JSON.stringify({
    "jwk": {
      "kty": "OKP",
      "crv": "Ed25519",
      "x": "G_STrQBvTD7Bi8OjlNnLcKPPiPp03Vh0sJKTMG7QzFY"
    }
  }),
})).json();
const keyId = step2.id;
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/identify/agents/${agentId}/signing_keys/${keyId}`, {
  method: "DELETE",
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5" },
})).json();
```

**Python**

```python
import os
import httpx

api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/mandate/agents", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
    "name": "pantry-pal",
    "category": "shopping_agent"
}).json()
agent_id = step1["id"]
step2 = httpx.post(f"{api}/v1/identify/agents/{agent_id}/signing_keys", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
    "jwk": {
        "kty": "OKP",
        "crv": "Ed25519",
        "x": "G_STrQBvTD7Bi8OjlNnLcKPPiPp03Vh0sJKTMG7QzFY"
    }
}).json()
key_id = step2["id"]
data = httpx.delete(f"{api}/v1/identify/agents/{agent_id}/signing_keys/{key_id}", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}).json()
```

### Response 200

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