Skip to content

Follow a batch

GET/v1/cpf/batch/{id}

Returns the batch progress and, once it finishes, the paginated results. Only the account that created the batch can read it.

Parameters

idstringrequired
In the path. The batch_id returned by POST /v1/cpf/batch.
pagenumber
In the query. Results page, starting at 1. Default: 1.
per_pagenumber
In the query. Items per page, 1 to 500. Default: 100.
statusstring
In the query. Filters by found, not_found, invalid, error or insufficient_credits.

Free.

  • Results only appear when the batch finishes (status completed). Before that, the response carries progress only.
  • Invalid parameter values answer 400 with the code INVALID_QUERY. A missing or expired batch answers 404 with BATCH_NOT_FOUND.

Items in results

indexnumber
Position of the item in the list you sent, starting at 0.
cpfstring
Sanitized CPF.
statusstring
Item outcome (table below).
codenumber
HTTP code equivalent for the item.
messagestring
Explanation, when the item was not found.
dataobject
CPF object, present when the status is found.

Status of each item

found200Found. Charges 1 credit.
not_found404Valid CPF but no record. Not charged.
invalid400 / 422Invalid format or check digit. Not charged.
insufficient_credits402The balance ran out before this item. Not charged.
error503Temporary provider failure. Not charged. Resend this item.

cURL

1curl https://api.brazid.com/v1/cpf/batch/0c1e7f3a-5b2d-4e8a-9c41-6d3f0a8b7e12?per_page=100 \2 -H "x-api-key: $BRAZID_API_KEY"

200 OK

1{2 "success": true,3 "batch_id": "0c1e7f3a-5b2d-4e8a-9c41-6d3f0a8b7e12",4 "status": "completed",5 "total": 2,6 "processed": 2,7 "progress_percent": 100,8 "summary": {9 "found": 1,10 "not_found": 1,11 "invalid": 0,12 "errors": 0,13 "insufficient_credits": 014 },15 "created_at": "2026-10-16T14:02:11.000Z",16 "completed_at": "2026-10-16T14:02:13.000Z",17 "results": [18 {19 "index": 0,20 "cpf": "52998224725",21 "status": "found",22 "code": 200,23 "data": {24 "cpf": "52998224725",25 "name": "MARIA SOUZA LIMA",26 "birthdate": "26/11/1982",27 "day": 26,28 "month": 11,29 "year": 1982,30 "situation": "REGULAR",31 "social_name": null,32 "registration_date": "12/03/2004"33 }34 },35 {36 "index": 1,37 "cpf": "11144477735",38 "status": "not_found",39 "code": 404,40 "message": "CPF not found"41 }42 ],43 "pagination": {44 "page": 1,45 "per_page": 100,46 "total_results": 2,47 "total_pages": 148 }49}