Skip to main content
GET
/
api
/
v1
/
api-keys
List API keys
curl --request GET \
  --url https://api-beta.pepay.io/api/v1/api-keys \
  --header 'Authorization: Bearer <token>'
[
  {
    "key_id": "550e8400-e29b-41d4-a716-446655440000",
    "name": "Production API Key",
    "scope": "merchant",
    "expires_at": "2025-12-31T23:59:59Z",
    "status": "active",
    "last_used_at": "2024-03-15T14:30:00Z",
    "created_at": "2024-03-01T12:00:00Z"
  },
  {
    "key_id": "660e8400-e29b-41d4-a716-446655440001",
    "name": "Development API Key",
    "scope": "commerce",
    "expires_at": null,
    "status": "active",
    "last_used_at": null,
    "created_at": "2024-03-10T15:30:00Z"
  }
]

Authorizations

Authorization
string
header
required

JWT token for wallet authentication

Query Parameters

scope
enum<string>

Filter by API key scope.

Available options:
merchant,
commerce

Response

List of API keys

key_id
string<uuid>
Example:

"550e8400-e29b-41d4-a716-446655440000"

name
string
Example:

"Production API Key"

scope
enum<string>
Available options:
merchant,
commerce
expires_at
string<date-time> | null
Example:

"2025-12-31T23:59:59Z"

status
enum<string>
Available options:
active,
revoked,
suspended
last_used_at
string<date-time> | null
Example:

"2024-03-15T14:30:00Z"

created_at
string<date-time>
Example:

"2024-03-01T12:00:00Z"

revoked_at
string<date-time> | null
revoked_reason
string | null