Authentication Endpoints
Check credentials (public)
Checks if specified api token and secret are valid and if account is active
URL
/api/v1/auth/check
Method:
POST
Data Params
Required:
token=[string]
secret=[string]
Response Examples:
- Code: 200
Content:
- Code: 200
{
"error": 0,
"msg": "ok",
"errors": [],
"data": {
"user_id": 1
}
}
- Code: 401
Content:
{
"error": 1,
"msg": "validation errors",
"errors": {
"secret": [
"The secret field is required."
],
"token": [
"The token field is required."
]
},
"data": []
}