REST API · v1
Dolix API documentation
The Dolix API gives programmatic access to our tools: AML scoring for addresses and transactions, counterparty blacklist search & reports, and PDF receipt forensics. One HTTPS endpoint, JSON in and out, key-based auth.
Every response is JSON with an ok field. Success: { "ok": true, … }. Error: { "ok": false, "error": "…" } with the matching HTTP status.
curl "https://api.dolix.io/health"
# → { "ok": true, "dbAuth": true }Authentication
Every protected route requires the X-API-Key header. A key is issued to each user inside the Telegram bot (API section) — one live key per account, rotatable without losing the token balance. Requests without a key get 401. If your client prefers Authorization: Bearer <key>, that is accepted too.
curl -H "X-API-Key: $DOLIX_API_KEY" \
"https://api.dolix.io/profile/full?value=98765432"Tokens & billing
Paid routes spend tokens: heavier work costs more. Every account starts with 100 free tokens. Tokens belong to the user — rotating the key never resets them. Out of tokens → any paid call returns 402.
| Function | Tokens |
|---|---|
| /profile/full · check a counterparty | 3 |
| /v1/aml/address | 10 |
| /v1/aml/txid | 15 |
| /v1/receipts/check | 10 |
| /v1/blacklist/report · add to the blacklist | 5 |
A paid response carries spend headers:
X-Tokens-Cost: 10
X-Tokens-Remaining: 90Out of tokens → 402 with details:
{
"ok": false,
"error": "insufficient_tokens",
"function_code": "aml_address",
"required": 10,
"available": 4
}Rate limits
On top of tokens there is a frequency anti-flood — by default 60 req/min and 2000/day per key. It protects infrastructure and fires before any token spend: exceeding it returns 429 and costs no tokens. Remaining budgets are in the headers.
X-RateLimit-Remaining-Minute: 58
X-RateLimit-Remaining-Day: 4972
X-RateLimit-Total-Used: 1284Errors
A uniform JSON error with ok:false. When data is missing/unavailable, AML and receipt checks fail closed — an error, never a fabricated 'clean' result — and no tokens are charged.
| 400 | bad_request | Invalid request |
| 401 | Unauthorized | Missing/invalid key |
| 402 | insufficient_tokens | Out of tokens |
| 403 | forbidden | Key/function not allowed |
| 404 | Not found | Feature disabled by flag |
| 429 | Rate limit exceeded | Rate limit or daily token cap |
| 503 | busy / needs_async | Saturated / deadline |
| 500 | internal_error | Server error |
Service
/healthHealth check
Lightweight liveness ping. No key, no tokens — use it for uptime monitoring.
Errors
| 500 | internal_error | Internal server error. The request did not complete; no tokens are charged. |
curl \
"https://api.dolix.io/health"{
"ok": true,
"dbAuth": true
}Counterparty check
/profile/fullCheck a counterparty
The main counterparty check: status, violations, statistics and — where available — contact data. A subject is required: free-text value OR exactly one typed param (uid/card/phone/nick/link). Contains personal data; access is governed by server policy.
Query parameters
| value | string | Free-text query (or use typed uid/card/phone/nick/link). |
| base | string | Counterparty platform.bybit · mexc · tg_wallet · all |
| ads | boolean | Include the counterparty's ads (heavier). |
| currency | string | Currency for monetary fields. |
| limit | integer | Page size. |
| offset | integer | Pagination offset. |
Errors
| 400 | bad_request | Invalid or missing parameters. The body carries a specific error code. |
| 401 | Unauthorized | Missing or invalid X-API-Key header. |
| 402 | insufficient_tokens | Not enough tokens for this call. See X-Tokens-Remaining header and the required field. |
| 403 | forbidden | Key disabled, or the function is not permitted for this key / disabled by server policy. |
| 404 | Not found | Feature disabled by a server flag (the route is invisible until the operator enables it). |
| 500 | internal_error | Internal server error. The request did not complete; no tokens are charged. |
curl \
-H "X-API-Key: $DOLIX_API_KEY" \
"https://api.dolix.io/profile/full?value=98765432&base=bybit"{
"ok": true,
"query": "98765432",
"base": "bybit",
"total": 1,
"results": [
{
"uid": "98765432",
"base": "bybit",
"status": "blacklisted",
"nickname": "fast_otc_deals",
"complaints": 4,
"violations": [
{
"type": "non_release",
"reportedAt": "2026-05-30T11:02:00Z"
}
],
"stats": {
"totalOrders": 1280,
"completionRate": 0.91
}
}
]
}AML scoring
/v1/aml/addressAML address risk score
Live transaction-graph trace and a risk score for an address (0–100 %, risk level, top connections, fund flow). Proprietary engine, networks TRC20/BEP20/ETH/TON. A cold check takes up to 30–60 s. Fail-closed: if data is unavailable you get 503 + insufficient_data — a clean verdict is never fabricated.
Query parameters
| networkrequired | string | Address network.TRC20 · BEP20 · ETH · TON |
| addressrequired | string | Address to check. |
Errors
| 400 | bad_request | Invalid or missing parameters. The body carries a specific error code. |
| 401 | Unauthorized | Missing or invalid X-API-Key header. |
| 402 | insufficient_tokens | Not enough tokens for this call. See X-Tokens-Remaining header and the required field. |
| 403 | forbidden | Key disabled, or the function is not permitted for this key / disabled by server policy. |
| 404 | Not found | Feature disabled by a server flag (the route is invisible until the operator enables it). |
| 503 | busy / needs_async | Engine saturated or sync deadline exceeded. Retry per Retry-After. No tokens are charged. |
| 500 | internal_error | Internal server error. The request did not complete; no tokens are charged. |
curl \
-H "X-API-Key: $DOLIX_API_KEY" \
"https://api.dolix.io/v1/aml/address?network=TRC20&address=TXk...9pQ"{
"ok": true,
"status": "ok",
"kind": "address",
"address": "TXk...9pQ",
"networkCode": "TRC20",
"scoringVersion": 50,
"riskLevel": "high",
"score": 72,
"scorePercent": "72.0%",
"decision": "deny",
"cached": false,
"degraded": false,
"coverage": {
"tier": "ok",
"hasProviderErrors": false
},
"topConnections": [
{
"address": "TM...aZ",
"amount": "12,500 USDT",
"direction": "in",
"label": "sanctioned_exchange"
}
],
"fundFlowSummary": {
"inflow": "31,200 USDT",
"outflow": "30,980 USDT",
"balance": "220 USDT"
},
"checkedAt": "2026-06-24T09:15:00Z"
}/v1/aml/txidAML transaction risk score
Resolves a transaction by hash, identifies the primary transfer and scores the sender's risk. Returns the same fields as the address check plus primaryTransfer.
Query parameters
| networkrequired | string | Transaction network.TRC20 · BEP20 · ETH · TON |
| txidrequired | string | Transaction hash. |
Errors
| 400 | bad_request | Invalid or missing parameters. The body carries a specific error code. |
| 401 | Unauthorized | Missing or invalid X-API-Key header. |
| 402 | insufficient_tokens | Not enough tokens for this call. See X-Tokens-Remaining header and the required field. |
| 403 | forbidden | Key disabled, or the function is not permitted for this key / disabled by server policy. |
| 404 | Not found | Feature disabled by a server flag (the route is invisible until the operator enables it). |
| 503 | busy / needs_async | Engine saturated or sync deadline exceeded. Retry per Retry-After. No tokens are charged. |
| 500 | internal_error | Internal server error. The request did not complete; no tokens are charged. |
curl \
-H "X-API-Key: $DOLIX_API_KEY" \
"https://api.dolix.io/v1/aml/txid?network=BEP20&txid=0xab...7c3d"{
"ok": true,
"status": "ok",
"kind": "transaction",
"txid": "0xab...7c3d",
"networkCode": "BEP20",
"senderAddress": "0x4a2...b9f1",
"recipientAddress": "0x77c...12ab",
"riskLevel": "low",
"score": 6,
"scorePercent": "6.0%",
"decision": "allow",
"degraded": false,
"coverage": {
"tier": "full",
"hasProviderErrors": false
},
"primaryTransfer": {
"from": "0x4a2...b9f1",
"to": "0x77c...12ab",
"amount": "500",
"amountUsd": 500,
"asset": "USDT"
},
"checkedAt": "2026-06-24T09:16:00Z"
}/v1/aml/healthAML engine status
Scoring version, the sync deadline and per-network coverage (which networks can be scored synchronously).
Errors
| 401 | Unauthorized | Missing or invalid X-API-Key header. |
| 403 | forbidden | Key disabled, or the function is not permitted for this key / disabled by server policy. |
| 404 | Not found | Feature disabled by a server flag (the route is invisible until the operator enables it). |
| 500 | internal_error | Internal server error. The request did not complete; no tokens are charged. |
curl \
-H "X-API-Key: $DOLIX_API_KEY" \
"https://api.dolix.io/v1/aml/health"{
"ok": true,
"deadlineMs": 60000,
"scoringVersion": 50,
"coverage": {
"TRC20": {
"sync": true,
"keyed": true
},
"BEP20": {
"sync": true,
"keyed": true
},
"ETH": {
"sync": true,
"keyed": true
},
"TON": {
"sync": true,
"keyed": true,
"requiresKeyForSync": true
}
}
}Receipt check
/v1/receipts/checkPDF receipt forensics
Accepts a PDF payment receipt / statement and returns an authenticity verdict: extracted fields, the forensic check set and findings. Personal data is returned only with include_pii=1.
Query parameters
| include_pii | boolean | Return personal data from the receipt (names, cards, account). |
Request body
multipart/form-data — multipart/form-data with a `file` part — or application/json with { fileBase64, fileName }. A raw application/pdf body is rejected (415).
Errors
| 400 | bad_request | Invalid or missing parameters. The body carries a specific error code. |
| 401 | Unauthorized | Missing or invalid X-API-Key header. |
| 402 | insufficient_tokens | Not enough tokens for this call. See X-Tokens-Remaining header and the required field. |
| 403 | forbidden | Key disabled, or the function is not permitted for this key / disabled by server policy. |
| 404 | Not found | Feature disabled by a server flag (the route is invisible until the operator enables it). |
| 503 | busy / needs_async | Engine saturated or sync deadline exceeded. Retry per Retry-After. No tokens are charged. |
| 500 | internal_error | Internal server error. The request did not complete; no tokens are charged. |
curl -X POST \
-H "X-API-Key: $DOLIX_API_KEY" \
-F "file=@receipt.pdf" \
"https://api.dolix.io/v1/receipts/check"{
"ok": true,
"verdict": {
"hasForgerySignals": true,
"confidence": "высокий",
"suspiciousCount": 2,
"warningCount": 1,
"definitiveCount": 1
},
"receipt": {
"documentType": "transfer",
"issuer": "Сбербанк",
"operation": "Перевод",
"status": "Выполнено",
"amount": "45 000,00 ₽",
"operationId": "1234567890",
"paymentFingerprint": "a1b2c3"
},
"pdf": {
"origin": "screenshot_to_pdf",
"pages": 1,
"hasSignature": false,
"hasQr": false
},
"findings": [
{
"level": "high",
"code": "font_mismatch",
"message": "Шрифт суммы отличается от шаблона банка."
}
],
"checks": [
{
"code": "producer",
"ok": false,
"label": "Производитель PDF"
}
],
"analysisDegraded": false,
"file": {
"sizeBytes": 81234,
"sha256": "9f2c..."
}
}/v1/receipts/healthForensic toolchain status
Availability of the forensic binaries on the host (qpdf, pdftotext, tesseract, magick, …) and a degraded flag.
Errors
| 401 | Unauthorized | Missing or invalid X-API-Key header. |
| 403 | forbidden | Key disabled, or the function is not permitted for this key / disabled by server policy. |
| 404 | Not found | Feature disabled by a server flag (the route is invisible until the operator enables it). |
| 500 | internal_error | Internal server error. The request did not complete; no tokens are charged. |
curl \
-H "X-API-Key: $DOLIX_API_KEY" \
"https://api.dolix.io/v1/receipts/health"{
"ok": true,
"tools": {
"qpdf": true,
"pdftotext": true,
"tesseract": true,
"magick": true
},
"degraded": false
}Receipts by email
Receipts by email
Every Dolix user has a personal address for receipts: <telegram_nick>@dolix.io (no nick — <telegram_id>@dolix.io; the old @riskscan.net works too). Share it with payers or tell the bank app to e-mail the receipt there. Each PDF is checked the same way as in the bot; the report comes to Telegram, and with an API key it is also available here and via a webhook — for anyone receiving a stream of payments.
The check itself is paid as in the bot (same quota). Reading the results through these endpoints is free — only the per-key rate limit applies. The key must belong to the mailbox owner: these endpoints return only mail that came to the address of the key's owner. Extension keys cannot read them (403 owner_api_key_required).
Label
Anything after the first +, . or - is a label: ivan+1042@dolix.io, ivan.1042@dolix.io and ivan-1042@dolix.io all go to the mailbox ivan with label 1042. A label is [a-z0-9._-], up to 32 characters; anything else (e.g. ivan+чек@) is delivered to ivan without a label — a label never makes a mail get lost. # is not a separator. The label is shown in the Telegram report and returned by the API (label, filter ?label=).
Reliability
A mail is stored first and only then checked in the background, so a restart in the middle of a check does not lose it — it is picked up again after the restart. A re-delivery of the same mail (same Message-ID) is not checked twice. Mail to an unknown address is dropped silently. A protective cap of 500 mails per hour per mailbox (all mail, bank mail included) guards against floods: mail above it is not accepted — no item, no webhook. A real receipt flow is far below it.
Item fields
The same object in the list, in GET /v1/receipts/checks/:id and in the webhook (example below, at the endpoint). What is not known is null — never 0 or an empty string.
| Field | Meaning |
|---|---|
| status / reason | checked, or not_checked — the mail arrived but was not checked, with reason: no_access (no checks left in your plan), no_pdf (no PDF in the mail), failed (the check failed), rate_limited (too many mails without a bank signature in an hour). |
| label | The label from the address (see above) or null. |
| mail.from | Sender address (shown to you in full). For a bank mail forwarded as an attachment — the bank's address, and forwarded_by is who forwarded it. |
| mail.trust_level | A — sent by the bank's server (bank DKIM matches From): the file was not altered on the way. A' — the bank's mail forwarded as a whole, its bank signature is intact. B — personal mail, signature matches (proves the sender, not the file). C — signature missing or not matching. D — From names a bank domain but the bank signature does not match (spoofing). |
| mail.bank | Bank of the mail (for A/A'). If it differs from receipt.bank, the verdict is lowered and a remark says so. |
| receipt.amount | Exactly as printed in the receipt. |
| receipt.paid_at | Payment time with the bank's time zone (null if the zone is unknown; paid_at_text is the printed value). |
| receipt.operation | Operation type from the receipt's operation fields — never from the payment purpose. |
| receipt.transfer_kind | Where the money went — see below. |
| recipient / sender | Name, bank and the last 4 digits of phone/card/account only. |
| verdict.code | forgery · not_from_bank (mail not from a bank server) · suspicious · clean · not_a_receipt — the same headline as in the Telegram report (title). |
| remarks | The same remarks as in the Telegram report. |
| reuse.seen_by_you | The same file, operation number or payment fingerprint was already checked by you before this mail; first_seen_at — when you first saw it. |
| reuse.seen_by_others | How many other users checked it before (a number only). |
transfer_kind — where the money went
| Value | Meaning |
|---|---|
| sbp_phone | By phone number (SBP or within a bank). |
| card | By card number. |
| account | To a bank account by requisites. |
| balance | «Перевод баланса» — from a phone balance, not a transfer to a person. |
| other | Payments, own accounts, unknown. |
Fraud schemes with a genuine receipt (the mail comes from the bank's real address with a valid signature, but the money did not go to the recipient's card or phone) get the suspicious verdict with a remark: a transfer to an account while the phone or card is written only in the payment purpose («ПЕРЕВОД ПО СБП +7…», «Перевод на карту 2200…»), and «Перевод баланса». Recipient requisites are taken only from the recipient fields of the receipt, never from the payment purpose.
Webhook
One URL per key owner (set it with the endpoints below). Events for mail that comes to your mailbox: receipt.checked — a check is done; receipt.not_checked — a mail arrived but was not checked (reason as above). Delivery is a POST with a JSON body where data.receipt is the same item object; ping has "data": { "test": true }.
{
"id": "evt_4012",
"type": "receipt.checked",
"created_at": "2026-11-05T15:49:20.000Z",
"data": { "receipt": { "id": "315", "status": "checked", "…": "…" } }
}X-Dolix-Event: receipt.checked
X-Dolix-Delivery: evt_4012
X-Dolix-Signature: t=1762357760,v1=5f0c…e91av1 = HMAC-SHA256(secret, "<t>.<raw body>"), t is unix time in seconds. Verify the signature over the raw body and reject old t. Answer 2xx to acknowledge. Anything else (or no answer within 10 s) is retried after 1 min, 5 min, 30 min, 2 h, 6 h, 12 h and 24 h; after that the event is dropped (the item stays in GET /v1/receipts/mail). An event may arrive more than once — de-duplicate by id.
const crypto = require("crypto");
// rawBody — the request body exactly as received (string or Buffer), before JSON.parse.
function verify(header, rawBody, secret, toleranceSec = 300) {
const [, t, v1] = /^t=(\d+),v1=([0-9a-f]{64})$/.exec(header || "") || [];
if (!t || Math.abs(Date.now() / 1000 - Number(t)) > toleranceSec) return false;
const expected = crypto.createHmac("sha256", secret).update(`${t}.${rawBody}`).digest("hex");
return crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(v1));
}import hashlib, hmac, re, time
# raw_body — the request body as bytes, before json.loads.
def verify(header: str, raw_body: bytes, secret: str, tolerance: int = 300) -> bool:
m = re.fullmatch(r"t=(\d+),v1=([0-9a-f]{64})", header or "")
if not m or abs(time.time() - int(m[1])) > tolerance:
return False
expected = hmac.new(secret.encode(), m[1].encode() + b"." + raw_body, hashlib.sha256).hexdigest()
return hmac.compare_digest(expected, m[2])/v1/receipts/mailList receipts from mail
Receipts that came to your <nick>@dolix.io address, newest first. Includes mail that arrived but was not checked (status: not_checked with a reason). Paginate with next_cursor (null — no more).
Query parameters
| since | string | Only items recorded at/after this time: ISO 8601 or unix time (seconds or ms). |
| label | string | Only this label ([a-z0-9._-], up to 32). |
| limit | integer | 1–100, default 50 (more than 100 is treated as 100). |
| cursor | string | next_cursor from the previous page (older items). |
Errors
| 400 | bad_since | since is neither ISO 8601 nor unix time. |
| 400 | bad_label | label is not [a-z0-9._-] or is longer than 32. |
| 400 | bad_cursor | cursor is not a number. |
| 400 | bad_limit | limit is not a number. |
| 401 | Unauthorized | Missing or invalid X-API-Key header. |
| 403 | owner_api_key_required | The key has no mailbox owner (e.g. an extension key). |
| 405 | method_not_allowed | GET only. |
| 429 | Rate limit exceeded | Frequency limit (rpm/rpd) or daily token cap exceeded. Anti-flood fires before tokens are spent. |
| 500 | internal_error | Internal server error. The request did not complete; no tokens are charged. |
curl \
-H "X-API-Key: $DOLIX_API_KEY" \
"https://api.dolix.io/v1/receipts/mail?label=1042&limit=20"{
"ok": true,
"items": [
{
"id": "315",
"status": "checked",
"reason": null,
"label": "1042",
"…": "…"
}
],
"next_cursor": "296"
}/v1/receipts/checks/:idOne receipt
The same object as in the list and in the webhook. Another user's item — 404. Fields are described in «How it works».
Errors
| 401 | Unauthorized | Missing or invalid X-API-Key header. |
| 403 | owner_api_key_required | The key has no mailbox owner (e.g. an extension key). |
| 404 | not_found | No such item for the key's owner. |
| 429 | Rate limit exceeded | Frequency limit (rpm/rpd) or daily token cap exceeded. Anti-flood fires before tokens are spent. |
| 500 | internal_error | Internal server error. The request did not complete; no tokens are charged. |
curl \
-H "X-API-Key: $DOLIX_API_KEY" \
"https://api.dolix.io/v1/receipts/checks/315"{
"ok": true,
"item": {
"id": "315",
"status": "checked",
"reason": null,
"label": "1042",
"received_at": "2026-11-05T15:49:02.000Z",
"checked_at": "2026-11-05T15:49:20.000Z",
"mail": {
"id": "1188",
"from": "noreply@tinkoff.ru",
"trust_level": "A",
"dkim_domain": "tinkoff.ru",
"bank": "Т-Банк",
"forwarded_by": null
},
"file": {
"name": "receipt.pdf",
"sha256": "…",
"size_bytes": 59302,
"available": true,
"url": "/v1/receipts/checks/315/file"
},
"receipt": {
"bank": "Т-Банк",
"document_type": "receipt",
"amount": "50 000 ₽",
"paid_at": "2026-11-02T09:18:00+03:00",
"paid_at_text": "02.11.2026 09:18",
"time_zone": "+03:00",
"status": "Успешно",
"operation": "Перевод физическому лицу",
"transfer_kind": "account",
"operation_id": "1-124-392-886-002",
"recipient": {
"name": "Евгений К.",
"phone_last4": null,
"card_last4": null,
"account_last4": "8185",
"bank": "ПАО \"Банк ПСБ\""
},
"sender": {
"name": null,
"card_last4": null
}
},
"verdict": {
"code": "suspicious",
"title": "Подозрительно",
"confidence": "средний",
"forgery_signals": false
},
"remarks": [
"Деньги ушли на счёт …8185 в ПАО \"Банк ПСБ\", а не на карту; реквизиты только в назначении — частая схема обмана"
],
"reuse": {
"seen_by_you": false,
"first_seen_at": null,
"seen_by_others": 0
}
}
}/v1/receipts/checks/:id/fileThe PDF from the mail
The very file from the mail (application/pdf) — for example, to forward it to your client. Owner only; another user's item or an item without a checked file — 404.
Errors
| 401 | Unauthorized | Missing or invalid X-API-Key header. |
| 403 | owner_api_key_required | The key has no mailbox owner (e.g. an extension key). |
| 404 | not_found | No such item or file for the key's owner. |
| 429 | Rate limit exceeded | Frequency limit (rpm/rpd) or daily token cap exceeded. Anti-flood fires before tokens are spent. |
| 500 | internal_error | Internal server error. The request did not complete; no tokens are charged. |
curl \
-H "X-API-Key: $DOLIX_API_KEY" \
-o receipt.pdf \
"https://api.dolix.io/v1/receipts/checks/315/file"Content-Type: application/pdf
Content-Disposition: attachment; filename="receipt.pdf"
%PDF-1.7 …/v1/webhookSet the webhook URL
Sets or replaces the URL. Returns a new secret — shown only once; every PUT issues a new one. The URL must be https and resolve only to public IP addresses (no localhost, private, link-local or cloud-metadata addresses); redirects are not followed.
Request body
application/json — The webhook URL.
Fields
| urlrequired | string | The https URL events are sent to. |
Errors
| 400 | invalid_json | The body is not JSON. |
| 400 | url_required | The body has no url. |
| 400 | webhook_url_invalid | The URL is not https, is malformed, is longer than 500 characters or contains a login, password or #. |
| 400 | webhook_url_not_public | The URL resolves to a non-public IP (localhost, private network, cloud metadata). |
| 400 | webhook_url_unresolvable | The host name does not resolve. |
| 401 | Unauthorized | Missing or invalid X-API-Key header. |
| 403 | owner_api_key_required | The key has no mailbox owner (e.g. an extension key). |
| 429 | Rate limit exceeded | Frequency limit (rpm/rpd) or daily token cap exceeded. Anti-flood fires before tokens are spent. |
| 500 | internal_error | Internal server error. The request did not complete; no tokens are charged. |
curl -X PUT \
-H "X-API-Key: $DOLIX_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://example.com/hooks/dolix"}' \
"https://api.dolix.io/v1/webhook"{
"ok": true,
"webhook": {
"url": "https://example.com/hooks/dolix",
"secret": "whsec_9c1e…",
"events": [
"receipt.checked",
"receipt.not_checked"
]
}
}/v1/webhookWebhook settings
URL, events and the last 10 deliveries (no secret). If not set — webhook: null.
Errors
| 401 | Unauthorized | Missing or invalid X-API-Key header. |
| 403 | owner_api_key_required | The key has no mailbox owner (e.g. an extension key). |
| 429 | Rate limit exceeded | Frequency limit (rpm/rpd) or daily token cap exceeded. Anti-flood fires before tokens are spent. |
| 500 | internal_error | Internal server error. The request did not complete; no tokens are charged. |
curl \
-H "X-API-Key: $DOLIX_API_KEY" \
"https://api.dolix.io/v1/webhook"{
"ok": true,
"webhook": {
"url": "https://example.com/hooks/dolix",
"events": [
"receipt.checked",
"receipt.not_checked"
],
"created_at": "2026-11-05T15:40:00.000Z",
"updated_at": "2026-11-05T15:40:00.000Z",
"recent_deliveries": [
{
"id": "evt_4012",
"receipt_id": "315",
"type": "receipt.checked",
"status": "delivered",
"attempts": 1,
"last_status_code": 200,
"last_error": null,
"created_at": "2026-11-05T15:49:20.000Z",
"delivered_at": "2026-11-05T15:49:21.000Z",
"next_attempt_at": null
}
]
}
}/v1/webhookRemove the webhook
Removes the URL; no more events are sent. deleted: false — there was no URL.
Errors
| 401 | Unauthorized | Missing or invalid X-API-Key header. |
| 403 | owner_api_key_required | The key has no mailbox owner (e.g. an extension key). |
| 429 | Rate limit exceeded | Frequency limit (rpm/rpd) or daily token cap exceeded. Anti-flood fires before tokens are spent. |
| 500 | internal_error | Internal server error. The request did not complete; no tokens are charged. |
curl -X DELETE \
-H "X-API-Key: $DOLIX_API_KEY" \
"https://api.dolix.io/v1/webhook"{
"ok": true,
"deleted": true
}/v1/webhook/testTest the webhook
Sends a ping event to your URL right now and returns the delivery result.
Errors
| 401 | Unauthorized | Missing or invalid X-API-Key header. |
| 403 | owner_api_key_required | The key has no mailbox owner (e.g. an extension key). |
| 404 | webhook_not_configured | No webhook URL is set. |
| 405 | method_not_allowed | POST only. |
| 429 | Rate limit exceeded | Frequency limit (rpm/rpd) or daily token cap exceeded. Anti-flood fires before tokens are spent. |
| 500 | internal_error | Internal server error. The request did not complete; no tokens are charged. |
curl -X POST \
-H "X-API-Key: $DOLIX_API_KEY" \
"https://api.dolix.io/v1/webhook/test"{
"ok": true,
"delivery": {
"ok": true,
"status_code": 200,
"error": null
}
}Blacklist
/v1/blacklist/reportSubmit a blacklist report
Enqueues a submission for moderation. Body = exactly one typed identifier (or value) + a mandatory review text. Idempotent via Idempotency-Key. Tokens are refunded if a moderator rejects it.
Request body
application/json — JSON with the subject and review text.
Fields
| base | string | Counterparty platform.bybit · mexc · tg_wallet |
| uid | card | phone | nick | linkrequired | string | Exactly one typed subject identifier. |
| reviewrequired | string | Review text (required, goes through moderation). |
| idempotency_key | string | Idempotency key (also accepted as the Idempotency-Key header). |
Errors
| 400 | bad_request | Invalid or missing parameters. The body carries a specific error code. |
| 401 | Unauthorized | Missing or invalid X-API-Key header. |
| 402 | insufficient_tokens | Not enough tokens for this call. See X-Tokens-Remaining header and the required field. |
| 403 | forbidden | Key disabled, or the function is not permitted for this key / disabled by server policy. |
| 404 | Not found | Feature disabled by a server flag (the route is invisible until the operator enables it). |
| 500 | internal_error | Internal server error. The request did not complete; no tokens are charged. |
curl -X POST \
-H "X-API-Key: $DOLIX_API_KEY" \
-H "Content-Type: application/json" \
-d '{"base":"bybit","uid":"98765432","review":"Не отпустил средства после оплаты, динамил 3 часа."}' \
"https://api.dolix.io/v1/blacklist/report"{
"ok": true,
"submission_id": "1042",
"status": "pending",
"idempotent": false
}