Authentication

Basic Authentication

All API requests require Basic Authentication and must be executed only from IP addresses registered in the agent.

Mandatory Requirements

1. IP Addresses

Requests must originate only from pre-registered IP addresses. Otherwise, access will be blocked.

2. Basic Authentication

Client credentials must be passed in the Authorization header:
Authorization: Basic <base64_encoded_credentials>

Example

bash
curl -X GET "https://accruals-gateway.doma.ai/api/search?search=Столичный" \ -H "Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ="

Authorization Errors

Error CodeHTTP StatusMessageCause
AGENT_NOT_FOUND404Agent is not foundThe provided username does not match any registered agent
AGENT_DISABLED403Agent is disabledThe agent exists but is disabled in the system
IP_NOT_ALLOWED403IP address not allowedRequest was made from an unregistered IP address
INVALID_HEADERS403Invalid headers providedInvalid headers are present
AUTHORIZATION_REQUIRED403Authorization requiredMissing Authorization header or invalid credentials