# Accept invitation

`POST /v1/organizations/{organization}/invitations/{invitation}/accept`, operation `invitations.AcceptInvitation`

Accepts an invitation. Only the invitee can: the caller's verified email must be the invited address.

## Parameters

| Name | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `organization` | path | Yes | `string` | The organization's ID. |
| `invitation` | path | Yes | `string` | The invitation's ID. |

## Responses

### 200

OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `acceptor` | `string` | Yes | Who accepted the invitation, users/{user_id}; empty until accepted. |
| `createTime` | `string (date-time)` | Yes | When the invitation was created. |
| `email` | `string` | Yes | The invited email address. |
| `expireTime` | `string (date-time)` | Yes | When the invitation expires unless accepted. |
| `grants` | `Grant[]` | Yes | Roles the invitee receives on accepting. |
| `inviter` | `string` | Yes | Who sent the invitation, users/{user_id}. |
| `kind` | `string` | Yes | How the invitee will belong to the organization: a MEMBER sees its directory and is included in grants to all members; a GUEST sees only what they are granted. Values: `MEMBER`, `GUEST`. |
| `name` | `string` | Yes | Resource name, organizations/{organization_id}/invitations/{invitation_id}. |
| `state` | `string` | Yes | Lifecycle state: PENDING, waiting for the invitee; ACCEPTED, the invitee joined; REVOKED before it was accepted; EXPIRED, not accepted in time, as invitations last 7 days. Values: `PENDING`, `ACCEPTED`, `REVOKED`, `EXPIRED`. |
| `updateTime` | `string (date-time)` | Yes | When the invitation last changed. |

### default

Error

Base URL: `https://api.kosem.ai`. See [API conventions](https://docs.kosem.ai/reference/api-conventions.md) for authentication, pagination and errors, and [https://docs.kosem.ai/openapi.yaml](https://docs.kosem.ai/openapi.yaml) for the full OpenAPI document.