Authorization: Bearer <access_token> (401 when missing or expired) and X-API-Key (403 when missing or not matching).
Looks a key up in the Bre-B directory (mobile, e-mail, document, merchant code or handle) and returns its holder and linked account: everything POST /v1/transfer needs in destination, breBKey included. Send the key URL-encoded (@luisgomez → %40luisgomez). Only an ACTIVE or ACTIVE_BY_CLIENT key receives payments. In the sandbox, @notfound answers 404, @bloqueada comes back blocked and any other key resolves to a deterministic synthetic holder.
Authentication
Request
Path parameters
- The key, URL-encoded (
keystringrequired@acme→%40acme; useencodeURIComponent).Example: "@luisgomez"
Responses
200The key exists.
Body
- The key looked up.
keystringrequiredExample: "@luisgomez" - Key type.
keyTypestringrequiredValues
- DOCUMENTDocument number (GOU code
1). - PHONEMobile number (GOU code
2). - EMAILE-mail address (GOU code
3). - ALPHAAlphanumeric handle starting with
@(GOU code4). - MERCHANTMerchant code (GOU code
5).
- DOCUMENTDocument number (GOU code
- Key status: only an active key receives payments.
statusstringrequiredValues
- ACTIVEActive: receives payments.
- ACTIVE_BY_CLIENTActive, reactivated by its holder after a suspension: receives payments.
- BLOCKED_BY_ZULUBlocked by zulu: does not receive payments.
- BLOCKED_BY_CLIENTSuspended by its holder: does not receive payments.
- Holder: full name or company name.
fullNamestringrequiredExample: "Luis Gómez" - Holder type.
entityTypestringrequiredValues
- personNatural person (an individual).
- companyCompany (legal entity).
- Holder's document type.
documentTypestringrequiredExample: "CC" - Holder's document number.
documentNumberstringrequiredExample: "1020304050" - ACH code of the account's bank.
bankCodestringrequiredExample: "0007" - Account's bank.
bankNamestringrequiredExample: "Bancolombia" - Type of the linked account.
accountTypestringrequiredValues
- ahorrosSavings account.
- corrienteChecking account.
- Number of the linked account.
accountNumberstringrequiredExample: "0012345678" - Tax id (NIT) of the key's bank.
bankOrgIdstringrequiredExample: "890903938" - Clearing house.
bankCamerastringrequiredExample: "TFY"
401The access token is missing, invalid or expired.
403The `X-API-Key` is missing, invalid or does not match the token.
404The resource does not exist.
429Too many requests: wait the seconds in `Retry-After`.
500Internal error.
Errors
The exact causes this operation can answer, from the error catalog. Compare error and the HTTP status; the cause text is stable but meant for people.
| HTTP | error | cause | Description |
|---|---|---|---|
| 404 | NotFoundApiError | bre-b key "%s" not found | The key does not exist (in your workspace, or in the Bre-B directory when resolving it). Test data: @notfound. |
Also, like every authenticated endpoint: 401 Unauthorized, 403 Forbidden, 429 Too Many Requests (with Retry-After) and 500.
Examples
Active alphanumeric key200
Request
curl https://sandbox.zulu.com.co/v1/bre-b/keys/%40luisgomez \
-H "Authorization: Bearer $ZULU_ACCESS_TOKEN" \
-H "X-API-Key: $ZULU_API_KEY"Response 200
{
"key": "@luisgomez",
"keyType": "ALPHA",
"status": "ACTIVE",
"fullName": "Santiago Vargas",
"entityType": "person",
"documentType": "CC",
"documentNumber": "1383497382",
"bankCode": "0032",
"bankName": "Banco Caja Social Bcsc",
"accountType": "ahorros",
"accountNumber": "0009641366",
"bankOrgId": "860007335",
"bankCamera": "TFY"
}Blocked key (`@bloqueada`)200
Request
curl https://sandbox.zulu.com.co/v1/bre-b/keys/%40bloqueada \
-H "Authorization: Bearer $ZULU_ACCESS_TOKEN" \
-H "X-API-Key: $ZULU_API_KEY"Response 200
{
"key": "@bloqueada",
"keyType": "ALPHA",
"status": "BLOCKED_BY_ZULU",
"fullName": "Juan Martínez",
"entityType": "person",
"documentType": "CC",
"documentNumber": "1372501175",
"bankCode": "0013",
"bankName": "BBVA",
"accountType": "ahorros",
"accountNumber": "0044515786",
"bankOrgId": "860003020",
"bankCamera": "TFY"
}Unknown key (`@notfound`)404
Request
curl https://sandbox.zulu.com.co/v1/bre-b/keys/%40notfound \
-H "Authorization: Bearer $ZULU_ACCESS_TOKEN" \
-H "X-API-Key: $ZULU_API_KEY"Response 404
{
"error": "NotFoundApiError",
"cause": "bre-b key \"@notfound\" not found"
}