ServerAvatarDocs
API Reference

Organizations

API routes for organizations, members, roles and permissions, the sidebar menu and the organization activity log.

An organization owns servers, integrations and members. Almost every other route in the API has an organization id in its path, so start here. See the guide pages Organizations, Members and Roles and permissions for how it works in the panel.

Both kinds of token can call every route on this page, except the three that change roles: POST, PATCH and DELETE on /organizations/{organization}/roles. They need a login token. With the personal API token they answer 403 with the code api_token_not_allowed. See Authentication.

In the paths below, {organization} is the organization id from GET /organizations. You see a 404 for an organization you are not a member of.

Organizations

GET /organizations

Lists the organizations you belong to. The list is not paged.

QueryTypeRules
searchstringAt most 100 characters. Matches the name.
typestringall (default), mine (you own them) or invited (you were invited).
curl https://<api-address>/api/v1/organizations \
  -H "Accept: application/json" \
  -H "Authorization: Bearer <token>"

200:

{
  "data": [
    {
      "id": 1,
      "name": "Acme Hosting",
      "description": "Our servers",
      "logo_url": "https://<api-address>/storage/organizations/logos/logo.png",
      "is_owner": true,
      "is_default": true,
      "role": { "id": 1, "name": "Owner", "key": "owner" },
      "has_managed_servers": false,
      "servers_count": 3,
      "created_at": "2026-11-10T10:00:00+00:00"
    }
  ]
}

role.key is owner, admin, or null for a custom role.

POST /organizations

Creates an organization. You become its owner. Send JSON, or multipart/form-data to upload a logo.

FieldTypeRequiredRules
namestringyesAt most 100 characters.
descriptionstringnoAt most 500 characters.
logofilenoAn image: png, jpg, jpeg or webp, at most 2 MB. SVG is refused.

201 returns the organization in data with the message Organization created. If you send no logo, Central makes a letter avatar.

GET /organizations/{organization}

One organization, in the same shape as the list. 404 when you are not a member.

PATCH /organizations/{organization}

Changes the name, description or logo. Send only what changes. Permission: Organization (manage).

FieldTypeRequiredRules
namestringnoAt most 100 characters. Not empty when sent.
descriptionstring or nullnoAt most 500 characters.
logofilenoAs above. Not allowed together with remove_logo.
remove_logobooleannotrue removes the logo and goes back to the letter avatar.

200 returns the organization with the message Organization updated.

POST /organizations/{organization}/default

Makes this your default organization, the one the panel opens first. No body. Any member can do it. 200 returns the organization with the message Default organization updated.

DELETE /organizations/{organization}

Deletes an organization. Only the owner can. Send the exact name of the organization to confirm.

FieldTypeRequiredRules
namestringyesMust equal the organization's name exactly.

200 — { "message": "Organization deleted." }

Errors:

  • 403 — Only the organization owner can do this.
  • 422 — The name does not match this organization. (errors.name)
  • 422 organization_is_default — This is your default organization. Choose another default organization before deleting it.
  • 422 organization_has_servers — This organization still has servers. Remove its servers before deleting it.

POST /organizations/{organization}/leave

Removes you from the organization. No body. 200 — You left <organization name>. The owner cannot leave: 422 owner_cannot_leave — The owner cannot leave the organization. Delete the organization instead.

GET /organizations/{organization}/menu

The sidebar items you may open in this organization, in panel order. Any member can call it.

200 has one item for each sidebar screen you may open, in panel order:

{
  "data": [
    {
      "name": "organization.members",
      "title": "Members",
      "icon": "users",
      "url": "/organizations/{organization}/members",
      "group": "organization",
      "parent": "organization",
      "order": 2
    }
  ]
}

name is a permission key and parent is the key of the item it sits under. url is a path pattern of the panel, with {organization} still in it, or null for an item that only groups others. order can be a decimal number.

Activity

GET /organizations/{organization}/activity

The organization activity log. Permission: Activity Log (view). See Organization activity.

QueryTypeRules
pageintegerFrom 1.
per_pageinteger1 to 50. The default is 10.
typestringA type value from filters.types. At most 50 characters.
actionstringAn action value from filters.actions. At most 30 characters.

200 is a paged list. Next to data, links and meta it has filters, with the types and actions that exist in this organization:

{
  "data": [
    {
      "id": 3874,
      "actor": { "id": 1, "name": "Jane Doe" },
      "by": "user",
      "hosting_user": null,
      "type": "hosting_users",
      "type_label": "Control Panel users",
      "action": "delete",
      "action_label": "Delete",
      "event": "hosting_user.deleted",
      "description": "Deleted Control Panel user acme-customer of server web-1",
      "ip": "203.0.113.9",
      "browser": "Chrome",
      "platform": "Windows",
      "created_at": "2026-11-25T05:58:43+00:00"
    }
  ],
  "links": { "first": "…", "last": "…", "prev": null, "next": "…" },
  "meta": { "current_page": 1, "per_page": 10, "total": 30 },
  "filters": {
    "types": [ { "value": "applications", "label": "Applications" } ],
    "actions": [ { "value": "create", "label": "Create" } ]
  }
}

by is user for a member, or control_panel for a Control Panel user, who is then in hosting_user. links and meta are shortened here.

Members

Permission: Members (view to list, manage to change). See Members.

GET /organizations/{organization}/members

A paged list of members and pending invitations.

QueryTypeRules
searchstringAt most 100 characters. Matches name, email or designation.
pageintegerFrom 1.
per_pageintegerFrom 1. The default is 25.

200:

{
  "data": [
    {
      "id": 855,
      "status": "joined",
      "email": "jane@example.com",
      "user": { "id": 1, "name": "Jane Doe", "email": "jane@example.com" },
      "designation": "Founder",
      "role": { "id": 1, "name": "Owner", "key": "owner" },
      "is_owner": true,
      "is_you": true,
      "invited_at": null,
      "joined_at": "2026-11-10T10:00:00+00:00"
    }
  ],
  "links": { "first": "…", "last": "…", "prev": null, "next": null },
  "meta": { "current_page": 1, "per_page": 25, "total": 1 }
}

status is joined or pending. A pending member is an invitation: user is null until the person signs up.

GET /organizations/{organization}/members/role-options

The roles you can give a member: every role except Owner. Permission: Members (manage). 200 is a list of { id, name, key, is_fixed }.

POST /organizations/{organization}/members

Adds a member by email. If no account uses the email yet, Central sends a sign-up link and the member joins when they sign up. Permission: Members (manage).

FieldTypeRequiredRules
emailstringyesA valid email address, at most 254 characters.
designationstringyesAt most 100 characters.
role_idintegeryesThe id of a role of this organization. Not the Owner role.

201 returns the member (200 if the invitation already existed), with one of these messages:

  • <name> was added to the organization. The person has an account and joined at once.
  • No account uses this email yet. We sent a sign-up link; they join the organization when they sign up.

Errors, all 422 with a code: already_member (This person is already a member of the organization.), already_invited (This person is already invited to the organization. Edit the member to change their role, or resend the invitation.), already_shared (A server of this organization is shared with this person. Stop sharing it first to add them as a member.).

PATCH /organizations/{organization}/members/{member}

Changes a member's role or designation. {member} is the id from the list. Permission: Members (manage).

FieldTypeRequiredRules
role_idintegernoThe id of a role of this organization. Not the Owner role.
designationstringnoAt most 100 characters.

200 returns the member with the message Member updated. 422 member_is_owner — The organization owner cannot be changed or removed. 422 cannot_change_own_role — You cannot change your own role.

DELETE /organizations/{organization}/members/{member}

Removes a member, or cancels a pending invitation. Permission: Members (manage). 200 — Member removed from the organization. or Invitation to <email> cancelled. The sign-up link no longer works. 422 cannot_remove_self — You cannot remove yourself. Leave the organization instead. 422 member_is_owner.

POST /organizations/{organization}/members/{member}/resend

Sends a new sign-up link to a pending invitation. The old link stops working. Permission: Members (manage). 200 — We sent a new sign-up link to <email>. The old link no longer works. 422 not_pending — This person has already joined the organization.

Roles and permissions

Permission: Roles & Permissions (view to read, manage to change). See Roles and permissions.

GET /organizations/{organization}/permissions

Every permission a role can hold, for the role editor. Permission: Roles & Permissions (view).

QueryTypeRules
typestringshared returns only the permissions that can be given when sharing a server.

200:

{
  "data": [
    {
      "name": "organization",
      "title": "Organization",
      "group": "organization",
      "parent": null,
      "requires": [],
      "owner_only": false,
      "order": 1
    }
  ]
}

requires lists permissions that must be on first. owner_only permissions cannot be given to a role.

GET /organizations/{organization}/roles

Lists the roles. Not paged. Permission: Roles & Permissions (view).

{
  "data": [
    {
      "id": 1294,
      "name": "Admin",
      "key": "admin",
      "is_fixed": true,
      "members_count": 0,
      "pending_count": 0
    }
  ]
}

is_fixed is true for the Owner and Admin roles, which cannot be changed or deleted. key is null for a custom role.

GET /organizations/{organization}/roles/{role}

One role with its permissions. Permission: Roles & Permissions (view). 200 is the same item plus permissions: a list of { "name": "organization", "view": true, "manage": true }.

POST /organizations/{organization}/roles

Creates a custom role. Login token only. Permission: Roles & Permissions (manage).

FieldTypeRequiredRules
namestringyesAt most 50 characters. Unique in the organization.
permissionsarrayyesMust be present (it can be empty). At most 200 items.
permissions.*.namestringyesA permission name from the permission list. At most 100 characters. No repeats.
permissions.*.viewbooleannoGive view access.
permissions.*.managebooleannoGive manage access.
curl -X POST https://<api-address>/api/v1/organizations/1/roles \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer <login-token>" \
  -d '{"name": "Developer", "permissions": [{"name": "server", "view": true}, {"name": "application", "view": true, "manage": true}]}'

201 returns the role with its permissions and the message Role created.

PATCH /organizations/{organization}/roles/{role}

Changes a custom role. Login token only. Permission: Roles & Permissions (manage). Send name, permissions or both, with the same rules as above. permissions replaces the whole list. 200 with the message Role updated.

DELETE /organizations/{organization}/roles/{role}

Deletes a custom role. Login token only. Permission: Roles & Permissions (manage). 200 — Role deleted.

Role errors, all 422 with a code:

  • role_fixed — The Owner and Admin roles cannot be changed or deleted.
  • role_in_use — This role is used by 2 members. Give them another role first. The text also names pending invitations that use the role.
  • permission_not_held — You don't have the permission <name> at this level yourself, so you can't give it to a role or assign a role that has it. You can only give a role what you hold yourself.
  • A permission that does not exist, is owner-only, or is given at the wrong level (for example manage on a view-only permission) is refused with a message that names it, in errors.

Limits

  • Organization name 100 characters, description 500, logo 2 MB.
  • Role name 50 characters, at most 200 permissions in a role.
  • Designation 100 characters. Search text 100 characters.
  • At most 50 items a page, except the member list, which has no upper limit.

Who can do this

WhatNeeds
Read an organization, set the default, leave, the menuAny member.
Change an organizationOrganization (manage).
Delete an organizationThe owner.
Activity logActivity Log (view).
List membersMembers (view).
Add, change, remove or resend a member, role optionsMembers (manage).
List roles and permissionsRoles & Permissions (view).
Create, change or delete a roleRoles & Permissions (manage), and a login token.

Common errors

  • You do not have permission to do this in this organization. (403) Your role lacks the permission in the table above.
  • The requested item was not found. (not_found, 404) The organization does not exist, or you are not a member of it.
  • The API token cannot change account settings. Log in to the panel to do this. (api_token_not_allowed, 403) A role write was called with the personal API token.

On this page