# the402 Participant API Key Rotation

> the402 Participant API Key Rotation is a paid API for AI agents from api.the402.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-13).

Rotates (regenerates) the API key for an authenticated participant on the the402 agent service marketplace.

## Facts

- Endpoint: POST https://api.the402.ai/v1/participants/rotate-key
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/the402-participant-api-key-rotation-060bee8e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_erNQ3Ih4Kr4cf9rXIS8eg

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability the402-participant-api-key-rotation-060bee8e -d '<json body>'
```

Example prompt: My the402 marketplace API key may have been exposed — please rotate it now so the old one is invalidated and I get a fresh key for my participant account.

## When to prefer this

Use this endpoint when a the402 marketplace participant needs to invalidate their current API key and receive a fresh one — for example after a suspected credential leak, routine security rotation, or onboarding a new integration. This is specifically for the402 platform participant credentials, not for rotating keys of any other service listed in the marketplace.

## Known failure modes

- Unauthenticated request — no valid session or bearer token provided, returns 401
- Participant account not found or suspended, returns 404 or 403
- Rate limit exceeded for key rotation, returns 429
- Internal server error during key generation, returns 500

## How this service works

Rotate your API key (x402 payment proves wallet ownership)

## Output

Returns a JSON object containing the newly generated API key (api_key string) and the participant ID (participant_id string) associated with the account. The old API key is invalidated after this call.

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "api_key": {
   "type": "string"
  },
  "participant_id": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/the402-participant-api-key-rotation-060bee8e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.the402.ai](https://www.zero.xyz/host/api.the402.ai/llms.txt)
