# List bucket keys (/docs/management-api/endpoints/buckets/get-buckets-by-bucket-id-keys)

> For the complete Prisma documentation index, see [llms.txt](https://www.prisma.io/docs/llms.txt). A markdown version of any docs page is available by appending `.md` to its URL.

Returns all access keys for the given bucket.

Location: Management API > Endpoints > Buckets > List bucket keys

Returns all access keys for the given bucket.

## API reference

### List bucket keys

`GET /v1/buckets/{bucketId}/keys`

Returns all access keys for the given bucket.

#### Parameters

- `bucketId` (path, string, required)
- `cursor` (query, string | null, optional): Cursor for pagination
- `limit` (query, integer, optional): Page size, 1-100

#### Responses

- `200`: Returns the list of bucket keys.
- `401`: Missing or invalid authorization token.
- `404`: Bucket with the given ID was not found.

## Related pages

- [`Create bucket`](https://www.prisma.io/docs/management-api/endpoints/buckets/post-buckets): Creates a new object-store bucket in the specified project.
- [`Create bucket key`](https://www.prisma.io/docs/management-api/endpoints/buckets/post-buckets-by-bucket-id-keys): Creates a new access key for the given bucket. The `secretAccessKey` field is returned exactly once in this response and is never stored — copy it immediately.
- [`Delete bucket`](https://www.prisma.io/docs/management-api/endpoints/buckets/delete-buckets-by-bucket-id): Permanently deletes the bucket with the given ID, all objects stored in it, and all its access keys. This action cannot be undone.
- [`Delete bucket key`](https://www.prisma.io/docs/management-api/endpoints/buckets/delete-buckets-by-bucket-id-keys-by-key-id): Revokes and deletes the bucket key with the given ID.
- [`Get bucket`](https://www.prisma.io/docs/management-api/endpoints/buckets/get-buckets-by-bucket-id): Returns the bucket with the given ID.