swap.quickswap.v1.QuickSwapBrokerService
ListKeys
ListKeys lists the broker's API keys, without secrets, a page at a time. Errors: - NOT_FOUND: BROKER_NOT_FOUND. - INVALID_ARGUMENT: a page_token from another broker or malformed.
Request
curl --request POST \ \
--url 'https://api.testnet.polyester.com/swap.quickswap.v1.QuickSwapBrokerService/ListKeys' \
--header 'Content-Type: application/json' \
--header 'Connect-Protocol-Version: 1' \
--data '{
"broker": "value",
"limit": 100,
"pageToken": "eyJvZmZzZXQiOjEwMH0"
}'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"
}swap.quickswap.v1.ListKeysRequestswap.quickswap.v1.ListKeysResponseBroker name. A broker API key may name only its own broker.
Maximum number of keys to return; 0 means 100, at most 200.
Opaque keyset cursor from a previous next_page_token, exclusive, bound to the broker and ordered newest first by creation time, then key ID. Empty for the first page.
Public key ID: the part of the token between "qsk_" and the second "_".
Label given at creation; empty for a key created by rotation.
When the key was created.
Public account ID of the member who created the key; 0 for a key that a key created by rotating itself.
Key this key replaced by rotation; empty otherwise.
End of the key's rotation overlap; the key stops working then. Unset while the key works until revoked.
When the key was revoked; unset while not revoked.
Whether the key works now: neither revoked nor past expires_at.
Cursor of the next page. Empty when no more results exist.
| 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. |