[Experimental]

List branches in a project

⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️

Returns the live Branches of a Project. Supports two mutually exclusive filters: ?gitName= (exact match — at most one row), ?gitNameContains= (case-sensitive substring). Soft-deleted Branches are not returned. Ordered by createdAt ascending.

get/v1/projects/{projectId}/branches

Request

  • Base URL: https://api.prisma.io
  • URL: https://api.prisma.io/v1/projects/{projectId}/branches
  • Auth: one of:
    • OAuth 2 (authorization code, authorization URL https://auth.prisma.io/authorize, token URL https://auth.prisma.io/token, scopes: workspace:admin, offline_access)
    • HTTP bearer

Path parameters

projectIdstring required

Query parameters

cursorstring nullable

Cursor for pagination

limitnumber

Limit for pagination

gitNamestring
gitNameContainsstring

Response

Returned the list of Branches.

Changes

No recorded changes to this operation across all 1 revision of this API.