Every REST API method except user/login requires an access token. There are two kinds of token: a permanent API key and a temporary JWT token.
How to pass the token
| Token kind | Where to get it | How to pass it | Lifetime |
|---|---|---|---|
Permanent API key (nvk_…) | Created only in the personal account: “Access” → “API keys” | token field in the request body or the token header | Until the date chosen when the key was created (1 year by default), or no expiry |
| Legacy API key (UUID) | Created before 30.11.2026 | token field in the request body | Until 28.02.2027, or until an earlier date set when it was created |
| Temporary JWT token | The user/login method | Header token: <jwt-token> | 7 days by default; the company owner can set another period in the security settings |
Pass the token in one way only. If the request carries a token header, only the header is used: the token field in the request body is ignored even when the token in the header is invalid or expired — such a request gets 401.
The exception is the kyc/session/status/change method: it needs a permanent API key.
A token has no permissions of its own: the request runs with the permissions of the user who owns the token. A company employee's key works with the company's data — sessions, lists, persons and sources — while permissions are checked for the employee. If the employee is removed from the company, their key is no longer accepted: the request gets 401 access denied.
A temporary token cannot be refreshed: when it expires, get a new one with user/login.
If the user belongs to several companies, the temporary token is issued for the company given in the company_id parameter of user/login, and without it — for the user's main company. The token is valid only in that company.
Permanent API keys
Keys are created, changed and revoked only in the personal account, under "Access" → "API keys" (Access Tokens); the REST API has no methods for managing keys. The full key value is shown once, right after the key is created; store it in a safe place.
A new-format key starts with nvk_. It can be passed in the token field of the request body or in the token header.
Legacy keys (UUID) created before 30.11.2026 keep working with the same value in the token field of the request body until 28.02.2027 (or until their own earlier expiry date). After that date a request with such a key gets 401. Create a new key in the personal account and replace the legacy one in your integration in advance. A legacy key's expiry cannot be extended.
Examples
Permanent key in the request body
curl -X POST "https://api.neuro-vision.ru/v1/kyc/session/status" -H "Content-Type: application/json" -d '{"token": "nvk_<your-key>", "sessionId": "00000000-0000-0000-0000-000000000000"}' Permanent key in the header
curl -X POST "https://api.neuro-vision.ru/v1/kyc/session/status" -H "token: nvk_<your-key>" -H "Content-Type: application/json" -d '{"sessionId": "00000000-0000-0000-0000-000000000000"}' Temporary token in the header
curl -X POST "https://api.neuro-vision.ru/v1/kyc/session/status" -H "token: <jwt-token>" -H "Content-Type: application/json" -d '{"sessionId": "00000000-0000-0000-0000-000000000000"}' For multipart/form-data requests the permanent key is passed as a form field or in the token header (an nvk_… key only):
-F "token=nvk_<your-key>" Authorization errors
No token or the token is invalid (401)
{
"status": "error",
"message": "access denied"
} Check that the token is passed, has not expired and has not been revoked, and that the key was copied in full. The same response is returned for a legacy key after 28.02.2027 and for the key of an employee removed from the company.
Wrong login or password in user/login (403)
{
"status": "ok",
"message": "access denied"
} In this response the status field equals ok: detect the refusal by the HTTP code 403.
No permission for the method
If the user who owns the token lacks the required permission, the method responds with 400:
{
"status": "error",
"message": "No access"
} The kyc/session/erase and kyc/session/erase/log methods respond differently: 403 with "result": "no_permission". The permission a method needs is given on its page. Permissions are assigned in the personal account: "User management" → "Roles".
Request from an address not on the allowed list (403)
If the "API requests are allowed from" list is filled in in the personal account under "User management" → "Security", a request from an address not on the list gets 403. The response body has no status field:
{
"message": "Access Denied"
} The list applies to requests of all users of the company, including requests with the owner's permanent API keys. Only requests with the company owner's temporary JWT token are not checked. An empty list restricts nothing.
The general list of errors is on the Errors page.
Recommendations
- Keep the permanent key on your server only. Do not pass it to a browser or a mobile app.
- Create a separate key with a clear description for each integration, so you can revoke one without affecting the others.
- Set an expiry date on keys; choose no expiry only when it is really needed.
- If a key may have leaked, revoke it in the personal account and create a new one.