Login USAPI
Link:
| Environment |
Link |
| Production |
https://usapi.onindonesia.id |
| Demo |
https://demousapi.onindonesia.id |
Endpoint
| Endpoint |
Method
|
| /auth |
POST |
Body request
{
"username": "usernew1",
"password": "abc123",
"options": {
"nativeApp": false
}
}
Properties
|
Data type |
Required |
Description |
| username |
string |
yes |
|
| password |
string |
yes |
|
| options |
object |
|
|
| nativeApp |
boolean |
yes |
This value determines whether the payload is coming from Mobile Apps ONAPPS (nativeApp: true) or not. |
Result example
OK (200)
{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2Vy"
}
Error example
Body request example
insert code here
No Comments