Authentication
API endpoints specifications
auth
Login and retrieve an authentication token Authentication: not required
Success!
Input Error. Check the request payload for issues.
Unauthorized
Access denied. Additional privileges are needed access the requested resource.
Not Found. The requested resource does not exist.
Rate Limited. Too many requests.
Unexpected error
POST /api:auth/auth/login HTTP/1.1
Host: api.answr.space
Content-Type: application/json
Accept: */*
Content-Length: 44
{
"email": "[email protected]",
"password": "text"
}
{
"authToken": "text",
"user": "text"
}
Get the user record belonging to the authentication token Authentication: required
Success!
Input Error. Check the request payload for issues.
Unauthorized
Access denied. Additional privileges are needed access the requested resource.
Not Found. The requested resource does not exist.
Rate Limited. Too many requests.
Unexpected error
GET /api:auth/auth/me HTTP/1.1
Host: api.answr.space
Authorization: Bearer JWT
Accept: */*
{
"id": 1,
"created_at": "now",
"name": "text",
"email": "[email protected]",
"role": "admin",
"company": "text",
"active_requests": 1
}
Signup and retrieve an authentication token Authentication: not required
Success!
Input Error. Check the request payload for issues.
Unauthorized
Access denied. Additional privileges are needed access the requested resource.
Not Found. The requested resource does not exist.
Rate Limited. Too many requests.
Unexpected error
POST /api:auth/auth/signup HTTP/1.1
Host: api.answr.space
Content-Type: application/json
Accept: */*
Content-Length: 75
{
"name": "text",
"email": "[email protected]",
"password": "text",
"company": "text"
}
{
"authToken": "text",
"user": "text"
}
Last updated