> ## Documentation Index
> Fetch the complete documentation index at: https://docs.scrape.st/llms.txt
> Use this file to discover all available pages before exploring further.

# Migrate API Key

> Rotate your API key and migrate all associated configuration

Rotate your API key. Queues a background job that generates a new key and migrates all associated tracking, webhooks, and configuration.

<Warning>
  Your current API key will stop working once migration completes. Make sure to
  update your integration with the new key.
</Warning>

## Response

Returns `202 Accepted` when the rotation job is queued.

<ResponseField name="data" type="null">
  Always `null` — the new key will be delivered asynchronously.
</ResponseField>

<ResponseField name="message" type="string">
  Status message
</ResponseField>

<RequestExample>
  ```bash theme={null}
  curl -X POST https://scrape.st/api-key/migrate \
    -H "x-api-key: YOUR_API_KEY"
  ```
</RequestExample>

<ResponseExample>
  ```json theme={null}
  {
    "data": null,
    "message": "API key rotation queued. Your key is being migrated in the background."
  }
  ```
</ResponseExample>
