Skip to content
Developers
Menu

API reference

Invites

Every path is relative to https://api.palloo.app/v1. Send a bot token as Authorization: Bearer palloo_bot_... unless the operation says otherwise; see Authentication.

On this page

List invites

GET /communities/{id}/invites Bot token: Call it with a bot token (people can call it too).

A community's active (unexpired, not used up) invites. Requires Manage Community.

Required permissions

Requires Manage Community.

Parameters

Parameters of List invites
Name In Type Description
id Required path string

Community ID.

Responses

200

The active invites, oldest first.

Body: InviteList

Example response (200)
{
  "invites": [
    {
      "code": "string",
      "community_id": "01J9ZQ3V5K8M2N4P6R8T0W2Y4A",
      "created_by": "01J9ZQ3V5K8M2N4P6R8T0W2Y4A",
      "uses": 0,
      "max_uses": 1,
      "expires_at": "2026-10-15T09:00:00Z",
      "created_at": "2026-10-15T09:00:00Z"
    }
  ]
}
401

unauthenticated: the bearer token is missing, invalid or expired.

Body: Error

WWW-Authenticate header.

403

missing_permission: the caller is a member but lacks the permission.

Body: Error

404

community_not_found: no such community, or the caller is not a member. The two cases are indistinguishable on purpose.

Body: Error

429

rate_limited: too many attempts. Every operation a bot calls is also limited per bot (50 at once, then 50 per second), so any authenticated operation can answer this to a bot. Changes to a community's structure (creating or changing the community, channels, roles, member roles, overwrites, invites, kicks, bans, timeouts, report updates and actions, and bots) are also limited per caller (30 at once, then 1 per second) and per community (60 at once, then 1 per second), and creating communities per caller (10 at once, then 1 every 5 minutes).

Body: Error

Retry-After header.

500

internal: an unexpected server error. Details are only in server logs.

Body: Error

Create invite

POST /communities/{id}/invites Bot token: Call it with a bot token (people can call it too).

Create an invite link. Requires Create Invites.

A community can have at most 1000 active (unexpired, not used up) invites, and each member at most 100 of them.

Required permissions

Requires Create Invites.

Parameters

Parameters of Create invite
Name In Type Description
id Required path string

Community ID.

Request body

application/json: CreateInviteRequest (required)

Fields of the application/json request body
FieldTypeDescription
max_uses integer or null

Omit or null for unlimited uses.

at least 1; at most 1000

expires_in_seconds integer

Defaults to 7 days. 0 means never. At most 30 days.

at least 0; at most 2592000; default 604800

Example request body
{
  "max_uses": 1,
  "expires_in_seconds": 604800
}

Responses

201

Created.

Body: Invite

Example response (201)
{
  "code": "string",
  "community_id": "01J9ZQ3V5K8M2N4P6R8T0W2Y4A",
  "created_by": "01J9ZQ3V5K8M2N4P6R8T0W2Y4A",
  "uses": 0,
  "max_uses": 1,
  "expires_at": "2026-10-15T09:00:00Z",
  "created_at": "2026-10-15T09:00:00Z"
}
400

invalid_body, invalid_max_uses or invalid_expiry.

Body: Error

401

unauthenticated: the bearer token is missing, invalid or expired.

Body: Error

WWW-Authenticate header.

403

missing_permission: the caller is a member but lacks the permission.

Body: Error

404

community_not_found: no such community, or the caller is not a member. The two cases are indistinguishable on purpose.

Body: Error

409

invite_limit_reached: the community, or the caller in it, has the maximum number of active invites.

Body: Error

429

rate_limited: too many attempts. Every operation a bot calls is also limited per bot (50 at once, then 50 per second), so any authenticated operation can answer this to a bot. Changes to a community's structure (creating or changing the community, channels, roles, member roles, overwrites, invites, kicks, bans, timeouts, report updates and actions, and bots) are also limited per caller (30 at once, then 1 per second) and per community (60 at once, then 1 per second), and creating communities per caller (10 at once, then 1 every 5 minutes).

Body: Error

Retry-After header.

500

internal: an unexpected server error. Details are only in server logs.

Body: Error

Preview invite

GET /invites/{code} Bot token: Call it with a bot token (people can call it too).

What an invite leads to, so the client can ask before joining. Rate limited per user.

Parameters

Parameters of Preview invite
Name In Type Description
code Required path string

Responses

200

The invite's community.

Body: InvitePreview

Example response (200)
{
  "code": "string",
  "community_id": "01J9ZQ3V5K8M2N4P6R8T0W2Y4A",
  "community_name": "string",
  "icon": "string",
  "icon_dark": "string",
  "banner": "string",
  "member_count": 0,
  "vanity": false
}
401

unauthenticated: the bearer token is missing, invalid or expired.

Body: Error

WWW-Authenticate header.

404

invite_not_found: the code is unknown, expired, used up or revoked. The cases are indistinguishable on purpose.

Body: Error

429

rate_limited: too many attempts. Every operation a bot calls is also limited per bot (50 at once, then 50 per second), so any authenticated operation can answer this to a bot. Changes to a community's structure (creating or changing the community, channels, roles, member roles, overwrites, invites, kicks, bans, timeouts, report updates and actions, and bots) are also limited per caller (30 at once, then 1 per second) and per community (60 at once, then 1 per second), and creating communities per caller (10 at once, then 1 every 5 minutes).

Body: Error

Retry-After header.

500

internal: an unexpected server error. Details are only in server logs.

Body: Error

Revoke invite

DELETE /invites/{code} Bot token: Call it with a bot token (people can call it too).

Revoke an invite. Allowed for its creator and for members with Manage Community.

Parameters

Parameters of Revoke invite
Name In Type Description
code Required path string

Responses

204

Revoked.

401

unauthenticated: the bearer token is missing, invalid or expired.

Body: Error

WWW-Authenticate header.

403

missing_permission: the caller is a member but lacks the permission.

Body: Error

404

invite_not_found. Also returned when the caller is not a member of the invite's community.

Body: Error

429

rate_limited: too many attempts. Every operation a bot calls is also limited per bot (50 at once, then 50 per second), so any authenticated operation can answer this to a bot. Changes to a community's structure (creating or changing the community, channels, roles, member roles, overwrites, invites, kicks, bans, timeouts, report updates and actions, and bots) are also limited per caller (30 at once, then 1 per second) and per community (60 at once, then 1 per second), and creating communities per caller (10 at once, then 1 every 5 minutes).

Body: Error

Retry-After header.

500

internal: an unexpected server error. Details are only in server logs.

Body: Error