API endpoints specifications
Last updated 2 years ago
Get the user record belonging to the authentication token Authentication: required
curl -L \ --url 'https://api.answr.space/api:auth/auth/me' \ --header 'Authorization: Bearer JWT'
{ "id": 1, "created_at": 1, "name": "text", "email": "name@gmail.com", "role": "admin", "company": "text", "active_requests": 1 }
Login and retrieve an authentication token Authentication: not required
curl -L \ --request POST \ --url 'https://api.answr.space/api:auth/auth/login' \ --header 'Content-Type: application/json' \ --data '{ "email": "name@gmail.com", "password": "text" }'
{ "authToken": "text", "user": "text" }
Signup and retrieve an authentication token Authentication: not required
curl -L \ --request POST \ --url 'https://api.answr.space/api:auth/auth/signup' \ --header 'Content-Type: application/json' \ --data '{ "name": "text", "email": "name@gmail.com", "password": "text", "company": "text" }'