List Keys

Overview

This endpoint allows you to retrieve a list of all Bre-B key associated with your customers within the Passport API. The response includes key value, type, status, and associated entity details.

Endpoint Details

Definition

Description

Endpoint

https://api.paas.sandbox.co.passportfintech.com/v1/keys

Method

GET

Headers

Content-Type: application/json, Authorization

Authentication

Access Token (Bearer Token)

Query Parameters

Pagination Parameters

Parameter

Description

page_params.page_size

Number of records to return per page.

page_params.page_number

Page number to retrieve.

page_params.first_request_timestamp.seconds

UTC seconds since Unix epoch (1970-01-01T00:00:00Z). Must be between 0001-01-01T00:00:00Z and 9999-12-31T23:59:59Z (inclusive).

page_params.first_request_timestamp.nanos

Nanosecond fraction (0 to 999,999,999). Must be a non-negative value and represents fractional seconds at nanosecond resolution.

Ordering Parameters

Parameter

Description

order_params.order_key

Field used to sort the results.

order_params.order_direction

Sort direction. Allowed values: ORDER_DIRECTION_ENUM_UNSPECIFIED, ASC, DESC.

Key Filters

Parameter

Description

customer_id

Filters by the customer identifier associated with the key.

account_id

Filters by the account identifier associated with the key.

key_type

Filters by key type.

key_id

Filters by the unique key identifier.

status

Filters by key status (for example, active or suspended)

key_value

Filters by the key value.

Request Body

  • No request body

Example Request

curl --location --request GET 'https://api.paas.sandbox.co.passportfintech.com/v1/keys' \ --header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \

Response Body

  • HTTP Status Code: 200 OK.

  • The response will contain the list of keys, along with its unique identifiers and details.

Example of Response

{ "keys": [ { "status": "ACTIVE", "key": { "key_type": "BCODE", "key_value": "0016027228" }, "account_id": "6c23f053-0e1a-46b4-b902-97ba47e351bc", "created_at": "2025-10-09T10:42:39.710Z", "updated_at": "2025-10-09T10:42:39.710Z", "id": "3184cbfd-73bd-4910-bd03-f8461e724247" } ], "pagination_info": { "first_request_timestamp": "2025-10-09T18:02:18.706Z", "current_page": 1, "total_pages": 1, "total_elements": 1 } }

Common Errors and Handling

HTTP Status Code

Meaning

Description

400 Bad Request

Invalid Data

Required fields are missing or contain incorrect values.

401 Unauthorized

Expired Token

The access token is invalid or has expired.

403 Forbidden

Access Denied

The request is not authorized to list the Keys.

500 Internal Server Error

Server Error

An unexpected error occurred sending the request.