Send a chat message
The bot says your message in the streamer’s Twitch chat, spoken by the same identity as every other bot line (TipPageBot or the linked custom bot). Sent verbatim - no template variables - and it can’t start with / or !, so the bot never runs Twitch slash commands or triggers other bots. Own rate limit on top of the global ones: 20 messages per 30 seconds per streamer, shared across all keys. Requires chat:write.
POST
/chat/messagesAuthorization
AuthorizationBearer token (tp_live_...) · headerrequiredA TipPage API key, created in Dashboard → Settings → Developer.
Request body
requiredapplication/jsonmessagestringrequiredWhat the bot says. Can't start with `/` or `!`.
max length 500
Responses
200Done.
successboolean400Missing message (`bad_request`), over 500 characters (`message_too_long`), or disallowed content (`message_disallowed`).
errorstringrequiredHuman-readable message.
codestringMachine-readable code (e.g. `missing_scope`, `not_in_queue`).
401Missing or invalid API key (`missing_api_key` / `invalid_api_key`).
errorstringrequiredHuman-readable message.
codestringMachine-readable code (e.g. `missing_scope`, `not_in_queue`).
403The key lacks the required scope (`missing_scope`).
errorstringrequiredHuman-readable message.
codestringMachine-readable code (e.g. `missing_scope`, `not_in_queue`).
required_scopestring409The bot can't speak right now: switched off in the dashboard (`bot_disabled`), or not connected to the channel (`bot_unavailable` - transient, retry shortly).
errorstringrequiredHuman-readable message.
codestringMachine-readable code (e.g. `missing_scope`, `not_in_queue`).
429Rate limit exceeded - check the `RateLimit-*` headers.
errorstring502The chat gateway is unreachable (`gateway_unavailable`) - retry shortly.
errorstringrequiredHuman-readable message.
codestringMachine-readable code (e.g. `missing_scope`, `not_in_queue`).
Request
curl -X POST "https://api.tippage.com/v1/chat/messages" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"message": "string"
}'const response = await fetch("https://api.tippage.com/v1/chat/messages", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json"
},
body: JSON.stringify({
"message": "string"
})
});import requests
response = requests.post(
"https://api.tippage.com/v1/chat/messages",
headers={
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json"
},
json={
"message": "string"
},
)Response
{
"success": true
}{
"error": "string",
"code": "string"
}{
"error": "string",
"code": "string"
}{
"error": "string",
"code": "string",
"required_scope": "string"
}{
"error": "string",
"code": "string"
}{
"error": "string"
}{
"error": "string",
"code": "string"
}