v8

latestOpenAPI 3.0.0Apache 2.0raw.githubusercontent.com2025-10-165266542.4 MB
DigitalOcean-public.v2-new_Spaces Keys

List Spaces Access Keys

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

get/v2/spaces/keys

Query parameters

per_pageinteger

Number of items returned per page

pageinteger

Which 'page' of paginated results to return.

sortstring

The field to sort by.

sort_directionstring

The direction to sort by. Possible values are asc or desc.

namestring

The access key's name.

bucketstring

The bucket's name.

permissionstring

The permission of the access key. Possible values are read, readwrite, fullaccess, or an empty string.

Response

A JSON response containing a list of keys.

Example response

{
  "keys": [
    {
      "name": "my-access-key",
      "access_key": "DOACCESSKEYEXAMPLE",
      "grants": [
        {
          "bucket": "my-bucket",
          "permission": "read"
        }
      ],
      "created_at": "2018-07-19T15:04:16Z"
    }
  ],
  "links": {},
  "meta": {
    "total": 1
  }
}