Skip to main content
GET
/
v1
/
threads
List threads
curl --request GET \
  --url https://capy.ai/api/v1/threads \
  --header 'Authorization: Bearer <token>'
{
  "items": [
    {
      "id": "<string>",
      "projectId": "<string>",
      "title": "<string>",
      "status": "active",
      "tasks": [
        {
          "id": "<string>",
          "identifier": "<string>",
          "title": "<string>",
          "status": "backlog"
        }
      ],
      "pullRequests": [
        {
          "number": 0,
          "url": "<string>",
          "repoFullName": "<string>",
          "state": "<string>",
          "headRef": "<string>",
          "baseRef": "<string>",
          "draft": true
        }
      ],
      "slackThreads": [
        {
          "teamId": "<string>",
          "channelId": "<string>",
          "threadTs": "<string>",
          "url": "<string>"
        }
      ],
      "createdAt": "<string>",
      "updatedAt": "<string>"
    }
  ],
  "nextCursor": "<string>",
  "hasMore": true
}

Authorizations

Authorization
string
header
required

API token (capy_xxxx). Generate at capy.ai/settings/tokens

Query Parameters

limit
integer
default:20
required
Required range: 1 <= x <= 100
cursor
string
projectId
string
required
status
enum<string>
Available options:
active,
idle,
archived
prNumber
integer
Required range: -9007199254740991 <= x <= 9007199254740991
branch
string
slackThreadTs
string

Response

Success

items
object[]
required
nextCursor
string | null
required
hasMore
boolean
required