---
title: "/buckets"
url: "https://developers.rest.rodeo/apis/storage/versions/8415f51a-292b-4046-b795-bc13ea7a48cf/operations/listBuckets"
---

> Full API specification: https://developers.rest.rodeo/apis/storage/versions/8415f51a-292b-4046-b795-bc13ea7a48cf.md

# /buckets

`GET` `/buckets`

Operation ID: `listBuckets`

Lists every bucket.

## Responses

- `200` - All buckets
- `401` - Missing or invalid bearer token
- `405` - Method not allowed

## OpenAPI definition

```yaml
openapi: 3.0.3
info:
  title: Storage API
  version: 1.0.0
servers:
  - url: https://api.rest.rodeo/storage/api/v1
    description: Production
paths:
  /buckets:
    get:
      operationId: listBuckets
      summary: /buckets
      description: Lists every bucket.
      responses:
        "200":
          description: All buckets
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/BucketsList"
              examples:
                buckets:
                  value:
                    buckets:
                      - id: 5a1c2c7e-0c6f-4e58-b3e3-c6a2d1f1a9e4
                        name: project-files
        "401":
          description: Missing or invalid bearer token
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "405":
          description: Method not allowed
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
security:
  - bearerAuth: []
components:
  schemas:
    BucketsList:
      type: object
      required:
        - buckets
      additionalProperties: false
      properties:
        buckets:
          type: array
          items:
            $ref: "#/components/schemas/Bucket"
    Error:
      type: object
      required:
        - error
      additionalProperties: false
      properties:
        error:
          type: string
    Bucket:
      type: object
      required:
        - id
        - name
      additionalProperties: false
      properties:
        id:
          type: string
          format: uuid
          description: The bucket id.
        name:
          type: string
          description: The bucket name.
          maxLength: 256
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
```
