Create token
Create Access Token
Authentication
Endpoint
Request Parameters
Recommended: JSON request body
curl -X POST 'https://api.genlogs.io/auth/token/'
-H 'accept: application/json'
-H 'Content-Type: application/json'
-H 'x-api-key: {your_api_key}'
-d '{"email": "{email}", "password": "{password}"}'Parameters
Response
Response Body
Request Example:
Query parameters
emailstring · emailRequired
Email of the user requesting tokens.
passwordstring · passwordRequired
Password of the user requesting tokens.
Responses
200
Access and refresh tokens created successfully.
application/json
user_idintegerRequired
company_idinteger · nullableOptional
customer_namestring · nullableOptional
401
Token creation failed because credentials are invalid.
application/json
422
Request validation error.
application/json
post/auth/token
Last updated