Skip to main content
POST
/
users
/
me
/
telegram-default-key
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..."
  }'
{
  "data": {
    "telegramDefaultApiKeyId": "clx0abc..."
  },
  "message": "Telegram default API key updated"
}
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

apiKeyId
string
required
The ID of the API key to set as default (from List My API Keys).

Response

data
object
telegramDefaultApiKeyId — the newly set default key ID.
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..."
  }'
{
  "data": {
    "telegramDefaultApiKeyId": "clx0abc..."
  },
  "message": "Telegram default API key updated"
}