Search issues
Lists the open Linear and GitHub issues you could delegate.
It is the same list as the dashboard's ticket picker: yours first, then your team's unassigned ones, Linear's before GitHub's, at most 10 from each tracker.
Issues assigned to someone else, closed, or already being worked on are left out, and so are pull requests. Linear issues appear only when your Linear account is linked, and are read as you. GitHub issues appear only if you have a GitHub account, and only from the repositories enabled in the workspace.
To delegate one, pass a Linear issue's identifier as id, or a GitHub issue's identifier split into repo and number.
/v1/workspaces/{workspaceId}/ticketsA personal access token, which starts with sntr_. Create one on the dashboard's CLI & API page (https://app.sinatra.dev/tokens). It acts as you in every workspace you belong to, with your role in each, and expires after at most 365 days. The CLI's browser sign-in sends an OAuth access token here instead.
In: header
Path Parameters
The workspace's id, from GET /v1/me.
Query Parameters
Text to match: GitHub search terms, and a substring of a Linear issue's title. Up to 200 characters.
owner/name of an enabled repository to search first on GitHub. A repository that isn't enabled is ignored.
Response Body
curl -X GET "https://api.sinatra.dev/v1/workspaces/string/tickets?q=string&repo=string"{
"tickets": [
{
"id": "string",
"source": "string",
"identifier": "string",
"title": "string",
"yours": true,
"state": "string",
"context": "string",
"url": "string",
"workspaceId": "string",
"workspaceLabel": "string"
}
],
"linear": {
"connected": true,
"identityLinked": true,
"identityBound": true
},
"github": {
"connected": true,
"repo": "string"
}
}{
"error": "string",
"reason": "string",
"requestId": "string",
"refusal": "string",
"billingUrl": "string",
"settingsUrl": "string",
"plan": "string",
"running": 0,
"queued": 0,
"taskId": "string",
"messageId": "string"
}{
"error": "string",
"reason": "string",
"requestId": "string",
"refusal": "string",
"billingUrl": "string",
"settingsUrl": "string",
"plan": "string",
"running": 0,
"queued": 0,
"taskId": "string",
"messageId": "string"
}{
"error": "string",
"reason": "string",
"requestId": "string",
"refusal": "string",
"billingUrl": "string",
"settingsUrl": "string",
"plan": "string",
"running": 0,
"queued": 0,
"taskId": "string",
"messageId": "string"
}{
"error": "string",
"reason": "string",
"requestId": "string",
"refusal": "string",
"billingUrl": "string",
"settingsUrl": "string",
"plan": "string",
"running": 0,
"queued": 0,
"taskId": "string",
"messageId": "string"
}{
"error": "string",
"reason": "string",
"requestId": "string",
"refusal": "string",
"billingUrl": "string",
"settingsUrl": "string",
"plan": "string",
"running": 0,
"queued": 0,
"taskId": "string",
"messageId": "string"
}