Authentication
How can I authenticate in Elyssa App to use the API?
To authenticate on each endpoint is very simple. Just insert you token on the "Authorization" header and x-company-id
Example
'headers': {
'Content-Type': 'application/json',
'Authorization': 'Bearer c7f35c84-7893-4087-b4fb-d1f06c23',
'x-company-id': '<company_id>'
},Get authorization token
This endpoint is used to authenticate the company. Upon successful execution, it returns a status code of 200 along with a token in the response body.
Create token
POST {{url_base}}/auth/token
This endpoint is used to authenticate company on Elyssa App and return token to use API. The token it's validate for one month after created token, after that time, you need use refresh token to generate a new token. If the company does't have an active plan in ElyssaApp, both the token and refresh token will remain inactive.
The Token is valid for one month after its creation.
Request Body
companyId*
String
nit*
String
Refresh Token
POST {{url_base}}/auth/refresh
This endpoint is used to authenticate and generate a new token
Request Body
refresh*
String
Last updated