appboxosdk.login
JS SDK event: The miniapp requests a login action via Boxo’s JavaScript SDK./api/v1/connect/
(Boxo Platform)Key | Value |
---|---|
Content-type | application/json |
Authentication to this endpoint is managed via your partnership configuration in the Dashboard (e.g., IP whitelisting or Request Signaturing). Follow your integration setup.Request Body
Field | Data type | Optional | Description |
---|---|---|---|
client_id | String | No | Hostapp identifier |
app_id | String | No | Miniapp identifier |
user_data | UserData | No | User information object |
Field | Data type | Optional | Description |
---|---|---|---|
reference | String | No | Reference to user in Hostapp Server |
email | String | Yes | Verified user email address |
phone | String | Yes | Verified user phone number in E.164 format |
first_name | String | Yes | User’s first name |
last_name | String | Yes | User’s last name |
custom_attributes | JSON | Yes | Custom attributes |
200
for success, 400
for errorsField | Data type | Description |
---|---|---|
token | String | Auth token |
refresh_token | String | Refresh token |
Field | Data type | Optional | Description |
---|---|---|---|
error_code | String | No | Error code |
error_message | String | No | Detailed error message |
exception | String | Yes | Exception details if available |
custom_attributes | Object | Yes | Additional error context |
email
or phone
must be provided app_id
- Boxo miniapp app id
To launch a specific mini app, you must first call the initialization method.
Boxo.logout()
for Android or Boxo.shared.logout()
for iOS so that the miniapps’ storage is also cleared to log out the miniapp users as well. /api/v1/accounts/consent/get_consent/
endpointParameter | Data type | Optional | Description |
---|---|---|---|
client_id | String | Hostapp identifier | |
app_id | String | Miniapp identifier | |
user_reference | String | Reference to user in Hostapp Server | |
Response: |