> Source: https://developers.terrawallet.us/docs/reference/organizations . Terra Wallet developer docs (early access).

<!-- GENERATED by apps/mcp/scripts/build-docs-index.mjs. Do not edit by hand. -->

# Organizations and members

> **Preview.** Generated from `docs/developers/openapi-v1.json` (the exported OpenAPI document, authoritative) and, for operations it does not contain yet, from the v1 build contract (`docs/platform/V1_CONTRACT.md`). Each contract-only operation is marked.

An organization owns projects, keys and every Terra Pay object. Members have one of six roles.

**Authentication:** Dashboard session.

**Guide:** [Authentication](https://developers.terrawallet.us/docs/authentication.md)

| Method | Path | Summary |
|---|---|---|
| POST | `/v1/invites/accept` | Accept an invitation (the signed-in email must be the invited one) |
| GET | `/v1/organizations` | Your organizations |
| POST | `/v1/organizations` | Create an organization (you become its owner; it gets a default project) |
| GET | `/v1/organizations/{org}` | One organization |
| PATCH | `/v1/organizations/{org}` | Rename an organization (owner, admin) |
| GET | `/v1/organizations/{org}/members` | Members |
| POST | `/v1/organizations/{org}/members` | Invite someone by email (owner, admin) |
| PATCH | `/v1/organizations/{org}/members/{id}` | Change a member's role (owner, admin) |
| DELETE | `/v1/organizations/{org}/members/{id}` | Remove a member (owner, admin) or leave (yourself) |
| GET | `/v1/organizations/{org}/invites` | Invitations (owner, admin) |
| DELETE | `/v1/organizations/{org}/invites/{id}` | Revoke an invitation (owner, admin) |

## POST /v1/invites/accept

Accept an invitation (the signed-in email must be the invited one)

- Operation id: `PlatformMeController_acceptInvite`
- Authentication: Dashboard session

### Request body

| Name | Type | Required | Notes |
|---|---|---|---|
| `token` | string | yes | length 20 to 128; pattern ^[A-Za-z0-9_-]+$ |

### Response

Status 200.

| Name | Type | Required | Notes |
|---|---|---|---|
| `id` | string | yes |  |
| `object` | string (organization) | yes |  |
| `name` | string | yes |  |
| `personal` | boolean | yes |  |
| `role` | string (owner \| admin \| developer \| finance \| analyst \| readonly) | yes |  |
| `created_at` | string (date-time) | yes |  |
| `updated_at` | string (date-time) | yes |  |

## GET /v1/organizations

Your organizations

- Operation id: `PlatformOrgsController_list` (contract name: `listOrganizations`)
- Authentication: Dashboard session

### Query parameters

| Name | Type | Required | Notes |
|---|---|---|---|
| `limit` | integer | no |  |
| `starting_after` | string | no |  |

### Response

Status 200.

| Name | Type | Required | Notes |
|---|---|---|---|
| `data` | array of object | yes |  |
| `has_more` | boolean | yes |  |
| `next_cursor` | string | yes |  |

## POST /v1/organizations

Create an organization (you become its owner; it gets a default project)

- Operation id: `PlatformOrgsController_create` (contract name: `createOrganization`)
- Authentication: Dashboard session
- `Idempotency-Key`: required

### Headers

| Name | Type | Required | Notes |
|---|---|---|---|
| `Idempotency-Key` | string | yes | 8 to 128 characters, kept 24 hours. |

### Request body

| Name | Type | Required | Notes |
|---|---|---|---|
| `name` | string | yes | length 1 to 80 |

### Response

Status 201.

| Name | Type | Required | Notes |
|---|---|---|---|
| `id` | string | yes |  |
| `object` | string (organization) | yes |  |
| `name` | string | yes |  |
| `personal` | boolean | yes |  |
| `role` | string (owner \| admin \| developer \| finance \| analyst \| readonly) | yes |  |
| `created_at` | string (date-time) | yes |  |
| `updated_at` | string (date-time) | yes |  |

## GET /v1/organizations/{org}

One organization

- Operation id: `PlatformOrgsController_get`
- Authentication: Dashboard session

### Path parameters

| Name | Type | Required | Notes |
|---|---|---|---|
| `org` | string | yes | org_... |

### Response

Status 200.

| Name | Type | Required | Notes |
|---|---|---|---|
| `id` | string | yes |  |
| `object` | string (organization) | yes |  |
| `name` | string | yes |  |
| `personal` | boolean | yes |  |
| `role` | string (owner \| admin \| developer \| finance \| analyst \| readonly) | yes |  |
| `created_at` | string (date-time) | yes |  |
| `updated_at` | string (date-time) | yes |  |

## PATCH /v1/organizations/{org}

Rename an organization (owner, admin)

- Operation id: `PlatformOrgsController_update`
- Authentication: Dashboard session

### Path parameters

| Name | Type | Required | Notes |
|---|---|---|---|
| `org` | string | yes | org_... |

### Request body

| Name | Type | Required | Notes |
|---|---|---|---|
| `name` | string | yes | length 1 to 80 |

### Response

Status 200.

| Name | Type | Required | Notes |
|---|---|---|---|
| `id` | string | yes |  |
| `object` | string (organization) | yes |  |
| `name` | string | yes |  |
| `personal` | boolean | yes |  |
| `role` | string (owner \| admin \| developer \| finance \| analyst \| readonly) | yes |  |
| `created_at` | string (date-time) | yes |  |
| `updated_at` | string (date-time) | yes |  |

## GET /v1/organizations/{org}/members

Members

- Operation id: `PlatformOrgsController_members` (contract name: `listMembers`)
- Authentication: Dashboard session

### Path parameters

| Name | Type | Required | Notes |
|---|---|---|---|
| `org` | string | yes | org_... |

### Query parameters

| Name | Type | Required | Notes |
|---|---|---|---|
| `limit` | integer | no |  |
| `starting_after` | string | no |  |

### Response

Status 200.

| Name | Type | Required | Notes |
|---|---|---|---|
| `data` | array of object | yes |  |
| `has_more` | boolean | yes |  |
| `next_cursor` | string | yes |  |

## POST /v1/organizations/{org}/members

Invite someone by email (owner, admin)

- Operation id: `PlatformOrgsController_invite` (contract name: `inviteMember`)
- Authentication: Dashboard session
- `Idempotency-Key`: required

### Headers

| Name | Type | Required | Notes |
|---|---|---|---|
| `Idempotency-Key` | string | yes | 8 to 128 characters, kept 24 hours. |

### Path parameters

| Name | Type | Required | Notes |
|---|---|---|---|
| `org` | string | yes | org_... |

### Request body

| Name | Type | Required | Notes |
|---|---|---|---|
| `email` | string (email) | yes | length 3 to 254 |
| `role` | string (owner \| admin \| developer \| finance \| analyst \| readonly) | yes |  |

### Response

Status 201.

| Name | Type | Required | Notes |
|---|---|---|---|
| `id` | string | yes |  |
| `object` | string (invite) | yes |  |
| `email` | string (email) | yes |  |
| `role` | string (owner \| admin \| developer \| finance \| analyst \| readonly) | yes |  |
| `status` | string (pending \| accepted \| revoked \| expired) | yes |  |
| `expires_at` | string (date-time) | yes |  |
| `created_at` | string (date-time) | yes |  |

### Notes

- Roles: owner, admin, developer, finance, analyst, readonly. The contract describes the invite by email; the request field names are confirmed by the OpenAPI document.

## PATCH /v1/organizations/{org}/members/{id}

Change a member's role (owner, admin)

- Operation id: `PlatformOrgsController_updateMember`
- Authentication: Dashboard session

### Path parameters

| Name | Type | Required | Notes |
|---|---|---|---|
| `org` | string | yes | org_... |
| `id` | string | yes | mem_... |

### Request body

| Name | Type | Required | Notes |
|---|---|---|---|
| `role` | string (owner \| admin \| developer \| finance \| analyst \| readonly) | yes |  |

### Response

Status 200.

| Name | Type | Required | Notes |
|---|---|---|---|
| `id` | string | yes |  |
| `object` | string (member) | yes |  |
| `role` | string (owner \| admin \| developer \| finance \| analyst \| readonly) | yes |  |
| `user` | object | yes |  |
| `created_at` | string (date-time) | yes |  |

## DELETE /v1/organizations/{org}/members/{id}

Remove a member (owner, admin) or leave (yourself)

- Operation id: `PlatformOrgsController_removeMember`
- Authentication: Dashboard session

### Path parameters

| Name | Type | Required | Notes |
|---|---|---|---|
| `org` | string | yes | org_... |
| `id` | string | yes | mem_... |

### Response

Status 200.

## GET /v1/organizations/{org}/invites

Invitations (owner, admin)

- Operation id: `PlatformOrgsController_invites`
- Authentication: Dashboard session

### Path parameters

| Name | Type | Required | Notes |
|---|---|---|---|
| `org` | string | yes | org_... |

### Query parameters

| Name | Type | Required | Notes |
|---|---|---|---|
| `limit` | integer | no |  |
| `starting_after` | string | no |  |

### Response

Status 200.

| Name | Type | Required | Notes |
|---|---|---|---|
| `data` | array of object | yes |  |
| `has_more` | boolean | yes |  |
| `next_cursor` | string | yes |  |

## DELETE /v1/organizations/{org}/invites/{id}

Revoke an invitation (owner, admin)

- Operation id: `PlatformOrgsController_revokeInvite`
- Authentication: Dashboard session

### Path parameters

| Name | Type | Required | Notes |
|---|---|---|---|
| `org` | string | yes | org_... |
| `id` | string | yes | minv_... |

### Response

Status 200.

| Name | Type | Required | Notes |
|---|---|---|---|
| `id` | string | yes |  |
| `object` | string (invite) | yes |  |
| `email` | string (email) | yes |  |
| `role` | string (owner \| admin \| developer \| finance \| analyst \| readonly) | yes |  |
| `status` | string (pending \| accepted \| revoked \| expired) | yes |  |
| `expires_at` | string (date-time) | yes |  |
| `created_at` | string (date-time) | yes |  |
