Retrieve API Key
Retrieve metadata about an existing API key.
GET
https://api.uprails.com/api-keys/:key_idRetrieves the metadata for an API key by its ID. Note that the actual key value is never returned - only the prefix and other metadata.
Path Parameters
| Parameter | Type | Description |
|---|---|---|
key_id | string | Required. The ID of the API key. |
Request Example
curl https://api.uprails.com/api-keys/key_1234567890abcdef \
-H "api-key: snd_YOUR_API_KEY"Response
200OK
{
"key_id": "key_1234567890abcdef",
"merchant_id": "mer_xyz789",
"name": "Production API Key",
"prefix": "snd_",
"type": "secret",
"permissions": [
"payments:write",
"refunds:write"
],
"created": "2024-01-15T10:00:00Z",
"expires_at": null,
"last_used_at": "2024-01-16T14:30:00Z"
}