# Create Session

> Authenticate a client profile and issue an end-user access token for client-facing trading services.

Source: /admin/accounts-funding/sessions/accounts-service_-client-login

## `POST /trade/login`

**Create Session**

Authenticate a client profile and issue an end-user access token for client-facing trading services.

Tags: `Sessions`

### Request body

End-user (client) credentials for issuing a trading access token.

**Content-Type:** `application/json`

End-user (client) credentials for issuing a trading access token.
- `email` (string)
- `password` (string)


### Responses

#### `200` — A successful response.

**Content-Type:** `application/json`

Issued bearer token for the end-user trading session.
access_token is the JWT to be passed as `Authorization: Bearer ...` to the Trader API.
expires_at is a Unix epoch (seconds) absolute expiry — clients should refresh before this time.
accounts lists the trading accounts available to the authenticated profile, each with its account-group ID.
- `accessToken` (string)
- `expiresAt` (string)
- `accounts` (array)
  - items:
    Minimal (id, group_id) pair returned in the login response.
    - `id` (string)
    - `gId` (string)

#### `default` — An unexpected error response.

**Content-Type:** `application/json`

- `code` (integer)
- `message` (string)
- `details` (array)
  - items:
    - `@type` (string)

