Skip to main content
GET
/
api-keys
List API keys
curl --request GET \
  --url http://localhost:5001/api-keys \
  --header 'X-blnk-key: <api-key>'
Use blnk.ApiKeys.list to list API keys for an owner.
blnk.ApiKeys.list
const response = await blnk.ApiKeys.list({ owner: 'merchant_a' });
FieldDescription
options.ownerOwner whose keys to return. Required when authenticating with the master key.

Response shape

200 OK
[
  {
    "api_key_id": "key_abc123def456",
    "name": "Service Account",
    "owner_id": "owner_id",
    "scopes": ["ledgers:read", "balances:write"],
    "expires_at": "2026-03-11T00:00:00Z",
    "created_at": "2024-01-15T10:30:00Z",
    "last_used_at": "2024-01-20T14:30:00Z"
  }
]
response.data is an array of API key records without the plaintext key value.

How API keys work

Scopes, the master key, and the auth model.

List API keys

HTTP request and response schema.

Need help?

We are very happy to help you make the most of Blnk, regardless of whether it is your first time or you are switching from another tool. To ask questions or discuss issues, please contact us or join our Discord community.