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