User Account Connect overview
User Account Connect is an API to integrate the user's DOSI account with partner services in compliance with OAuth 2.0 Flow. The User Account Connect API enables DOSI users to use partner services like games.
Connection info
Development environment | API base URI | Authorization endpoint |
---|---|---|
Production | https://api.dosi.world | https://members.dosi.world |
Response model
User Account Connect uses HTTP status codes and API response codes to inform the request results.
HTTP status codes
The following table describes general status codes.
HTTP status code | Description |
---|---|
200 OK | Successful request |
400 Bad request | Bad request |
401 Unauthorized | Failed to authorize |
500 Internal Server Error | Server error |
Error messages
More detailed error messages for each HTTP status code are returned in the response body in the following format.
{
"responseCode": "<code>",
"errorMessage": "<message>"
}
Refer to the table below for details of responseCode
.
errorMessage
is included in the API result.
HTTP status code | API response code | Description |
---|---|---|
400 | BAD_REQUEST | Received an invalid argument. |
401 | NO_AUTHORITY | |
500 | AUTH_API_UNKNOWN | Unknown error occurred in the internal authorization server. |
500 | AUTH_API_SERVER_ERROR | |
500 | FAILED_TO_LOGOUT | |
500 | INVALID_CHAIN_NAME | Provided another value instead of ‘realnet’ for chainName for the Get digital item list with an access token API. |
500 | NOT_FOUND | No contractId or tokenType provided for the Get digital item list with an access token API. |
500 | NOT_FOUND_MEMBER | Can't find the user. |
503 | MAINTENANCE | Can't process requests due to maintenance. |