> ## 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.

# Set Telegram Default Key

> Choose which API key the Telegram bot uses by default

Sets the default API key used by the Scrapest Telegram bot for the calling key's owner. The target key must belong to the same user.

## Request Body

<ParamField body="apiKeyId" type="string" required>
  The ID of the API key to set as default (from [List My API
  Keys](/rest-api-reference/list-my-api-keys)).
</ParamField>

## Response

<ResponseField name="data" type="object">
  `telegramDefaultApiKeyId` — the newly set default key ID.
</ResponseField>

<RequestExample>
  ```bash theme={null}
  curl -X POST https://scrape.st/users/me/telegram-default-key \
    -H "x-api-key: YOUR_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{
      "apiKeyId": "clx0abc..."
    }'
  ```
</RequestExample>

<ResponseExample>
  ```json theme={null}
  {
    "data": {
      "telegramDefaultApiKeyId": "clx0abc..."
    },
    "message": "Telegram default API key updated"
  }
  ```
</ResponseExample>
