Authenticate

Generates a Bearer Token

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

📌 Authentication – Credentials and Token

Authentication is performed via an HTTP request using the credentials provided by the Neomode team, based on the configured environment (homologation or production).

🔐 Access Credentials

FieldTypeDescription
clientIdstringIdentifier of the authorized store or retailer.
clientSecretstringSecret key associated with clientId, used for authentication.
scopestringAccess scope. Use the default value "Lori", unless otherwise specified.

⚠️

Take care of your Credentials

Credentials are provided exclusively by the Neomode team by the Neomode Vault

Do not share or expose this data publicly!


⏳ Token Duration

The authentication response will include the expires_in field, which represents the token's validity in seconds.

After this period, the token expires and must be renewed using the same initial credentials.

📌

Requests with an expired token will return a 401 Unauthorized error.

We recommend that your system implement an automatic renewal mechanism before expiration.


📥 Example of using the Token in the header

After obtaining the authentication token, include it in the Authorization header of all protected requests:

Example HTTP header

A--header 'Content-Type: application/json' \
--header 'Authorization: ••••••'
Path Params
string
enum
required
Defaults to api

Tipo do ambiente (api para produção e dev-api para homologação)

Allowed:
Body Params
string
required

Id da loja ou varejista

string
required

chave secreta da aplicação

string
required
Defaults to lori

escopo de acesso, por padrão aplicar o valor "Lori"

Responses

Language
URL
LoadingLoading…
Response
Choose an example:
application/json