Skip to content
localisyncDocs
Open panel

List branches

List branches.

GET /api/v1/workspaces/{workspaceId}/projects/{projectId}/branches

Operation: listBranches · Download OpenAPI

This operation does not use the panel session as its authentication mechanism. Follow the operation-specific checks described above.

session

{
"type": "apiKey",
"in": "cookie",
"name": "__Host-localisync-session"
}
Name Location Required Description
workspaceId path Yes See constraints below.
projectId path Yes See constraints below.
page query No See constraints below.
pageSize query No See constraints below.
status query No See constraints below.
{
"type": "string",
"format": "uuid"
}
{
"type": "string",
"format": "uuid"
}
{
"type": "integer",
"minimum": 1,
"maximum": 100000,
"default": 1
}
{
"type": "integer",
"minimum": 1,
"maximum": 100,
"default": 25
}
{
"enum": [
"active",
"archived",
"all"
],
"default": "active"
}

No request body.

Success

Response headers:

{
"Cache-Control": {
"schema": {
"type": "string",
"const": "no-store"
}
}
}

Content type: application/json Schema reference: Branches.

Field Type Required Constraints / description
items Array of Branch Yes —
page integer Yes —
pageSize integer Yes —
hasMore boolean Yes —
{
"$ref": "#/components/schemas/Branches"
}

Invalid request.

Content type: application/json Schema reference: Error.

Field Type Required Constraints / description
error unauthorized, forbidden, invalid_request, not_found, conflict, rate_limited, unavailable Yes —
message string Yes —
requestId string No —
details object No —
{
"$ref": "#/components/schemas/Error"
}

Sign in required.

Content type: application/json Schema reference: Error.

Field Type Required Constraints / description
error unauthorized, forbidden, invalid_request, not_found, conflict, rate_limited, unavailable Yes —
message string Yes —
requestId string No —
details object No —
{
"$ref": "#/components/schemas/Error"
}

Insufficient current workspace role.

Content type: application/json Schema reference: Error.

Field Type Required Constraints / description
error unauthorized, forbidden, invalid_request, not_found, conflict, rate_limited, unavailable Yes —
message string Yes —
requestId string No —
details object No —
{
"$ref": "#/components/schemas/Error"
}

Resource unavailable in this scope.

Content type: application/json Schema reference: Error.

Field Type Required Constraints / description
error unauthorized, forbidden, invalid_request, not_found, conflict, rate_limited, unavailable Yes —
message string Yes —
requestId string No —
details object No —
{
"$ref": "#/components/schemas/Error"
}

Version conflict, stale preview or content invariant.

Content type: application/json Schema reference: Error.

Field Type Required Constraints / description
error unauthorized, forbidden, invalid_request, not_found, conflict, rate_limited, unavailable Yes —
message string Yes —
requestId string No —
details object No —
{
"$ref": "#/components/schemas/Error"
}

Request limit exceeded.

Content type: application/json Schema reference: Error.

Field Type Required Constraints / description
error unauthorized, forbidden, invalid_request, not_found, conflict, rate_limited, unavailable Yes —
message string Yes —
requestId string No —
details object No —
{
"$ref": "#/components/schemas/Error"
}

Service unavailable; success is not implied.

Content type: application/json Schema reference: Error.

Field Type Required Constraints / description
error unauthorized, forbidden, invalid_request, not_found, conflict, rate_limited, unavailable Yes —
message string Yes —
requestId string No —
details object No —
{
"$ref": "#/components/schemas/Error"
}

Request errors and safe retries · Troubleshooting

Cookie preferences

Your choice applies to localisync.com and docs.localisync.com. You can change it at any time using Cookie settings.