Account
List API keys
GET
/api/merchants/api-keysEvery key on the account with its prefix preview, creation and last-used timestamps, and whether it is still active.
- Dashboard-only (merchant JWT).
- Only
key_previewis returned, never the plaintext key.last_used_atis the quickest way to spot a key nothing uses any more.
Authentication
Requires a dashboard session JWT in the Authorization: Bearer … header.
GET
/api/merchants/api-keyscurl "https://api.trevi.cash/api/merchants/api-keys" --header "Authorization: Bearer $TREVI_JWT"Was this page helpful?
