# Authenticate Whitelabel User

Authenticates a whitelabel user and returns a JWT embed token. This token can be used for subsequent authenticated requests on behalf of the whitelabel user.

**POST** `/organizations/authenticate`

Base URL: `https://api-sandbox.whitelabel.com/v1`

Authenticates a whitelabel user and returns a JWT embed token.

## Authorization

- PUBLIC-API-KEY (apiKey in header)
- PRIVATE-SECRET-KEY (apiKey in header)

## Body

Content type: `application/json`

- `user_id` (string<uuid>, required)
  UUID of the whitelabel user.

Example:

```json
{
  "user_id": "00000000-0000-0000-0000-000000000000"
}
```

## Responses

### 200

OK

- `access_token` (string)
  JWT token for the whitelabel user.
- `token_type` (string)
- `expires_in` (integer)

Example:

```json
{
  "access_token": "string",
  "token_type": "Bearer",
  "expires_in": 86400
}
```

### 400

Bad Request

- `code` (string)
- `message` (string)

Example:

```json
{
  "code": "INVALID_PARAMETERS",
  "message": "Missing or invalid user_id."
}
```

### 401

Unauthorized

- `code` (string)
- `message` (string)

Example:

```json
{
  "code": "LOGIN_FAILED",
  "message": "Unable to authenticate the specified user."
}
```