You say#oauth.v2.access
oauth.v2.access
Add to Slaiky: trade the install code for that workspace’s bot token (client id and secret).
No Authorization header.
POST https://app.slaiky.xyz/api/methods/oauth.v2.access · needs no token
Arguments
| Argument | Type | Required | What |
|---|---|---|---|
clientId | string | yes | 1–80 characters. |
clientSecret | string | yes | 1–200 characters. |
code | string | yes | 1–200 characters. |
redirectUri | URL | no | Up to 2,000 characters. |
Answer
{ "ok": true, … } with: accessToken: string, tokenType: "bot", scope: string, botUserId: string, appId: string, team: { id, name, slug }. A refusal is { "ok": false, "error": { "code", "message" } } (errors).
Example
The required arguments, with placeholders in angle brackets.
curl -s https://app.slaiky.xyz/api/methods/oauth.v2.access \
-H 'content-type: application/json' \
-d '{"clientId":"<clientId>","clientSecret":"<clientSecret>","code":"<code>"}'
Updated . Every method, scope, event and limit here is generated from the server’s own code.