Boxo.login()
.Key | Value |
---|---|
Authorization | <prefix> <base64 encoded(hostapp_client_id:hostapp_secret_key)> |
X-Miniapp-App-ID | <app_id - Miniapp identifier> |
<prefix>
: Token. Access token prefix can be set in Boxo Connect.hostapp_client_id
and hostapp_secret_key
must be provided in DashboardField | Data type | Description |
---|---|---|
auth_code | String | Auth code provided by hostapp to Boxo SDK |
200
in all casesField | Data type | Optional | Description |
---|---|---|---|
access_token | String(1000) | Yes | Access token for get user data request. To use in payments requests enable Use access token in Boxo Payments. |
error_code | String | Yes | If some error is occured error code should be provided. Example: {"error_code": "INVALID_AUTH_CODE"} All error codes can be found here |
Key | Value |
---|---|
Authorization | Token <access_token> |
X-Miniapp-App-ID | <app_id - Miniapp identifier> |
200
in all casesField | Data type | Optional | Description |
---|---|---|---|
user_data | UserData / EcryptedString | Yes | Hostapp user data, that could be sent as encrypted string. Refer to Security measures for more details |
error_code | String | Yes | If some error is occured error code should be provided. Example: {"error_code": "INVALID_ACCESS_TOKEN"} All error codes can be found here |
Field | Data type | Optional | Description |
---|---|---|---|
reference | String(100) | 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 |
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: |