# Accept an invitation using token and password

URL: /en/docs/api/v1/accept-invitation/post
Last Updated: 2026-07-30T21:15:44.914Z

## Description
No description available.

## Available Actions
- Execute POST request
- View request parameters
- View response schema
- Get code examples
- Navigate to related topics
- View step-by-step instructions
- Get best practices

## Content
### POST /api/v1/accept-invitation

**Accept an invitation using token and password**

**Request body** (`application/json`) - required:

- `token` (string, required): Invitation token sent via email.
- `password` (string (password), required): New password for the invited user.

**Responses:**

- `200` - Invitation accepted
  - `ok` (boolean)
  - `message` (string)
- `400` - Invalid token or password policy violation
  - `error` (string)
- `502` - Upstream Directus error
  - `error` (string)

**Code samples:**

cURL:

```bash
curl -X POST "https://app.orbiqhq.com/api/v1/accept-invitation" \
  -H "Content-Type: application/json" \
  -d '{
    "token": "invitation-token-from-email",
    "password": "NewSecurePassword123!"
  }'
```

JavaScript (fetch):

```js
const response = await fetch("https://app.orbiqhq.com/api/v1/accept-invitation", {
  method: "POST",
  headers: {
    "Content-Type": "application/json"
  },
  body: JSON.stringify({
    token: "invitation-token-from-email",
    password: "NewSecurePassword123!"
  })
});

const result = await response.json();
console.log(result);

```

