Skip to content

Get a branch's state

GET
/api/orgs/{org}/projects/{project}/branches/state
curl --request GET \
--url 'https://api-dev.wrktr.com/api/orgs/example/projects/example/branches/state?branch=example' \
--header 'Authorization: Bearer <token>'

Whether it’s an experiment or set to land when ready, other branches changing the same files, and its landing once it has landed.

org
required
string
project
required
string
branch
required
string

BranchState

Media typeapplication/json
object
branch
required
string
experiment
required
boolean
autoLand
required
Any of:
object
by
required
string
since
required
Any of:
number
waiting
required
Any of:
string
overlaps
required
Array<object>
object
branch
required
string
paths
required
Array<string>
landing
required
Any of:
object
sha
required
string
branch
required
Any of:
string
title
required
string
landedBy
required
string
landedAt
required
Any of:
number
Example
{
"autoLand": {
"since": "Infinity"
},
"landing": {
"landedAt": "Infinity"
}
}

Unauthorized

Media typeapplication/json
object
_tag
required
string
Allowed values: Unauthorized
message
required
string
Example
{
"_tag": "Unauthorized"
}

ProjectNotFound | BranchNotFound

Media typeapplication/json
Any of:
object
_tag
required
string
Allowed values: ProjectNotFound
project
required
string
Example
{
"_tag": "ProjectNotFound"
}