List API Key
GET https://api-sandbox.letpay.io/access-key
This API endpoint is used to retrieve a list of public access keys.
Authorization
Header | Value |
---|---|
X-Auth-Token | MY_ACCESS_TOKEN |
Request Body
None.
Response Body
The response will contain an array of objects with the following keys:
api_key
: The access keycreated_at
: The timestamp when the access key was createdlast_access
: The timestamp of the last access
Example Request
- 200 - Success
- 401 - Unauthorized
Example Request
200 - Authenticated
curl --location 'https://api-sandbox.letpay.io/access-key' \
--header 'X-Auth-Token: MY_ACCESS_TOKEN'
Example Response
Header
Content-Type: application/json
Body
[
{
"api_key": "MY_API_KEY",
"created_at": "2023-06-15T18:29:12.227+0000",
"last_access": "2023-06-15T18:38:12.713+0000"
}
]
Example Request
401 - Unauthorized
curl --location 'https://api-sandbox.letpay.io/access-key' \
--header 'X-Auth-Token: INVALID_ACCESS_TOKEN'
Example Response
Header
Content-Type: application/json
Body
{
"timestamp": "2024-01-15T19:23:27.248+0000",
"status": 401,
"error": "Unauthorized",
"message": "Access Denied",
"path": "/access-key"
}