---
title: "List Spaces Access Keys"
method: GET
path: "/v2/spaces/keys"
tags: ["DigitalOcean-public.v2-new_Spaces Keys"]
---

# List Spaces Access Keys

`GET /v2/spaces/keys`

To list Spaces Access Key, send a GET request to `/v2/spaces/keys`. Sort parameter must be used with Sort Direction.

## Query parameters

- `per_page` integer
- `page` integer
- `sort` string
- `sort_direction` string
- `name` string
- `bucket` string
- `permission` string

## Response `200`

A JSON response containing a list of keys.

- object
  - `keys` Key[]
    - `name` string — The access key's name.
    - `grants` Grant[] — The list of permissions for the access key.
      - `bucket` string, required — The name of the bucket.
      - `permission` string, required — The permission to grant to the user. Possible values are `read`, `readwrite`, `fullaccess`, or an empty string.
    - `access_key` string — The Access Key ID used to access a bucket.
    - `created_at` string, date-time — The date and time the key was created.
  - `links` PageLinks
    - `pages` union
      - ForwardLinks
        - `last` string — URI of the last page of the results.
        - `next` string — URI of the next page of the results.
      - BackwardLinks
        - `first` string — URI of the first page of the results.
        - `prev` string — URI of the previous page of the results.
      - unknown
  - `meta` object, required — Information about the response itself.
    - `total` integer, required — Number of objects returned by the request.

## Other responses

- `401` — Authentication failed due to invalid credentials.
- `429` — The API rate limit has been exceeded.
- `500` — There was a server error.
- `default` — There was an unexpected error.

---

[API](https://skmtc.net/digitalocean/apis/digitalocean-api.md) · [All operations](https://skmtc.net/digitalocean/apis/digitalocean-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/digitalocean/digitalocean-api/versions/cb3bf9b21459/schema)
