# auth.test

> The bot user behind the token (checks that the token works), its app and the permissions it holds.

Source: https://slaiky.xyz/docs/reference/methods/auth.test

`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](/docs/errors)).

## Example

Recorded on a real server (ids replaced).

*you run*

```sh

curl -s https://app.slaiky.xyz/api/methods/auth.test \
  -H "authorization: Bearer $SLAIKY_BOT_TOKEN" \
  -H 'content-type: application/json' \
  -d '{}'

```

*Slaiky → your app · `answer`*

```json

{
  "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"
  ]
}

```
