Getting Started
Last updated 4 October 2026
The PawTalk API is plain HTTPS and JSON. Bots use the same rules as people on the website: the same permission checks and the same audit log.
Your first bot in 4 steps
- Create an appOpen the Developer Portal and press Create a bot. Your app gets its own bot account with a BOT tag.
- Make a tokenOn the app's Bot tab, create a token and tick the scopes it needs. The token is shown once - store it somewhere safe.
- Add it to a serverUse the install link. A server manager picks exactly which permissions the bot gets there.
- Send a requestCall
GET /meto check the token works.
Requestbash
curl https://paw-talk.xyz/api/v1/me \ -H "Authorization: Bearer ptk_..."
Response200 OK
{
"kind": "bot",
"application": { "id": "3927903569680506", "name": "Foxbot" },
"bot": { "id": "4252467509116067", "username": "foxbot", "name": "Foxbot" }
}Base URL
https://paw-talk.xyz/api/v1Tokens
| Who | Header | Use it for |
|---|---|---|
| Bot | Bearer ptk_... | Server automation. Made on the app's Bot tab. |
| OAuth | Bearer pto_... | Acting for a person who signed in with PawTalk. Limited to what they agreed to. |
| Webhook | Webhook <secret> | Posting into one channel with /webhooks/{id}/execute. |
Keep tokens secretNever put a token in a website, a public repo or a screenshot. If one leaks, revoke it in the portal - it stops working at once.
Scopes
A bot token only does what its scopes allow, and what the server approved for the bot.
Readidentity.readservers.readchannels.readmembers.readroles.readmessages.read
Writemessages.writechannels.writeroles.writemoderation.write
OAuth (people)identifyemailservers.read
The full list, machine-readable: GET /oauth/scopes
Errors & limits
Error shapeJSON
{ "error": "missing_scope", "message": "..." }| Status | Means |
|---|---|
401 | No token, or it was revoked. |
403 | Missing scope, or the server didn't approve that permission. |
404 | Not found - or the bot can't see it. |
429 | Too fast: max 120 requests a minute per token. Wait and retry. |
IDs are stringsAlways keep ids as text. Parsing them as numbers breaks them in JavaScript.