List API Key
https://api-sandbox.letpay.io/access-key
Get Access Key
This API endpoint is used to retrieve a list of public keys. The request is sent to https://api-sandbox.letpay.io/access-key
using an HTTP GET method.
Resquest Body
The request payload for this endpoint is of form-data type.
Response
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
Purpose
The purpose of this API endpoint is to provide access to the created API keys.
AUTHORIZATION | API Key |
---|---|
Key | X-Auth-Token |
Value | MY_ACCESS_TOKEN |
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"
}