Gets a list of harnesses belonging to the project
Required permission
Project > Harnesses > General > Read
Path parameters
projectId
string requiredID of the project
Query parameters
per_page
integerThe number of results to display per request. Maximum of 100 results per page.page
integerThe page number to access.cursor
stringThe cursor returned from the previous page of results, used to request the next page.projectUrl
stringIf provided, only returns harnesses whose source repository URL matches this value.projectType
stringIf provided, only returns harnesses whose source VCS provider matches this value.one ofbitbucket, gitlab, github, self-hosted, azureprojectBranch
stringIf provided, only returns harnesses whose source branch matches this value.
Response body
- {object}Response object.
data
{object} requiredResult data.harnesses
[array] requiredAn array of harnesses.- {object}Information about a harness.
id
string requiredIdentifier for the harness.name
string requiredHarness name.appId
string requiredFull identifier for the harness.description
stringA short description of the harness.harness
{object}Details about the harness's specifications.type
string requiredThe harness environment type.one ofclaude, codexsource
{object}The git source linked to the harness.projectUrl
stringURL of the git repository pre-pulled into the harness environment.projectType
stringThe VCS provider of the harness source.projectBranch
stringThe branch of the harness source.status
{object}The current status of the harness.pagination
{object} requiredData about the endpoint pagination.hasNextPage
boolean requiredIs there another page of results available?cursor
stringThe cursor to access the next page of results.count
number requiredThe number of results returned by this request.
API
CLI
JS Client
GET /v1/projects/{projectId}/harnesses
GET /v1/teams/{teamId}/projects/{projectId}/harnesses
Example response
200 OK
A list of harnesses belonging to the project.
JSON
{
"data": {
"harnesses": [
{
"id": "example-harness",
"name": "Example Harness",
"appId": "/example-user/default-project/example-harness",
"description": "This is the harness description",
"harness": {
"type": "claude"
},
"source": {
"projectUrl": "https://github.com/northflank-examples/next-js-example",
"projectType": "github",
"projectBranch": "main"
}
}
]
},
"pagination": {
"hasNextPage": false,
"count": 1
}
}