Skip to main content
GET
List deleted branches

Authorizations

X-API-Key
string
header
required

Headers

customer
string
required

Workspace identifier

Path Parameters

projectId
string
required

Project UUID, not a slug. Resolve a slug with GET /project/slug/{slug} using the same workspace and credentials, then pass the returned id.

Query Parameters

limit
number
merged
boolean

false lists only discarded branches, true only merged ones; omitted lists both.

Case-insensitive substring of the branch name; omitted or blank lists every deleted branch.

before
string

The cursor of the last row already shown; returns the page after it. Omit for the first page.

Response

200 - application/json
cursor
string
required

Pass as before to fetch the page after this row. Opaque; valid only as handed out.

deleted_at
string
required

When the branch was archived: the merge time for a merged branch, the delete time for a discarded one.

deleted_by_id
string | null
required

Who deleted a discarded branch. Null for a merged branch: the merge does not record its actor on the row.

id
string
required
merged_at
string | null
required

Set when a merge archived the branch; null when it was discarded through the delete endpoint.

name
string
required
number
number
required

Project-scoped branch number.

parent_id
string | null
required
parent_name
string | null
required

Name of the parent branch; null when the parent is Base.