List issues

GET
/api/v1/issues

Authorization

bearerAuth
headerAuthorizationBearer <token>

An API key created in Capy under Settings → API.

Query parameters

projectId?string
projectIds?|array<string>

Issues in any of these projects.

projectIdsNot?

With projectId or projectIds: issues in every other project the key can read instead.

status?string

Open (the default), closed, or all. stateIds narrows further.

One of"open""closed""all"
stateIds?string|array<string>
stateIdsNot?

With stateIds: issues in every other state that status allows instead.

priorities?|array<>
prioritiesNot?

With priorities: issues at every other priority instead.

match?string

How assignee, creator, mentioned, subscribed and hasPullRequest combine: all (the default) or any.

One of"all""any"
assignee?|array<string>

Issues whose assignee is any of these: a user id, a thread id, me for the key's own user, or none.

assigneeNot?

With assignee: issues assigned to none of them instead.

creator?|array<string>

Issues whose creator is any of these: a user id, a thread id, me for the key's own user, or none.

creatorNot?

With creator: issues created by none of them instead.

subscribed?|array<string>

Issues any of these people subscribe to: a user id, or me for the key's own user.

subscribedNot?

With subscribed: issues none of those people subscribe to instead.

mentioned?|array<string>

Issues that mention any of these people: a user id, or me for the key's own user. true is me.

mentionedNot?

With mentioned: issues that mention none of those people instead.

labelIds?|array<string>

Issues carrying these labels, as labelMatch says.

labelMatch?string

With labelIds: any (the default) carries at least one, all carries every one, none carries none of them. none with every label lists unlabelled issues.

One of"any""all""none"
parent?string

The sub-issues of this issue code.

due?|array<>

Issues due today, tomorrow, this_week (today through Sunday), next_week, this_month (today through the month's end), overdue, or none. Several, and a dueFrom/dueTo range, match any of them. Dates follow today.

dueFrom?string

Issues due on or after this date (YYYY-MM-DD), inclusive.

dueTo?string

Issues due on or before this date (YYYY-MM-DD), inclusive.

dueNot?

With due, dueFrom or dueTo: issues that match none of them instead.

today?string

The caller's local date for due; defaults to today's UTC date.

hasPullRequest?string
One of"true""false"
relations?|array<>

Issues that are every one of these: parent (has sub-issues), sub_issue (has a parent), blocked (has an open blocker), blocking (blocks an open issue), related (has a related issue), or has_relations (any blocking or related link).

excludedRelations?|array<>

Issues that are none of these, in the same values as relations.

search?string

Words in the issue, or an issue number or code.

Length1 <= length <= 100
limit?integer
Range1 <= value <= 200
cursor?string
Match^[0-3]:\d{1,10}$

Response body

IssuePage

application/json
  1. response
items*array<>
cursor*|null
curl -X GET 'https://api.capy.ai/api/v1/issues'
{  "items": [    {      "id": "string",      "code": "string",      "number": 0,      "projectId": "string",      "title": "string",      "state": {        "id": "string",        "name": "string",        "type": "open"      },      "priority": "urgent",      "dueAt": "string",      "parentId": "string",      "visibility": "org",      "assignees": [        {          "kind": "user",          "id": "string",          "code": "string"        }      ],      "labels": [        {          "id": "string",          "name": "string"        }      ],      "subIssueCount": 0,      "closedSubIssueCount": 0,      "openBlockerCount": 0,      "createdAt": "string",      "updatedAt": "string",      "closedAt": "string"    }  ],  "cursor": "string"}
Open in Capy