Prerequisites
You need a Nesu account to create an API key. Sign in to your Nesu dashboard and open Chaves de API (/app/api-keys in the Nesu application).
Create your key
- If your account has a newly activated key, copy the full secret displayed on the page. Otherwise, select Criar chave de API, enter a name, and create your key.
- Save the secret when it appears. You cannot retrieve the full key again after you dismiss it or leave the page.
- Store it in your server’s environment or secret store.
nesu_. The truncated prefix shown in the key list is not sufficient to authenticate a request.
Authenticate a request
Send your full API key in theAuthorization header using the Bearer scheme. The quickstart shows a complete cURL request.
Every documented /api/v1 endpoint requires an API key. A website sign-in session is not an API key. You do not need to send a cookie or a JSON request body for these GET requests.
If your key is missing, malformed, revoked, or otherwise invalid, you receive 401 Unauthorized with WWW-Authenticate: Bearer and an unauthorized problem response.