---
title: "POST /api/v1/org_invitations/{token}/accept"
method: POST
path: "/api/v1/org_invitations/{token}/accept"
tags: ["org_invitations"]
---

# POST /api/v1/org_invitations/{token}/accept

`POST /api/v1/org_invitations/{token}/accept`

## Request

- Base URL: `https://composal.com` (the document declares no server; this is the origin it was published from)
- URL: `https://composal.com/api/v1/org_invitations/{token}/accept`
- Auth: HTTP bearer

## Path parameters

- `token` string, required

## Request body

- object

## Response `200`

Accepted organization invitation

- object
  - `invitation` OrganizationInvitation, required
    - `id` string, required
    - `email` string, email, required
    - `role` 'owner' | 'admin' | 'member', required
    - `status` 'pending' | 'accepted' | 'revoked' | 'expired', required
    - `invite_url` string, nullable, required
    - `organization` object, required
      - `id` string, required
      - `slug` string, required
      - `name` string, required
      - `logo_url` string, nullable, required
    - `invited_by_user` User, required
      - `id` string, required
      - `email` string, email, required
      - `name` string, nullable, required
      - `picture_url` string, nullable, required
      - `superadmin` boolean
    - `accepted_by_user` User, required
      - `id` string, required
      - `email` string, email, required
      - `name` string, nullable, required
      - `picture_url` string, nullable, required
      - `superadmin` boolean
    - `expires_at` string, date-time, nullable, required
    - `expires_at_label` string, nullable, required
    - `accepted_at` string, date-time, nullable, required
    - `revoked_at` string, date-time, nullable, required
    - `created_at` string, date-time, required
    - `updated_at` string, date-time, required
    - `created_at_label` string, nullable, required
    - `updated_at_label` string, nullable, required
    - `email_delivery_status` string
  - `organization` OrganizationSummary, required
    - `id` string, required
    - `slug` string, required
    - `name` string, required
    - `timezone` string, required: Default IANA timezone for organization-local schedules such as nightly dreaming.
    - `logo_url` string, nullable, required
    - `role` string, nullable, required
    - `personal` boolean, required
    - `member_count` integer, required
    - `pending_invitation_count` integer, required
    - `repository_count` integer, required
    - `source_ui_enabled` boolean: Organization-scoped Source workspace rollout; missing values mean disabled.
    - `source_control_providers` string[]: Connected source control providers for this organization. Missing values mean no providers are known.
    - `activated_products` string[], required: Products this organization has activated (PRD 144). Activation is what makes a product's surfaces visible; it is neither permission nor entitlement.
    - `can_activate_products` boolean, required: Whether the current user may activate a product for this organization: the organization-admin rule the activation endpoint enforces.
    - `sandbox_region` 'us-was-1' | 'us-pdx-1' | 'eu-lon-1' | 'eu-fra-1' | 'auto', required
    - `github_prs_authored_by_change_author` boolean, required
    - `created_at` string, date-time, required
    - `updated_at` string, date-time, required
    - `created_at_label` string, nullable, required
    - `updated_at_label` string, nullable, required

## Other responses

- `401`: Unauthorized
- `402`: The organization's billing limit refuses this usage; see `error.upgrade_path`
- `403`: Forbidden
- `404`: Not found
- `422`: Unprocessable entity
- `502`: Bad gateway

---

[API](https://skmtc.dev/composal/apis/vex-api.md) - [All operations](https://skmtc.dev/composal/apis/vex-api/llms.txt) - [OpenAPI document](https://skmtc.dev/composal/apis/vex-api/revisions/74298a24e040?raw)
