QuickSwapBrokerService
List API keys
List the broker's API keys without secrets.
Request
curl --request GET \ \ --url 'https://api.testnet.polyester.com/v1/quickswap/brokers/value/keys?limit=100' \ --header 'Accept: */*' \ --header 'X-API-KEY-ID: YOUR_API_KEY_ID' \ --header 'X-API-TIMESTAMP: YOUR_API_TIMESTAMP' \ --header 'X-API-SIGNATURE: YOUR_API_SIGNATURE'
Responses
{
"keys": [
{
"active": false,
"createdAt": "2025-01-01T00:00:00Z",
"createdByAccountId": "7563897446546",
"expiresAt": "2025-01-01T00:00:00Z",
"keyId": "3f9c2a7b5d1e4f8a9b0c6d2e7f1a3b5c",
"label": "Name Of My Subaccount",
"revokedAt": "2025-01-01T00:00:00Z",
"rotatedFrom": "value"
}
],
"nextPageToken": "eyJvZmZzZXQiOjIwMH0"
}Broker name.
Maximum number of keys to return; 0 means 100, at most 200.
Opaque keyset cursor from a previous nextPageToken, exclusive, bound to the broker and ordered newest first by creation time, then key ID. Omit for the first page.
Whether the key works now: neither revoked nor past expires_at.
falseWhen the key was created.
2025-01-01T00:00:00ZPublic account ID of the member who created the key; 0 for a key that a key created by rotating itself.
7563897446546End of the key's rotation overlap; the key stops working then. Unset while the key works until revoked.
2025-01-01T00:00:00ZPublic key ID: the part of the token between "qsk_" and the second "_".
3f9c2a7b5d1e4f8a9b0c6d2e7f1a3b5cLabel given at creation; empty for a key created by rotation.
Name Of My SubaccountWhen the key was revoked; unset while not revoked.
2025-01-01T00:00:00ZKey this key replaced by rotation; empty otherwise.
valueCursor of the next page. Empty when no more results exist.
eyJvZmZzZXQiOjIwMH0| Key | HTTP status | Connect code | Error | When |
|---|---|---|---|---|
| unauthenticated | 401 | unauthenticated | Unauthenticated | Authentication required. |
| permission-denied | 403 | permission_denied | Permission Denied | Permission denied. |
| invalid-argument | 400 | invalid_argument | Invalid Argument | Invalid argument. |
| not-found | 404 | not_found | Not Found | Not found. |
| unavailable | 503 | unavailable | Unavailable | Service unavailable. |