dots.v2.spaces.keys.get()
Generated on 5 Nov 2026
from DoTs version
v1.23.0
Usage
client.v2.spaces.keys.get(requestConfiguration?: RequestConfiguration<KeysRequestBuilderGetQueryParameters>): Promise<undefined | KeysGetResponse>Description
To list Spaces Access Key, send a GET request to /v2/spaces/keys. Sort parameter must be used with Sort Direction.
Parameters
perPageinteger optionalExample:
2Number of items returned per page
pageinteger optionalExample:
1Which 'page' of paginated results to return.
sortstring optionalExample:
created_atThe field to sort by.
sortDirectionstring optionalExample:
descThe direction to sort by. Possible values are
ascordesc.namestring optionalExample:
my-access-keyThe access key's name.
bucketstring optionalExample:
my-bucketThe bucket's name.
permissionstring optionalExample:
readThe permission of the access key. Possible values are
read,readwrite,fullaccess, or an empty string.
Request Sample
Pagination
This method returns paginated results. The response includes a links.pages object with URLs for navigating between pages. To retrieve the next page, parse the next URL and pass the page query parameter:
let response = await client.v2.spaces.keys.get();
let pages = response?.links?.pages;
while (pages && "next" in pages && typeof pages.next === "string") {
const page = Number(new URL(pages.next).searchParams.get("page"));
response = await client.v2.spaces.keys.get({
queryParameters: {
page,
},
});
pages = response?.links?.pages;
}Response Example
More Information
See /v2/spaces/keys in the API reference for additional detail on responses, headers, parameters, and more.