API reference
Introduction
Basics
- Base URL:
https://api.palloo.app/v1. Every path in this reference is relative to it:GET /instanceisGET https://api.palloo.app/v1/instance. The gateway is atwss://api.palloo.app/v1/gateway. - Log in with Palloo is the exception: its endpoints live on the issuer,
https://app.palloo.app. Take their addresses from the discovery document, as Log in with Palloo explains. - Bodies are JSON (
Content-Type: application/json), except file uploads. Unknown fields in a request body are refused with400 invalid_body, so send only the fields listed. - IDs are ULIDs: 26 characters that sort in creation order. Permissions are 64-bit sets sent as decimal strings.
- Errors have the shape
{"error": {"code": "...", "message": "..."}}. Branch oncode, never onmessage. See Errors. - Servers are called communities in the API. A community you are not in answers 404, exactly like one that does not exist.
This reference is generated from the Palloo server's OpenAPI document, version 0.1.0. It lists 131 operations: the ones a bot token, a webhook token or a Log in with Palloo app can call. Operations only a person's own account can use (sessions, passwords, friends, settings, creating servers, managing bots) and instance administration are left out.
Who can call what
| Label | Meaning |
|---|---|
| Bot token | Takes Authorization: Bearer palloo_bot_.... People's session tokens work too; the server applies the same permission checks to both. |
| Bots only | Only a bot token is accepted. A person's token gets 403 bot_required. |
| Webhook token | Authenticated by a webhook's own token, in the URL or as Authorization: Webhook palloo_wh_.... |
| OAuth app | Part of Log in with Palloo, called by a registered app. |
| No token | Open to anyone, such as the gateway upgrade and instance information. |
Operations by group
- Users 3 operations
- Communities 4 operations
- Channels 6 operations
- Messages 10 operations
- Threads 11 operations
- Direct messages 2 operations
- Members 9 operations
- Roles 11 operations
- Invites 4 operations
- Moderation 9 operations
- Uploads 4 operations
- Commands and interactions 9 operations
- Webhooks 8 operations
- Voice 5 operations
- Gateway 1 operation
- Instance 1 operation
- Log in with Palloo (OAuth) 6 operations
- Directory 4 operations
- Public web 11 operations
- Reactions 6 operations
- Stickers 2 operations
- Tiers 3 operations
- Organizations 1 operation
- Badges 1 operation
- Objects 168 shapes used by these operations