Skip to content
User

Rotate API Key

Atomically replace your API token with a newly generated one

The v1 API, for batchesSquids, tasks and runs: many calls on a schedule, delivered where you work. For one call that answers in seconds, use the API v2.
POSThttps://api.lobstr.io/v1/me/rotate_token

Generates a new API token and invalidates your current one in a single atomic operation. Use this to rotate credentials after exposure or as part of a regular security rotation policy.

Your existing token stops working immediately. Update all integrations to the new token returned in the response before calling this endpoint.

Headers

Authorizationstringheaderrequired

Your current API authentication token. Value: Token YOUR_API_KEY

Rate Limiting

This endpoint is throttled to 10 requests per hour per account.

Code Examples

curl -X POST "https://api.lobstr.io/v1/me/rotate_token" \
  -H "Authorization: Token YOUR_CURRENT_API_KEY"

Response

200
{
  "token": "YOUR_NEW_API_KEY"
}