# Org

> The organization, its branding and settings, and the team

Source: https://tickets.roostertail.com/docs/reference/org

Every operation below is also in [the OpenAPI document](https://tickets.roostertail.com/v1/openapi.yaml). One that names an MCP tool can be called through [the MCP server](https://tickets.roostertail.com/docs/mcp.md); one that names none cannot.

## Your org

`GET /v1/org`

Operation id `getOrg`. MCP tool `get_org`. SDK `tickets.org.retrieve`.

The org: its name, branding (logo, accent, sender name), support contact and settings such as timezone and whether emails and texts go out.

**Who may call it.** Any one of: An API key with scope `full`, `read`. Any other scope answers `insufficient_scope`; A signed-in dashboard member whose role has `read` (owner, admin, staff, viewer).

**Answers 200.** The org.

**Fields** (`Org`)

| Field | Type | Description |
| --- | --- | --- |
| `object` * | "org" |  |
| `id` * | string | An id starting with org_. |
| `name` * | string |  |
| `branding` * | Branding | What holders see: shown on ticket pages, My tickets, transfers, emails and Wallet passes. |
| `support_email` * | string \| null | Where holders write with questions: shown on ticket pages, My tickets, the hosted checkout and every email footer, and the Reply-To of our emails. null: Reply-To is the first owner's member email and pages say "Reply to… |
| `support_phone` * | string \| null | A phone holders may call (E.164), shown beside support_email; null: none shown. |
| `settings` * | object |  |
| `created_at` * | string (date-time) | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |

\* required

## Change the org's name, branding or settings

`PATCH /v1/org`

Operation id `updateOrg`. MCP tool `update_org` (a signed-in member's agent only).

Changes the org's name, support contact, branding or settings. Send only the fields to change.

**Who may call it.** A signed-in dashboard member whose role has `org.manage` (owner, admin).

**Request body** (`UpdateOrgInput`)

| Field | Type | Description |
| --- | --- | --- |
| `name` | string |  |
| `support_email` | string \| null | Where holders write with questions: shown on ticket pages, My tickets, the hosted checkout and every email footer, and the Reply-To of our emails. null: Reply-To is the first owner's member email and pages say "Reply to… |
| `support_phone` | string \| null | A phone holders may call (E.164), shown beside support_email; null: none shown. |
| `branding` | object | The logo is set by PUT /v1/org/logo (and removed by DELETE). |
| `settings` | object |  |

```json
{
  "name": "YRD",
  "branding": {
    "accent": "#112233"
  },
  "settings": {
    "sms_daily_cap": 100
  }
}
```

**Answers 200.** Updated.

**Fields** (`Org`)

| Field | Type | Description |
| --- | --- | --- |
| `object` * | "org" |  |
| `id` * | string | An id starting with org_. |
| `name` * | string |  |
| `branding` * | Branding | What holders see: shown on ticket pages, My tickets, transfers, emails and Wallet passes. |
| `support_email` * | string \| null | Where holders write with questions: shown on ticket pages, My tickets, the hosted checkout and every email footer, and the Reply-To of our emails. null: Reply-To is the first owner's member email and pages say "Reply to… |
| `support_phone` * | string \| null | A phone holders may call (E.164), shown beside support_email; null: none shown. |
| `settings` * | object |  |
| `created_at` * | string (date-time) | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |

\* required

## Upload the org's logo

`PUT /v1/org/logo`

Operation id `uploadLogo`. MCP tool `upload_logo` (a signed-in member's agent only).

Uploads the org's logo as base64 (PNG or SVG). We keep our own copy, and `branding.logo_url` points at it. Hosted ticket pages and emails use it. The example's `data` is cut short to read: send your whole file.

**Who may call it.** A signed-in dashboard member whose role has `org.manage` (owner, admin).

**Request body** (`UploadLogoInput`)

| Field | Type | Description |
| --- | --- | --- |
| `content_type` * | "image/png" \| "image/svg+xml" |  |
| `data` * | string | The file, base64 (at most 256 KB). |

\* required

```json
{
  "content_type": "image/png",
  "data": "iVBORw0KGgo="
}
```

**Answers 200.** Saved: branding.logo_url points at our copy.

**Fields** (`Org`)

| Field | Type | Description |
| --- | --- | --- |
| `object` * | "org" |  |
| `id` * | string | An id starting with org_. |
| `name` * | string |  |
| `branding` * | Branding | What holders see: shown on ticket pages, My tickets, transfers, emails and Wallet passes. |
| `support_email` * | string \| null | Where holders write with questions: shown on ticket pages, My tickets, the hosted checkout and every email footer, and the Reply-To of our emails. null: Reply-To is the first owner's member email and pages say "Reply to… |
| `support_phone` * | string \| null | A phone holders may call (E.164), shown beside support_email; null: none shown. |
| `settings` * | object |  |
| `created_at` * | string (date-time) | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |

\* required

## Remove the org's logo

`DELETE /v1/org/logo`

Operation id `deleteLogo`. MCP tool `delete_logo` (a signed-in member's agent only).

Removes the org's logo. `branding.logo_url` becomes null and pages fall back to the org's name.

**Who may call it.** A signed-in dashboard member whose role has `org.manage` (owner, admin).

**Answers 200.** Removed: branding.logo_url is null.

**Fields** (`Org`)

| Field | Type | Description |
| --- | --- | --- |
| `object` * | "org" |  |
| `id` * | string | An id starting with org_. |
| `name` * | string |  |
| `branding` * | Branding | What holders see: shown on ticket pages, My tickets, transfers, emails and Wallet passes. |
| `support_email` * | string \| null | Where holders write with questions: shown on ticket pages, My tickets, the hosted checkout and every email footer, and the Reply-To of our emails. null: Reply-To is the first owner's member email and pages say "Reply to… |
| `support_phone` * | string \| null | A phone holders may call (E.164), shown beside support_email; null: none shown. |
| `settings` * | object |  |
| `created_at` * | string (date-time) | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |

\* required

## List the team

`GET /v1/members`

Operation id `listMembers`. MCP tool `list_members` (a signed-in member's agent only).

The team: each member's name, email, role and notification choices, one page at a time.

**Who may call it.** A signed-in dashboard member whose role has `read` (owner, admin, staff, viewer).

| Parameter | In | Type | Description |
| --- | --- | --- | --- |
| `limit` | query | integer | How many to return, 1 to 100 (default 20). |
| `starting_after` | query | string | An id from the page before: the page after it. |
| `ending_before` | query | string | An id from the page after: the page before it. A list read from the database offers it as the list comes and filtered by event alone, in the default order, and answers parameter_invalid to any other… |

**Answers 200.** A page of members.

**Fields**

| Field | Type | Description |
| --- | --- | --- |
| `object` * | "list" |  |
| `data` * | array of Member | This page, newest first. |
| `has_more` * | boolean | True when there is another page: pass the last id as starting_after. |
| `url` * | "/v1/members" | The path this list came from (/v1/members). |

\* required

## Change a member's role or notifications

`PATCH /v1/members/{id}`

Operation id `updateMember`. MCP tool `update_member` (a signed-in member's agent only).

Changes a member's role or notification choices, or a member's own name. Changing a role needs `team.manage`. Demoting someone out of `keys.manage` or `webhooks.manage` lists the keys and endpoints they made that keep working; name them in `revoke_keys` and `pause_endpoints` to turn them off in the same call.

**Who may call it.** A signed-in dashboard member of any role.

| Parameter | In | Type | Description |
| --- | --- | --- | --- |
| `id` * | path | string | An id starting with mem_. |

**Request body** (`UpdateMemberInput`)

| Field | Type | Description |
| --- | --- | --- |
| `role` | Role | owner and admin: everything (only an owner changes owners); staff: everything but keys, webhooks, team and money settings; door: check-in only; viewer: read only, with what opens the door or a holder's page null. |
| `revoke_keys` | array of string | With a change of role: keys this person made to revoke in the same step. |
| `pause_endpoints` | array of string | With a change of role: webhook endpoints this person made (or whose maker is unknown) to pause in the same step. |
| `name` | string | A person's name as they write it. |
| `notifications` | object |  |

```json
{
  "role": "door"
}
```

**Answers 200.** Updated. Changing a role needs team.manage; anyone may change their own name and notifications. A change out of keys.manage and webhooks.manage names what they made that stays, and takes revoke_keys and pause_endpoints.

**Fields** (`MemberChanged`)

| Field | Type | Description |
| --- | --- | --- |
| `object` * | "member" |  |
| `id` * | string | An id starting with mem_. |
| `email` * | string (email) | An email address. |
| `name` * | string \| null |  |
| `role` * | Role | owner and admin: everything (only an owner changes owners); staff: everything but keys, webhooks, team and money settings; door: check-in only; viewer: read only, with what opens the door or a holder's page null. |
| `notifications` * | object |  |
| `joined_at` * | string (date-time) | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
| `last_seen_at` * | string \| null | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
| `api_keys_kept` | array of ApiKeyKept | Set when a role change took away keys.manage: the keys they made that still work. |
| `webhook_endpoints_kept` | array of WebhookEndpointKept | Set when a role change took away webhooks.manage: the endpoints they made, or whose maker is unknown, that are still enabled. |

\* required

**Errors of its own.** [`last_owner`](https://tickets.roostertail.com/docs/errors.md#last_owner). The errors every operation can answer are on [the errors page](https://tickets.roostertail.com/docs/errors.md).

## Remove a member

`DELETE /v1/members/{id}`

Operation id `removeMember`. MCP tool `remove_member` (a signed-in member's agent only).

Removes a member. Their sessions end at once. The keys and webhook endpoints they made keep working unless named in `revoke_keys` and `pause_endpoints`, and the answer lists those that stay. An org keeps at least one owner (`last_owner`).

**Who may call it.** A signed-in dashboard member whose role has `team.manage` (owner, admin).

| Parameter | In | Type | Description |
| --- | --- | --- | --- |
| `id` * | path | string | An id starting with mem_. |
| `revoke_keys` | query | string | Ids of keys this person made to revoke in the same step, comma separated, at most 100. |
| `pause_endpoints` | query | string | Ids of webhook endpoints this person made (or whose maker is unknown) to pause in the same step, comma separated, at most 32. |

**Answers 200.** Removed. Their sessions end at once; the keys they made keep working unless named in revoke_keys and the endpoints they made keep receiving events unless named in pause_endpoints, and the answer lists those that stay.

**Fields** (`MemberRemoved`)

| Field | Type | Description |
| --- | --- | --- |
| `object` * | "member" |  |
| `id` * | string | An id starting with mem_. |
| `deleted` * | true |  |
| `api_keys_kept` * | array of ApiKeyKept | The keys they made that still work: not revoked and not past a roll's grace. |
| `webhook_endpoints_kept` * | array of WebhookEndpointKept | The endpoints they made, or whose maker is unknown, that are still enabled and go on receiving events. |

\* required

**Errors of its own.** [`last_owner`](https://tickets.roostertail.com/docs/errors.md#last_owner). The errors every operation can answer are on [the errors page](https://tickets.roostertail.com/docs/errors.md).

## A member's connected apps (owners only)

`GET /v1/members/{id}/connections`

Operation id `listMemberConnections`.

What a member has connected through OAuth, for an owner of this org. Connections belong to the person, so `last_used_at` spans all their orgs. An admin is refused.

**Who may call it.** A signed-in dashboard member whose role has `team.manage` (owner, admin).

| Parameter | In | Type | Description |
| --- | --- | --- | --- |
| `id` * | path | string | An id starting with mem_. |
| `limit` | query | integer | How many to return, 1 to 100 (default 20). |
| `starting_after` | query | string | An id from the page before: the page after it. |
| `ending_before` | query | string | An id from the page after: the page before it. A list read from the database offers it as the list comes and filtered by event alone, in the default order, and answers parameter_invalid to any other… |

**Answers 200.** The connections that still work, each saying whether it was ended here.

**Fields**

| Field | Type | Description |
| --- | --- | --- |
| `object` * | "list" |  |
| `data` * | array of MemberConnection | This page, newest first. |
| `has_more` * | boolean | True when there is another page: pass the last id as starting_after. |
| `url` * | string | The path this list came from (/v1/members/{id}/connections). |

\* required

## End a member's connection in this org (owners only)

`DELETE /v1/members/{id}/connections/{connection}`

Operation id `endMemberConnection`.

Stops one of a member's connections from reaching this org, at once, and writes it on the audit trail. The connection goes on working in the person's other orgs, which are not this owner's to end. Removing the member ends all of it here too. Takes effect on the next tool call.

**Who may call it.** A signed-in dashboard member whose role has `team.manage` (owner, admin).

| Parameter | In | Type | Description |
| --- | --- | --- | --- |
| `id` * | path | string | An id starting with mem_. |
| `connection` * | path | string |  |

**Answers 200.** It can no longer reach this org. Ending it again changes nothing.

**Fields** (`MemberConnection`)

| Field | Type | Description |
| --- | --- | --- |
| `object` * | "member_connection" |  |
| `id` * | string | The connection (ogr_...). |
| `client_name` * | string | What the app called itself when it registered: unverified. |
| `scope` * | "read" \| "full" |  |
| `connected_at` * | string (date-time) | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
| `last_used_at` * | string \| null | Across every org this person belongs to. |
| `ends_at` * | string (date-time) | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
| `ended_here` * | boolean | True once an owner of this org has ended it here: it can no longer reach this org. Other orgs of the person are their own. |

\* required

## List open invites

`GET /v1/invites`

Operation id `listInvites`. MCP tool `list_invites` (a signed-in member's agent only).

Invites that have been made and not yet accepted or revoked, with the role each was made for.

**Who may call it.** A signed-in dashboard member whose role has `team.manage` (owner, admin).

| Parameter | In | Type | Description |
| --- | --- | --- | --- |
| `limit` | query | integer | How many to return, 1 to 100 (default 20). |
| `starting_after` | query | string | An id from the page before: the page after it. |
| `ending_before` | query | string | An id from the page after: the page before it. A list read from the database offers it as the list comes and filtered by event alone, in the default order, and answers parameter_invalid to any other… |

**Answers 200.** A page of invites.

**Fields**

| Field | Type | Description |
| --- | --- | --- |
| `object` * | "list" |  |
| `data` * | array of Invite | This page, newest first. |
| `has_more` * | boolean | True when there is another page: pass the last id as starting_after. |
| `url` * | "/v1/invites" | The path this list came from (/v1/invites). |

\* required

## Invite someone by email

`POST /v1/invites`

Operation id `createInvite`. MCP tool `create_invite` (a signed-in member's agent only).

Invites someone, with the role they will have. We email them a link, in test mode too, and the link is in this answer only: a repeat with the same Idempotency-Key answers the invite with `url: null`, and mails nothing. It is no sign-in: they still need a code sent to that address. Inviting someone already on the team answers `member_exists`.

**Who may call it.** A signed-in dashboard member whose role has `team.manage` (owner, admin).

**Request body** (`CreateInviteInput`)

| Field | Type | Description |
| --- | --- | --- |
| `email` * | string (email) | An email address. |
| `role` * | Role | owner and admin: everything (only an owner changes owners); staff: everything but keys, webhooks, team and money settings; door: check-in only; viewer: read only, with what opens the door or a holder's page null. |

\* required

```json
{
  "email": "new@example.com",
  "role": "viewer"
}
```

**Answers 201.** The invite, with its link (shown once).

**Fields** (`Invite`)

| Field | Type | Description |
| --- | --- | --- |
| `object` * | "invite" |  |
| `id` * | string | An id starting with inv_. |
| `email` * | string (email) | An email address. |
| `role` * | Role | owner and admin: everything (only an owner changes owners); staff: everything but keys, webhooks, team and money settings; door: check-in only; viewer: read only, with what opens the door or a holder's page null. |
| `url` * | string \| null | The invite link: only in the answer that made it. A repeat of that call answers null. |
| `created_by` * | string | An id starting with mem_. |
| `created_at` * | string (date-time) | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
| `expires_at` * | string (date-time) | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
| `accepted_at` * | string \| null | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
| `revoked_at` * | string \| null | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |

\* required

**Errors of its own.** [`member_exists`](https://tickets.roostertail.com/docs/errors.md#member_exists). The errors every operation can answer are on [the errors page](https://tickets.roostertail.com/docs/errors.md).

## Revoke an invite

`DELETE /v1/invites/{id}`

Operation id `revokeInvite`. MCP tool `revoke_invite` (a signed-in member's agent only).

Cancels an open invite so its link stops working. An invite already accepted is a member now: remove the member instead.

**Who may call it.** A signed-in dashboard member whose role has `team.manage` (owner, admin).

| Parameter | In | Type | Description |
| --- | --- | --- | --- |
| `id` * | path | string | An id starting with inv_. |

**Answers 200.** Revoked.

**Fields** (`Invite`)

| Field | Type | Description |
| --- | --- | --- |
| `object` * | "invite" |  |
| `id` * | string | An id starting with inv_. |
| `email` * | string (email) | An email address. |
| `role` * | Role | owner and admin: everything (only an owner changes owners); staff: everything but keys, webhooks, team and money settings; door: check-in only; viewer: read only, with what opens the door or a holder's page null. |
| `url` * | string \| null | The invite link: only in the answer that made it. A repeat of that call answers null. |
| `created_by` * | string | An id starting with mem_. |
| `created_at` * | string (date-time) | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
| `expires_at` * | string (date-time) | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
| `accepted_at` * | string \| null | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
| `revoked_at` * | string \| null | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |

\* required

## Join an org from an invite link

`POST /v1/invites/accept`

Operation id `acceptInvite`.

Joins the org an invite link was made for. The session then acts in that org.

**Who may call it.** A signed-in dashboard member of any role.

**Request body** (`AcceptInviteInput`)

| Field | Type | Description |
| --- | --- | --- |
| `token` * | string |  |

\* required

```json
{
  "token": "abcdefghijklmnop"
}
```

**Answers 200.** Joined; the session is now on that org.

**Fields** (`Session`)

| Field | Type | Description |
| --- | --- | --- |
| `object` * | "session" |  |
| `member` * | Member | A person on the team. Signs in by an emailed code or link; there are no passwords. |
| `org` * | Org | An organization: the account. It holds both modes; every other record belongs to one of them. |
| `orgs` * | array of object | Every org this person belongs to. |
| `created_org` * | boolean | True when this sign-in made a new org (the first sign-in of a new address). |
| `expires_at` * | string (date-time) | When the session ends if unused (7 days idle). |
| `mode` | "test" \| "live" | The mode the dashboard acts in. Sent only where live mode exists (production); absent means test. |
| `live_available` | boolean | True where this organization may switch the dashboard to live mode (production, and the org cleared for live). Absent means no. |

\* required

**Errors of its own.** [`invite_invalid`](https://tickets.roostertail.com/docs/errors.md#invite_invalid). The errors every operation can answer are on [the errors page](https://tickets.roostertail.com/docs/errors.md).
