List API tokens
Changed onReturns a record of each API token for the server. The tokens themselves are never returned. Tokens are created on the dashboard.
Only tokens created under the selected bot are listed. Add ?bot=pro to see the ones created on the Quark Pro tab.
Request
- Base URLhttps://quark.bot/api
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
The server's ID. Must be the server the token was created for.
Query parameters
Set to pro to act on the Quark Pro bot's configuration. Leave out for the main Quark bot.
Response
The token records.
Example response
[
{
"id": "301655085954367490",
"creator": "301655085954367490"
}
]Changes
- breaking
added the pattern
^\d{17,20}$to thepathrequest parameterguild_id - info
api operation id
listTokenswas added - info
api tag
Tokensadded - info
api tag
Authremoved - info
added the new optional
queryrequest parameterbot - info
added the media type
application/jsonfor the response with the status - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- breaking
- info
endpoint added
- info