> For the complete documentation index, see [llms.txt](https://magicpay.gitbook.io/magicpay-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://magicpay.gitbook.io/magicpay-documentation/api-key/get-api-key-by-id.md).

# Get API Key By Id

## 14.2 Get API Key By Id

**Request**

| Method | URL                       |
| ------ | ------------------------- |
| GET    | /api\_keys/{api\_key\_id} |

**Response**

| Status | Response                                                                                                                                                                                                                                                                                                                                                                                      |
| ------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 200    | <p>{</p><p>"secret\_key": "magic-uHyomPzAmva2xls9tVZ89Jop3h1k6\_sJh7mrEZGUqnM",</p><p>"api\_key": "magic-W-O9vzYULk3I6eQo3kD0nHofmELmvCLgJqI1cWwQimY",</p><p>"merchant\_id": 1,</p><p>"createdDate": "2024-01-29T08:35:24.947598",</p><p>"updatedDate": "2024-01-29T08:35:24.947598",</p><p>"is\_active": true,</p><p>"name": "deneme",</p><p>"id": 70,</p><p>"deletedDate": null</p><p>}</p> |
| 403    |                                                                                                                                                                                                                                                                                                                                                                                               |
| 400    |                                                                                                                                                                                                                                                                                                                                                                                               |
| 401    |                                                                                                                                                                                                                                                                                                                                                                                               |
| 401    |                                                                                                                                                                                                                                                                                                                                                                                               |
| 500    |                                                                                                                                                                                                                                                                                                                                                                                               |

<br>
