VoidTrack Docs
API Reference

Labels

GET
/labels
AuthorizationBearer <token>

Workspace scoped API key, printed once by pnpm seed or POST /api-keys.

In: header

Query Parameters

usage?string

Set to 1 to add issueCount and openIssueCount across every team. Admin only

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/labels"
{  "labels": [    {      "id": "string",      "name": "string",      "color": "string",      "description": "string",      "issueCount": 0,      "openIssueCount": 0    }  ]}
POST
/labels
AuthorizationBearer <token>

Workspace scoped API key, printed once by pnpm seed or POST /api-keys.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/labels" \  -H "Content-Type: application/json" \  -d '{    "name": "string"  }'
{  "label": {    "id": "string",    "name": "string",    "color": "string",    "description": "string"  }}
PATCH
/labels/{id}

A rename keeps the id, so issue links follow it, and rewrites saved view and view default label filters in the same transaction. 409 when another label already has the name; merge instead.

AuthorizationBearer <token>

Workspace scoped API key, printed once by pnpm seed or POST /api-keys.

In: header

Path Parameters

id*string

Label id

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PATCH "https://example.com/labels/string" \  -H "Content-Type: application/json" \  -d '{}'
{  "label": {    "id": "string",    "name": "string",    "color": "string",    "description": "string"  }}
DELETE
/labels/{id}

Removes it from every issue and from saved view filters.

AuthorizationBearer <token>

Workspace scoped API key, printed once by pnpm seed or POST /api-keys.

In: header

Path Parameters

id*string

Label id

Response Body

application/json

application/json

application/json

application/json

curl -X DELETE "https://example.com/labels/string"
{  "deleted": true}
POST
/labels/{id}/merge

Moves every issue link to the target, collapses issues that already carry it, rewrites saved filters, deletes the source and records a labels_changed event per affected issue.

AuthorizationBearer <token>

Workspace scoped API key, printed once by pnpm seed or POST /api-keys.

In: header

Path Parameters

id*string

Source label id, deleted by the merge

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/labels/string/merge" \  -H "Content-Type: application/json" \  -d '{    "into": "string"  }'
{  "label": {    "id": "string",    "name": "string",    "color": "string",    "description": "string"  },  "moved": 0,  "collapsed": 0}