For the complete documentation index, see llms.txt. This page is also available as Markdown.

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 refresh token it's validate for 360 days.

Request Body

Name
Type

companyId*

String

nit*

String

If you try to access any endpoint without entering the "Authorization" header, or enter an invalid api_token, you will receive a response with status 401 (Unauthorized).

Refresh Token

POST {{url_base}}/auth/refresh

This endpoint is used to authenticate and generate a new token

Request Body

Name
Type

refresh*

String

Last updated