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.
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.
| Mode | Key | What it does |
|---|---|---|
| Test | ck_test_… | Returns realistic sample answers. Nothing is shared or saved to your live data. |
| Live | ck_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
| Field | Description |
|---|---|
customer_id | Your own ID for the customer. Required. |
customer_email | The 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. |
amount | The amount in the smallest unit, e.g. kobo. For crypto, also send currency (e.g. USDT). Amounts are never converted. |
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=185000000Response
The decision field is what matters:
ALLOWlooks fine. Nothing unusual. Go ahead as normal.REVIEWsuspicious. Something looks off.reasonssays why in plain words.
REVIEW is advice: your own system decides whether to pay, hold or block, then you report the outcome.{
"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
| outcome | When to send it |
|---|---|
paid | You sent the payout. |
blocked | You stopped the payout but haven't confirmed fraud. |
fraud | You confirmed it was fraud. The recipient is shared with the network. |
curl https://api.confessed.ai/v1/checks/chk_7Q4M9X/outcome \
-u ck_test_4eC39HqLyjWDarjtT1zdp7dc: \
-d outcome=fraudYou 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
| Event | Sent when |
|---|---|
check.suspicious | A check comes back REVIEW. |
outcome.recorded | An outcome is reported, by API or from the dashboard. |
network.match | One of your recipients is confirmed as fraud by another business. |
{
"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.
$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.
{
"error": {
"type": "invalid_request",
"message": "recipient[account_number] is required."
}
}| Status | Meaning | What to do |
|---|---|---|
400 | A field is missing or wrong. | Read message, fix the request. |
401 | The API key is missing or wrong. | Check the key and its mode. |
404 | That check ID doesn't exist. | Check you're using the right mode's key. |
429 | Too many requests, or out of checks for the month. | Wait and retry, or upgrade your plan. |
5xx | Something went wrong on our side. | Retry. Don't hold a payout for longer than you'd normally wait. |