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"
}
API Keys
Set Telegram Default Key
Choose which API key the Telegram bot uses by default
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
string
required
The ID of the API key to set as default (from List My API
Keys).
Response
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"
}