Auth
We do not use JWT as in the Client section to identify the administrator. We use the username
, password
and API key
that we specify in the .env
file. After the client logs in, each request will have an API-KEY
added to the headers object.
It is important to note that in the APP_ADMIN_URL field you must enter the URL where the admin dashboard is located. If the request comes from a different URL, the response will be an error with status 404 Not Found
.
Login
POST
{{BASE_URL}}/admin/api/auth/login
Admin authentication via email and password fields.
Path Parameters
Name
Type
Description
id*
String
App ID
Request Body
Name
Type
Description
username*
String
password*
String
Get profile
GET
{{BASE_URL}}/admin/api/auth/profile
Get an administrator profile.
Headers
Name
Type
Description
Api-Key*
String
Admin api key
Last updated