You say#auth.test
auth.test
The bot user behind the token (checks that the token works), its app and the permissions it holds.
POST https://app.slaiky.xyz/api/methods/auth.test · needs the bot token
Arguments
No arguments.
Answer
{ "ok": true, … } with: bot: User, appId: string, workspaceId: string, scopes: string[]. A refusal is { "ok": false, "error": { "code", "message" } } (errors).
Example
Recorded on a real server (ids replaced).
curl -s https://app.slaiky.xyz/api/methods/auth.test \
-H "authorization: Bearer $SLAIKY_BOT_TOKEN" \
-H 'content-type: application/json' \
-d '{}'
{
"ok": true,
"bot": {
"id": "7f3c0004-5a1e-4c2b-9d6f-1a2b3c4d5e03",
"handle": "docsrecorder",
"name": "Docs Recorder",
"title": "Records what Slaiky sends, for the developer docs",
"avatarUrl": null,
"timezone": null,
"role": "member",
"status": null,
"isBot": true,
"appId": "7f3c0002-5a1e-4c2b-9d6f-1a2b3c4d5e01",
"agentId": null,
"look": null,
"deactivated": false
},
"appId": "7f3c0002-5a1e-4c2b-9d6f-1a2b3c4d5e01",
"workspaceId": "7f3c0003-5a1e-4c2b-9d6f-1a2b3c4d5e02",
"scopes": [
"chat:write",
"channels:read",
"channels:history",
"channels:join",
"app_mentions:read",
"commands",
"users:read",
"im:write",
"im:read",
"im:history",
"reactions:read",
"reactions:write",
"files:write"
]
}
Updated . Every method, scope, event and limit here is generated from the server’s own code.