Confessed API

Check a payout before you send it, then tell us what happened. Two calls, plus optional webhooks.

Getting started

Every request goes to https://api.confessed.ai/v1 over HTTPS. Send your secret key as the username with HTTP Basic auth and leave the password empty.

API keys

Find your keys in the dashboard under Developers. Keys start with ck_test_ or ck_live_. Keep them on your server and never put them in an app or web page.

Authenticate
curl https://api.confessed.ai/v1/checks \
  -u ck_test_4eC39HqLyjWDarjtT1zdp7dc:

Test and live mode

Test keys never touch real customer data or the shared network. Use them to build and try every response. Switch to your live key once your business is verified.

ModeKeyWhat it does
Testck_test_…Returns realistic sample answers. Nothing is shared or saved to your live data.
Liveck_live_…Checks real payouts against your history and the shared network.

Run a check

Call this right before you send a payout. You get an answer in well under a second.

Request

POST /v1/checks

FieldDescription
customer_idYour own ID for the customer. Required.
customer_emailThe customer's email address. Optional, helps match history.
recipient[account_number]
recipient[bank_code]
For bank payouts: the account the money is going to.
recipient[address]
recipient[network]
For crypto payouts: the wallet address and network, e.g. TRC20.
amountThe amount in the smallest unit, e.g. kobo. For crypto, also send currency (e.g. USDT). Amounts are never converted.
Bank payout
curl https://api.confessed.ai/v1/checks \
  -u ck_test_4eC39HqLyjWDarjtT1zdp7dc: \
  -d customer_id=cus_8821 \
  -d customer_email=ifeoma.n@yahoo.com \
  -d recipient[account_number]=0123456789 \
  -d recipient[bank_code]=058 \
  -d amount=185000000

Response

The decision field is what matters:

  • ALLOW looks fine. Nothing unusual. Go ahead as normal.
  • REVIEW suspicious. Something looks off. reasons says why in plain words.
You stay in control. Confessed never holds or blocks money. A REVIEW is advice: your own system decides whether to pay, hold or block, then you report the outcome.
200 OK
{
  "check_id": "chk_7Q4M9X",
  "customer_id": "cus_8821",
  "score": 87,
  "decision": "REVIEW",
  "reasons": [
    "9.4x this customer's usual amount.",
    "First payout to this recipient.",
    "Confirmed as fraud by another business on Confessed."
  ],
  "recipient": {
    "type": "bank_account",
    "account_number": "0123456789",
    "bank_code": "058",
    "bank_name": "GTBank"
  },
  "amount": { "value": 185000000, "currency": "NGN" }
}

score runs from 0 to 100 and is there if you want to set your own threshold. Most teams only use decision.

Report an outcome

Once your system has decided, tell us what happened. This keeps your history accurate and, for confirmed fraud, warns every other business on the network.

POST /v1/checks/{check_id}/outcome

outcomeWhen to send it
paidYou sent the payout.
blockedYou stopped the payout but haven't confirmed fraud.
fraudYou confirmed it was fraud. The recipient is shared with the network.
Report fraud
curl https://api.confessed.ai/v1/checks/chk_7Q4M9X/outcome \
  -u ck_test_4eC39HqLyjWDarjtT1zdp7dc: \
  -d outcome=fraud

You can change an outcome later by sending it again. The latest one counts.

Webhooks

Add an endpoint under Developers → Webhooks and we'll send a POST with JSON when something happens.

Events

EventSent when
check.suspiciousA check comes back REVIEW.
outcome.recordedAn outcome is reported, by API or from the dashboard.
network.matchOne of your recipients is confirmed as fraud by another business.
check.suspicious
{
  "id": "evt_3N8KQ2",
  "type": "check.suspicious",
  "created": "2026-11-20T09:14:22Z",
  "data": {
    "check_id": "chk_7Q4M9X",
    "customer_id": "cus_8821",
    "decision": "REVIEW",
    "reasons": ["First payout to this recipient."],
    "amount": { "value": 185000000, "currency": "NGN" }
  }
}

Verify the signature

Each request carries a Confessed-Signature header: an HMAC-SHA256 of the raw body, signed with your endpoint's secret (whsec_…). Check it before you trust the event.

PHP
$payload  = file_get_contents('php://input');
$header   = $_SERVER['HTTP_CONFESSED_SIGNATURE'] ?? '';
$expected = hash_hmac('sha256', $payload, getenv('CONFESSED_WEBHOOK_SECRET'));

if (!hash_equals($expected, $header)) {
    http_response_code(400); // not from Confessed
    exit;
}
http_response_code(200);

Retries

Reply with any 2xx within 10 seconds. If you don't, we retry about every 4 minutes, up to 5 times. Every attempt shows under Developers → Webhook history, where you can resend it.

Errors

Errors use normal HTTP status codes and a short JSON body you can show in your logs.

400 Bad Request
{
  "error": {
    "type": "invalid_request",
    "message": "recipient[account_number] is required."
  }
}
StatusMeaningWhat to do
400A field is missing or wrong.Read message, fix the request.
401The API key is missing or wrong.Check the key and its mode.
404That check ID doesn't exist.Check you're using the right mode's key.
429Too many requests, or out of checks for the month.Wait and retry, or upgrade your plan.
5xxSomething went wrong on our side.Retry. Don't hold a payout for longer than you'd normally wait.