Skip to main content
Prisma Documentation Docs

Search documentation

Type to search this documentation.

List buckets

GET/v1/bucketsList buckets

Returns all object-store buckets the token has access to. Optionally filter by project ID.

Parameters

cursornull | stringquery

Cursor for pagination

limitintegerquery

Page size, 1-100

default 100 · maximum 100 · minimum 1

projectIdstringquery

Filter buckets by project ID

pattern ^(proj_)?([cC][^\s-]{8,}|[a-z0-9]+)$

logicalIdstringquery

Declared identity of the resource, unique within its branch. Set by the tool that declares the resource.

maxLength 255 · pattern ^[A-Za-z0-9][A-Za-z0-9._-]*$

branchIdvaluequery
anyOf · 2 options
Option 1string

const "unassigned"

Option 2string

pattern ^(br_)?([cC][^\s-]{8,}|[a-z0-9]+)$

branchGitNamestringquery

minLength 1

Responses

200Returns the list of buckets.application/json
object
dataarray of objectrequired
Show child attributes
Show array items
branchIdnull | stringrequired

pattern ^(br_)([cC][^\s-]{8,}|[a-z0-9]+)$

createdAtstring · date-timerequired
idstringrequired

pattern ^(bkt_)([cC][^\s-]{8,}|[a-z0-9]+)$

logicalIdnull | stringrequired
namestringrequired
projectobjectrequired
Show child attributes
idstringrequired

pattern ^(proj_)([cC][^\s-]{8,}|[a-z0-9]+)$

namestringrequired
urlstring · urirequired
providerNamestringrequired
statusstringrequired
typestringrequired

const "bucket"

urlstring · urirequired
paginationobjectrequired
Show child attributes
hasMorebooleanrequired

Whether there are more items to paginate

nextCursornull | stringrequired

Next cursor to continue pagination

Example response
{
  "data": [
    {
      "branchId": "string",
      "createdAt": "2026-06-09T00:00:00Z",
      "id": "string",
      "logicalId": "string",
      "name": "string",
      "project": {
        "id": "string",
        "name": "string",
        "url": "https://example.com"
      },
      "providerName": "string",
      "status": "string",
      "type": "bucket",
      "url": "https://example.com"
    }
  ],
  "pagination": {
    "hasMore": true,
    "nextCursor": "string"
  }
}
401Missing or invalid authorization token.application/json
object
errorobjectrequired
Show child attributes
codestringrequired
hintstring
messagestringrequired
Example response
{
  "error": {
    "code": "string",
    "hint": "string",
    "message": "string"
  }
}
413Request body exceeds this endpoint's size cap.application/json
object
errorobjectrequired
Show child attributes
codestringrequired
hintstring
messagestringrequired
Example response
{
  "error": {
    "code": "string",
    "hint": "string",
    "message": "string"
  }
}
Documentation menu