API Keys
API ReferenceApi KeysRetrieve
Retrieve API Key
Retrieve details of an existing API key.
GET /api_keys/:merchant_id/:key_id
Path Parameters
| Parameter | Type | Description |
|---|---|---|
merchant_id | string | Required. Your merchant ID. |
key_id | string | Required. The ID of the API key. |
Request Example
curl 'https://api.v2.paychtec.com/api_keys/mer_123456/key_1234567890' \ -H "api-key: admin_YOUR_ADMIN_KEY"Response
{
"key_id": "key_1234567890",
"merchant_id": "mer_123456",
"name": "Production Key",
"description": "Main production API key",
"prefix": "snd_abc***",
"created": "2024-01-22T10:00:00Z",
"expiration": null
}