list()
List API keys
Returns API keys created by the authenticated account. Secret key values are returned only where the underlying account policy permits it.
Signature
client.apiKeys.list(options: APIKeysListOptions = {}): Promise<APIKeysListResponse>Parameters
| Name | Type | Requirement | Description |
|---|---|---|---|
limit | number | Optional | Number of results to return per page. |
offset | number | Optional | The initial index from which to return the results. |
acceptLanguage | string | Optional | Preferred language for human-readable API errors. Supported languages: en, ru, uk, de, it, fr, es, zh-hans, ja. Regional language tags and quality weights are accepted; unsupported or omitted values use English. |
Example
const result = await client.apiKeys.list();Returns
PaginatedAPIKeyListListThe operation completed successfully.
typePaginatedAPIKeyListList4fields
countnumbernextstringpreviousstringresultsAPIKeyList[]typeAPIKeyList7fields
idstringtitlestringprefixstringkeystringallowed_ipsstring[]createdstringupdatedstringThrows
ApiErrorNormalized API, transport, and response processing failure.
kind: "validation"The request arguments or business rules are invalid.kind: "authentication"Authentication credentials are missing, expired, or invalid.kind: "permission"The authenticated account cannot perform this operation.kind: "network"The request could not reach ProxyRequest.kind: "unexpected"The response could not be decoded or did not match the SDK contract.
Advanced variants
client.apiKeys.listWithResponse(options): Promise<ApiResponse<APIKeysListResponse>>Returns response status, headers, ETag and idempotency metadata with the decoded data.
Signature
client.api_keys.list(*, limit: int | Unset=UNSET, offset: int | Unset=UNSET, accept_language: str | Unset=UNSET) -> PaginatedAPIKeyListawait async_client.api_keys.list(*, limit: int | Unset=UNSET, offset: int | Unset=UNSET, accept_language: str | Unset=UNSET) -> PaginatedAPIKeyListParameters
| Name | Type | Requirement | Description |
|---|---|---|---|
limit | int | Optional | Number of results to return per page. |
offset | int | Optional | The initial index from which to return the results. |
accept_language | str | Optional | Preferred language for human-readable API errors. Supported languages: en, ru, uk, de, it, fr, es, zh-hans, ja. Regional language tags and quality weights are accepted; unsupported or omitted values use English. |
Example
result = client.api_keys.list()Async example
result = await async_client.api_keys.list()Returns
PaginatedAPIKeyListThe operation completed successfully.
classPaginatedAPIKeyList4fields
countintresultslist[APIKeyList]classAPIKeyList7fields
titlestrprefixstrallowed_ipslist[str]createddatetime.datetimeupdateddatetime.datetimeidstrkeystrnext_None | strpreviousNone | strThrows
ApiErrorNormalized API, transport, and response processing failure.
ErrorKind.AUTHENTICATIONAuthentication credentials are missing, expired, or invalid.ErrorKind.PERMISSIONThe authenticated account cannot perform this operation.ErrorKind.VALIDATIONThe request arguments or business rules are invalid.ErrorKind.NETWORKThe request could not reach ProxyRequest.ErrorKind.UNEXPECTEDThe response could not be decoded or did not match the SDK contract.
Advanced variants
client.api_keys.list_with_response(*, limit: int | Unset=UNSET, offset: int | Unset=UNSET, accept_language: str | Unset=UNSET) -> ApiResponse[PaginatedAPIKeyList]Returns response status, headers, ETag and idempotency metadata with the decoded data.
Signature
$client->apiKeys()->list($limit = null, $offset = null, $acceptLanguage = null, string $contentType = self::contentTypes['list'][0])Parameters
| Name | Type | Requirement | Description |
|---|---|---|---|
limit | int | Optional | Number of results to return per page. |
offset | int | Optional | The initial index from which to return the results. |
acceptLanguage | string | Optional | Preferred language for human-readable API errors. Supported languages: en, ru, uk, de, it, fr, es, zh-hans, ja. Regional language tags and quality weights are accepted; unsupported or omitted values use English. |
Example
$result = $client->apiKeys()->list();Returns
PaginatedAPIKeyListThe operation completed successfully.
classPaginatedAPIKeyList4fields
countintnextstringpreviousstringresults[APIKeyList[]](APIKeyList.md)classAPIKeyList7fields
idstringtitlestringprefixstringkeystringallowedIpsarray<string>createdDateTimeupdatedDateTimeThrows
ApiExceptionNormalized API, transport, and response processing failure.
ErrorKind::AuthenticationAuthentication credentials are missing, expired, or invalid.ErrorKind::PermissionThe authenticated account cannot perform this operation.ErrorKind::ValidationThe request arguments or business rules are invalid.ErrorKind::NetworkThe request could not reach ProxyRequest.ErrorKind::UnexpectedThe response could not be decoded or did not match the SDK contract.
InvalidArgumentExceptionA required argument is missing or violates a local SDK constraint.
local validationThe request was rejected before it was sent.
Advanced variants
$client->apiKeys()->listWithResponse($limit = null, $offset = null, $acceptLanguage = null, string $contentType = self::contentTypes['list'][0]): \ProxyRequest\ApiResponseReturns an ApiResponse with decoded data and HTTP metadata.
$client->apiKeys()->listWithHttpInfo($limit = null, $offset = null, $acceptLanguage = null, string $contentType = self::contentTypes['list'][0])Returns the OpenAPI Generator response tuple.
$client->apiKeys()->listAsync($limit = null, $offset = null, $acceptLanguage = null, string $contentType = self::contentTypes['list'][0])Returns a Guzzle promise for the decoded result.
$client->apiKeys()->listAsyncWithHttpInfo($limit = null, $offset = null, $acceptLanguage = null, string $contentType = self::contentTypes['list'][0])Returns a Guzzle promise for the response tuple.
$client->apiKeys()->listRequest($limit = null, $offset = null, $acceptLanguage = null, string $contentType = self::contentTypes['list'][0])Builds the PSR-7 request without sending it.