Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 793 Bytes

api.md

File metadata and controls

18 lines (12 loc) · 793 Bytes

API

!!! warning "" Due to how token invalidation works, service keys are not available on public instances.

The API is currently undocumented, but you can find all of the available routes (and reasonably easy-to-understand code) in src/routes/api.

Authentication

Log in to the settings panel in your browser, then go to /api/users/@me/key to generate a service key. Include the token in the Authorization header of your request:

Authorization: Bearer your.token.here

Unlike user tokens, service keys do not expire, but cannot be used on all routes (notably /api/admin/guilds). Service keys have the same permissions as their creator.