Skip to content

Compliance & Background Check

POST/v1/compliance/kyc

Creates a compliance screening for an individual: PEP, sanctions (CEIS and CNEP), federal administration expulsions (CEAF), TCU lists, slave labor, federal active debt (PGFN) and international sanctions. Processing is asynchronous: the API replies 202 with a screening_id, and you read the result with GET /v1/compliance/kyc/{id} or receive the compliance.kyc.completed event at the webhook registered in the dashboard.

Request body

cpfstringrequired
CPF, digits only (11), no punctuation.
descriptionstringrequired
Purpose of the lookup, 1 to 200 characters. Example: "Anti-money laundering".
birthdatestringrequired
Birth date of the individual, YYYY-MM-DD. The cadastral lookup is the same as POST /v1/cpf/live and checks CPF and birth date together; on a mismatch the screening ends as failed (CPF_NOT_FOUND). It is neither returned nor stored.

20 credits per completed screening. Failed screenings are not charged.

  • The birth date is required, as in POST /v1/cpf/live; missing or invalid returns 400. basic_info (name, cadastral status and birth date) comes from the BrazID base and, if the CPF is not in it yet, is fetched with the standard cadastral lookup at no extra cost. If the CPF does not exist or the birth date does not match, the screening ends as failed with the code CPF_NOT_FOUND and nothing is charged.
  • Privacy (LGPD): the full CPF, name and birth date are kept for 30 days. After that they are erased and the history keeps the masked CPF, the purpose, the risk and the findings. At the data subject's request the erasure is immediate.
  • The screening is not available on the Free plan: the response is 403 (PLAN_NOT_ALLOWED), sandbox included. Without a balance for 20 credits (and no overage), the response is 402 and the screening does not start. A malformed CPF returns 400 and an invalid check digit returns 422.
  • If a source is unavailable, the screening ends with status failed and nothing is charged. Just submit it again.
  • Idempotency (optional): send the Idempotency-Key header (1 to 255 characters) to retry the request without risk of duplicates. For 24 h, the same key with the same body returns the same 202 response (header Idempotent-Replayed: true), without creating another check or charging again; with a different body it returns 422 IDEMPOTENCY_KEY_REUSED; while the first request is still running, 409 IDEMPOTENCY_IN_PROGRESS. Error responses are not stored.
  • Available in production and in the sandbox. In the sandbox nothing is charged and the response uses the test data.

How a screening is processed

  1. You send the CPF, the birth date and the purpose

    The API validates the input, checks the balance and replies 202 with the screening_id and the status pending. Nothing is charged at this step.

  2. Sources are queried in parallel

    CGU (PEP, CEIS, CNEP and CEAF), TCU (unfit bidders, disqualified, irregular accounts and electoral), the slave labor registry, active debt (PGFN) and international sanctions are queried at the same time, in the background. Checks that only need the CPF start together with the registry lookup.

  3. You follow along

    Call GET /v1/compliance/kyc/{id} until the status is completed or failed, or wait for the event at your registered webhook.

  4. Charged once

    The 20 credits are debited only when every source answers. The history is kept in your account and can be read at any time, at no extra cost; personal data is erased after 30 days.

202 response fields

successboolean
Always true when the screening was accepted.
data.screening_idstring
Screening identifier (kyc_…). Use it to follow progress.
data.statusstring
pending on creation. Then completed or failed.
data.created_atstring
Creation date and time, ISO 8601 (UTC).
data.queryobject
What was queried: cpf (digits only) and description.
data.status_urlstring
Path to follow the screening. Also sent in the Location header.
credits_remainingnumber
Current balance. It does not include the 20 credits of this screening yet. Can be hidden in the dashboard.

Test CPFs in the sandbox

In the sandbox (api-sandbox.brazid.com) the screening uses these CPFs, with no credits charged. Any other CPF ends as failed with CPF_NOT_FOUND.

CPFBirth dateResult
529.982.247-251982-11-26No findings in any source (LOW).
111.444.777-351985-05-12Active debt of R$ 12,500.50 with PGFN (LOW).
168.995.350-091974-02-03Active debt of R$ 250,000.00 with PGFN (MEDIUM).
390.533.447-051969-09-30Politically exposed person (MEDIUM).
248.438.034-801978-12-01Listed in CEIS (HIGH).
935.411.347-801963-07-21Listed in the slave labor registry (HIGH).
453.178.287-911971-04-17Every source at once, with a slow 3 s response (HIGH).
862.883.667-571990-08-25One source is down: the screening ends as failed, with no charge.
417.258.136-611966-03-09Barred from public office and with irregular accounts at the TCU, including electoral implication (MEDIUM).
603.192.847-781980-10-14Listed in CNEP, expelled from the federal administration (CEAF) and a TCU unfit bidder (HIGH).

Webhook notice

  • When the screening finishes, we send the compliance.kyc.completed or compliance.kyc.failed event to the webhook registered in the dashboard (Webhook), with screening_id, status, risk_level and rules_version (if completed), error_code (if failed), credits_charged and the dates.
  • The event carries no personal data (not even the CPF). To read the result, call GET /v1/compliance/kyc/{id}.
  • Same rules as the other webhooks: signature in the x-brazid-signature header, up to 3 attempts (right away, +5 min and +1 h) and history under "Latest events sent". With no webhook registered, nothing is sent: follow along with the GET.

cURL

1curl -X POST https://api.brazid.com/v1/compliance/kyc \2 -H "x-api-key: $BRAZID_API_KEY" \3 -H "Content-Type: application/json" \4 -d '{"cpf":"11144477735","description":"Prevenção à lavagem de dinheiro","birthdate":"1985-05-12"}'

202 Accepted

1{2 "success": true,3 "data": {4 "screening_id": "kyc_8f9a2b1c4d5e6f70",5 "status": "pending",6 "created_at": "2026-10-28T22:30:00.000Z",7 "query": {8 "cpf": "11144477735",9 "description": "Prevenção à lavagem de dinheiro"10 },11 "status_url": "/v1/compliance/kyc/kyc_8f9a2b1c4d5e6f70"12 }13}

webhook · compliance.kyc.completed

1{2 "id": "evt_a41f9c0e7b2d58c3e6f10a94",3 "type": "compliance.kyc.completed",4 "screening_id": "kyc_8f9a2b1c4d5e6f70",5 "status": "completed",6 "risk_level": "LOW",7 "rules_version": 0,8 "credits_charged": 20,9 "created_at": "2026-10-28T22:30:00.000Z",10 "completed_at": "2026-10-28T22:30:04.000Z"11}