REST API

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.

Base URL
https://api.dolix.io
first request
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.

key header
curl -H "X-API-Key: $DOLIX_API_KEY" \
  "https://api.dolix.io/profile/full?value=98765432"
🔑 Treat the key as a secret. If it leaks, rotate it in the bot — the old key stops working immediately.

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.

FunctionTokens
/profile/full · check a counterparty3
/v1/aml/address10
/v1/aml/txid15
/v1/receipts/check10
/v1/blacklist/report · add to the blacklist5

A paid response carries spend headers:

headers
X-Tokens-Cost: 10
X-Tokens-Remaining: 90

Out of tokens → 402 with details:

402 Payment Required
{
  "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.

headers
X-RateLimit-Remaining-Minute: 58
X-RateLimit-Remaining-Day: 4972
X-RateLimit-Total-Used: 1284

Errors

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.

400bad_requestInvalid request
401UnauthorizedMissing/invalid key
402insufficient_tokensOut of tokens
403forbiddenKey/function not allowed
404Not foundFeature disabled by flag
429Rate limit exceededRate limit or daily token cap
503busy / needs_asyncSaturated / deadline
500internal_errorServer error

Service

GET/health

Health check

no key

Lightweight liveness ping. No key, no tokens — use it for uptime monitoring.

Errors

500internal_errorInternal server error. The request did not complete; no tokens are charged.
Request · cURL
curl \
  "https://api.dolix.io/health"
Response · 200 OK
{
  "ok": true,
  "dbAuth": true
}

Counterparty check

GET/profile/full

Check a counterparty

🔑 X-API-Key3 tok.PIIbehind a flag

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

valuestringFree-text query (or use typed uid/card/phone/nick/link).
basestringCounterparty platform.bybit · mexc · tg_wallet · all
adsbooleanInclude the counterparty's ads (heavier).
currencystringCurrency for monetary fields.
limitintegerPage size.
offsetintegerPagination offset.

Errors

400bad_requestInvalid or missing parameters. The body carries a specific error code.
401UnauthorizedMissing or invalid X-API-Key header.
402insufficient_tokensNot enough tokens for this call. See X-Tokens-Remaining header and the required field.
403forbiddenKey disabled, or the function is not permitted for this key / disabled by server policy.
404Not foundFeature disabled by a server flag (the route is invisible until the operator enables it).
500internal_errorInternal server error. The request did not complete; no tokens are charged.
Request · cURL
curl \
  -H "X-API-Key: $DOLIX_API_KEY" \
  "https://api.dolix.io/profile/full?value=98765432&base=bybit"
Response · 200 OK
{
  "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

GET/v1/aml/address

AML address risk score

🔑 X-API-Key10 tok.behind a flag

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

networkrequiredstringAddress network.TRC20 · BEP20 · ETH · TON
addressrequiredstringAddress to check.

Errors

400bad_requestInvalid or missing parameters. The body carries a specific error code.
401UnauthorizedMissing or invalid X-API-Key header.
402insufficient_tokensNot enough tokens for this call. See X-Tokens-Remaining header and the required field.
403forbiddenKey disabled, or the function is not permitted for this key / disabled by server policy.
404Not foundFeature disabled by a server flag (the route is invisible until the operator enables it).
503busy / needs_asyncEngine saturated or sync deadline exceeded. Retry per Retry-After. No tokens are charged.
500internal_errorInternal server error. The request did not complete; no tokens are charged.
Request · cURL
curl \
  -H "X-API-Key: $DOLIX_API_KEY" \
  "https://api.dolix.io/v1/aml/address?network=TRC20&address=TXk...9pQ"
Response · 200 OK
{
  "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"
}
GET/v1/aml/txid

AML transaction risk score

🔑 X-API-Key15 tok.behind a flag

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

networkrequiredstringTransaction network.TRC20 · BEP20 · ETH · TON
txidrequiredstringTransaction hash.

Errors

400bad_requestInvalid or missing parameters. The body carries a specific error code.
401UnauthorizedMissing or invalid X-API-Key header.
402insufficient_tokensNot enough tokens for this call. See X-Tokens-Remaining header and the required field.
403forbiddenKey disabled, or the function is not permitted for this key / disabled by server policy.
404Not foundFeature disabled by a server flag (the route is invisible until the operator enables it).
503busy / needs_asyncEngine saturated or sync deadline exceeded. Retry per Retry-After. No tokens are charged.
500internal_errorInternal server error. The request did not complete; no tokens are charged.
Request · cURL
curl \
  -H "X-API-Key: $DOLIX_API_KEY" \
  "https://api.dolix.io/v1/aml/txid?network=BEP20&txid=0xab...7c3d"
Response · 200 OK
{
  "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"
}
GET/v1/aml/health

AML engine status

🔑 X-API-Keybehind a flag

Scoring version, the sync deadline and per-network coverage (which networks can be scored synchronously).

Errors

401UnauthorizedMissing or invalid X-API-Key header.
403forbiddenKey disabled, or the function is not permitted for this key / disabled by server policy.
404Not foundFeature disabled by a server flag (the route is invisible until the operator enables it).
500internal_errorInternal server error. The request did not complete; no tokens are charged.
Request · cURL
curl \
  -H "X-API-Key: $DOLIX_API_KEY" \
  "https://api.dolix.io/v1/aml/health"
Response · 200 OK
{
  "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

POST/v1/receipts/check

PDF receipt forensics

🔑 X-API-Key10 tok.behind a flag

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_piibooleanReturn 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

400bad_requestInvalid or missing parameters. The body carries a specific error code.
401UnauthorizedMissing or invalid X-API-Key header.
402insufficient_tokensNot enough tokens for this call. See X-Tokens-Remaining header and the required field.
403forbiddenKey disabled, or the function is not permitted for this key / disabled by server policy.
404Not foundFeature disabled by a server flag (the route is invisible until the operator enables it).
503busy / needs_asyncEngine saturated or sync deadline exceeded. Retry per Retry-After. No tokens are charged.
500internal_errorInternal server error. The request did not complete; no tokens are charged.
Request · cURL
curl -X POST \
  -H "X-API-Key: $DOLIX_API_KEY" \
  -F "file=@receipt.pdf" \
  "https://api.dolix.io/v1/receipts/check"
Response · 200 OK
{
  "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..."
  }
}
GET/v1/receipts/health

Forensic toolchain status

🔑 X-API-Keybehind a flag

Availability of the forensic binaries on the host (qpdf, pdftotext, tesseract, magick, …) and a degraded flag.

Errors

401UnauthorizedMissing or invalid X-API-Key header.
403forbiddenKey disabled, or the function is not permitted for this key / disabled by server policy.
404Not foundFeature disabled by a server flag (the route is invisible until the operator enables it).
500internal_errorInternal server error. The request did not complete; no tokens are charged.
Request · cURL
curl \
  -H "X-API-Key: $DOLIX_API_KEY" \
  "https://api.dolix.io/v1/receipts/health"
Response · 200 OK
{
  "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=).

The label is only a hint which deal the receipt is for. Always check who paid against the receipt fields — payer, recipient, amount and time — never against the label: anyone can send any file to any 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.

FieldMeaning
status / reasonchecked, 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).
labelThe label from the address (see above) or null.
mail.fromSender 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_levelA — 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.bankBank of the mail (for A/A'). If it differs from receipt.bank, the verdict is lowered and a remark says so.
receipt.amountExactly as printed in the receipt.
receipt.paid_atPayment time with the bank's time zone (null if the zone is unknown; paid_at_text is the printed value).
receipt.operationOperation type from the receipt's operation fields — never from the payment purpose.
receipt.transfer_kindWhere the money went — see below.
recipient / senderName, bank and the last 4 digits of phone/card/account only.
verdict.codeforgery · not_from_bank (mail not from a bank server) · suspicious · clean · not_a_receipt — the same headline as in the Telegram report (title).
remarksThe same remarks as in the Telegram report.
reuse.seen_by_youThe 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_othersHow many other users checked it before (a number only).

transfer_kind — where the money went

ValueMeaning
sbp_phoneBy phone number (SBP or within a bank).
cardBy card number.
accountTo a bank account by requisites.
balance«Перевод баланса» — from a phone balance, not a transfer to a person.
otherPayments, 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 }.

delivery body
{
  "id": "evt_4012",
  "type": "receipt.checked",
  "created_at": "2026-11-05T15:49:20.000Z",
  "data": { "receipt": { "id": "315", "status": "checked", "…": "…" } }
}
headers
X-Dolix-Event: receipt.checked
X-Dolix-Delivery: evt_4012
X-Dolix-Signature: t=1762357760,v1=5f0c…e91a

v1 = 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.

signature check · Node.js
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));
}
signature check · Python
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])
GET/v1/receipts/mail

List receipts from mail

🔑 X-API-Keyfree

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

sincestringOnly items recorded at/after this time: ISO 8601 or unix time (seconds or ms).
labelstringOnly this label ([a-z0-9._-], up to 32).
limitinteger1–100, default 50 (more than 100 is treated as 100).
cursorstringnext_cursor from the previous page (older items).

Errors

400bad_sincesince is neither ISO 8601 nor unix time.
400bad_labellabel is not [a-z0-9._-] or is longer than 32.
400bad_cursorcursor is not a number.
400bad_limitlimit is not a number.
401UnauthorizedMissing or invalid X-API-Key header.
403owner_api_key_requiredThe key has no mailbox owner (e.g. an extension key).
405method_not_allowedGET only.
429Rate limit exceededFrequency limit (rpm/rpd) or daily token cap exceeded. Anti-flood fires before tokens are spent.
500internal_errorInternal server error. The request did not complete; no tokens are charged.
Request · cURL
curl \
  -H "X-API-Key: $DOLIX_API_KEY" \
  "https://api.dolix.io/v1/receipts/mail?label=1042&limit=20"
Response · 200 OK
{
  "ok": true,
  "items": [
    {
      "id": "315",
      "status": "checked",
      "reason": null,
      "label": "1042",
      "…": "…"
    }
  ],
  "next_cursor": "296"
}
GET/v1/receipts/checks/:id

One receipt

🔑 X-API-KeyfreePII

The same object as in the list and in the webhook. Another user's item — 404. Fields are described in «How it works».

Errors

401UnauthorizedMissing or invalid X-API-Key header.
403owner_api_key_requiredThe key has no mailbox owner (e.g. an extension key).
404not_foundNo such item for the key's owner.
429Rate limit exceededFrequency limit (rpm/rpd) or daily token cap exceeded. Anti-flood fires before tokens are spent.
500internal_errorInternal server error. The request did not complete; no tokens are charged.
Request · cURL
curl \
  -H "X-API-Key: $DOLIX_API_KEY" \
  "https://api.dolix.io/v1/receipts/checks/315"
Response · 200 OK
{
  "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
    }
  }
}
GET/v1/receipts/checks/:id/file

The PDF from the mail

🔑 X-API-KeyfreePII

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

401UnauthorizedMissing or invalid X-API-Key header.
403owner_api_key_requiredThe key has no mailbox owner (e.g. an extension key).
404not_foundNo such item or file for the key's owner.
429Rate limit exceededFrequency limit (rpm/rpd) or daily token cap exceeded. Anti-flood fires before tokens are spent.
500internal_errorInternal server error. The request did not complete; no tokens are charged.
Request · cURL
curl \
  -H "X-API-Key: $DOLIX_API_KEY" \
  -o receipt.pdf \
  "https://api.dolix.io/v1/receipts/checks/315/file"
Response · 200 OK
Content-Type: application/pdf
Content-Disposition: attachment; filename="receipt.pdf"

%PDF-1.7 …
PUT/v1/webhook

Set the webhook URL

🔑 X-API-Keyfree

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

urlrequiredstringThe https URL events are sent to.

Errors

400invalid_jsonThe body is not JSON.
400url_requiredThe body has no url.
400webhook_url_invalidThe URL is not https, is malformed, is longer than 500 characters or contains a login, password or #.
400webhook_url_not_publicThe URL resolves to a non-public IP (localhost, private network, cloud metadata).
400webhook_url_unresolvableThe host name does not resolve.
401UnauthorizedMissing or invalid X-API-Key header.
403owner_api_key_requiredThe key has no mailbox owner (e.g. an extension key).
429Rate limit exceededFrequency limit (rpm/rpd) or daily token cap exceeded. Anti-flood fires before tokens are spent.
500internal_errorInternal server error. The request did not complete; no tokens are charged.
Request · cURL
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"
Response · 200 OK
{
  "ok": true,
  "webhook": {
    "url": "https://example.com/hooks/dolix",
    "secret": "whsec_9c1e…",
    "events": [
      "receipt.checked",
      "receipt.not_checked"
    ]
  }
}
GET/v1/webhook

Webhook settings

🔑 X-API-Keyfree

URL, events and the last 10 deliveries (no secret). If not set — webhook: null.

Errors

401UnauthorizedMissing or invalid X-API-Key header.
403owner_api_key_requiredThe key has no mailbox owner (e.g. an extension key).
429Rate limit exceededFrequency limit (rpm/rpd) or daily token cap exceeded. Anti-flood fires before tokens are spent.
500internal_errorInternal server error. The request did not complete; no tokens are charged.
Request · cURL
curl \
  -H "X-API-Key: $DOLIX_API_KEY" \
  "https://api.dolix.io/v1/webhook"
Response · 200 OK
{
  "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
      }
    ]
  }
}
DELETE/v1/webhook

Remove the webhook

🔑 X-API-Keyfree

Removes the URL; no more events are sent. deleted: false — there was no URL.

Errors

401UnauthorizedMissing or invalid X-API-Key header.
403owner_api_key_requiredThe key has no mailbox owner (e.g. an extension key).
429Rate limit exceededFrequency limit (rpm/rpd) or daily token cap exceeded. Anti-flood fires before tokens are spent.
500internal_errorInternal server error. The request did not complete; no tokens are charged.
Request · cURL
curl -X DELETE \
  -H "X-API-Key: $DOLIX_API_KEY" \
  "https://api.dolix.io/v1/webhook"
Response · 200 OK
{
  "ok": true,
  "deleted": true
}
POST/v1/webhook/test

Test the webhook

🔑 X-API-Keyfree

Sends a ping event to your URL right now and returns the delivery result.

Errors

401UnauthorizedMissing or invalid X-API-Key header.
403owner_api_key_requiredThe key has no mailbox owner (e.g. an extension key).
404webhook_not_configuredNo webhook URL is set.
405method_not_allowedPOST only.
429Rate limit exceededFrequency limit (rpm/rpd) or daily token cap exceeded. Anti-flood fires before tokens are spent.
500internal_errorInternal server error. The request did not complete; no tokens are charged.
Request · cURL
curl -X POST \
  -H "X-API-Key: $DOLIX_API_KEY" \
  "https://api.dolix.io/v1/webhook/test"
Response · 200 OK
{
  "ok": true,
  "delivery": {
    "ok": true,
    "status_code": 200,
    "error": null
  }
}

Blacklist

POST/v1/blacklist/report

Submit a blacklist report

🔑 X-API-Key5 tok.behind a flag

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

basestringCounterparty platform.bybit · mexc · tg_wallet
uid | card | phone | nick | linkrequiredstringExactly one typed subject identifier.
reviewrequiredstringReview text (required, goes through moderation).
idempotency_keystringIdempotency key (also accepted as the Idempotency-Key header).

Errors

400bad_requestInvalid or missing parameters. The body carries a specific error code.
401UnauthorizedMissing or invalid X-API-Key header.
402insufficient_tokensNot enough tokens for this call. See X-Tokens-Remaining header and the required field.
403forbiddenKey disabled, or the function is not permitted for this key / disabled by server policy.
404Not foundFeature disabled by a server flag (the route is invisible until the operator enables it).
500internal_errorInternal server error. The request did not complete; no tokens are charged.
Request · cURL
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"
Response · 200 OK
{
  "ok": true,
  "submission_id": "1042",
  "status": "pending",
  "idempotent": false
}