---
url: /seamless/login.md
---

## Login `POST`

This api is use for enter to the game.

### Authorization

Seamless uses **Basic Authentication** with your agent credentials. ([Authentication](../authentication.md#authorization-header-format))

### HTTP Request

```
POST {{ API_URL }}/seamless/logIn
```

### Content Type

Type: `application/json`

### Parameter Description

| Property        | Type    | Required | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| --------------- | ------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `username`      | string  | Required | Member username                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| `productId`     | string  | Required | Product ID (Ref. [Product List](../api-reference.md#product-lists))) (Example : `SEXY`)                                                                                                                                                                                                                                                                                                                                                                                                                        |
| `gameCode`      | string  | Required | Game code of product (Example : BAC)                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| `isMobileLogin` | boolean | Required | Mobile Mode (Example : true)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| `limit`         | number  | Optional | Player's bet limits [Betlimit List](./getBetLimits.md)                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| `sessionToken`  | string  | Required | SessionToken generate by Operator. Note: In some products, provider didn't support the same token when player had login many times. So, please try to change the `sessionToken` regulary, if you found an error abnormally. <br/><span style="color:red">**Note:** Some products has a maximum length of `sessionToken` if you found some callback remove your `sessionToken` length or sent to your system with some part of your provided `sessionToken`, please try to reduce `sessionToken` length.</span> |
| `currency`      | string  | Optional | Login currency, please specify if you need to select the currency (Default value based on agent)                                                                                                                                                                                                                                                                                                                                                                                                               |
| `language`      | string  | Optional | Language Code default `th` [Language List](#language-lists) (Example : th)                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| `callbackUrl`   | string  | Optional | Exit url, url that you need to redirect if player quit the game from Game GUI.                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| `betLimit`      | any\[]   | Optional | Values are depended on productId, please refer to each product in callbacks section for more details                                                                                                                                                                                                                                                                                                                                                                                                           |

> Request Body

```json
{
  "username": "test00001",
  "productId": "PRETTY",
  "gameCode": "BAC",
  "isMobileLogin": true,
  "limit": 1,
  "sessionToken": "d4be70d1-349f-4fc1-a955-35d2a4bff244",
  "betLimit": []
}
```

> JSON response example:

```json
{
  "reqId": "5557191a-4421-4753-a757-8ca7b45828dc",
  "code": 0,
  "message": "Success",
  "data": {
    "url": "https://test.ambsuperapi.com/seamless/directLogin?token={{ LOGIN_TOKEN }}"
  }
}
```
