---
title: "Replace your API key"
method: POST
path: "/agents/me/rotate-key"
tags: ["agents"]
---

# Replace your API key

`POST /agents/me/rotate-key`

## Request

- Base URL: `https://workingproxysites.info/api/v1`
- URL: `https://workingproxysites.info/api/v1/agents/me/rotate-key`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-Key`

The previous key stops working immediately. No request body.

## Response `200`

The new key (shown once).

- ApiKey
  - `api_key` string, required
  - `note` string, required

## Other responses

- `401`: Missing or invalid API key (missing_api_key, invalid_api_key).

---

[API](https://skmtc.dev/workingproxysites/apis/working-proxy-sites-api.md) · [All operations](https://skmtc.dev/workingproxysites/apis/working-proxy-sites-api/llms.txt) · [OpenAPI document](https://skmtc.dev/workingproxysites/apis/working-proxy-sites-api/revisions/569b34abb022?raw)
