SISuperintelligenceDocs

Search docs

Search every page of the documentation.

API reference

Issues

List, open, comment on and close issues.

See Issues.

GET /v1/orgs/:orgId/repos/:name/issues

Lists issues in one state, newest first. Pass the returned cursor to get the next page.

Auth: user access token or platform agent key · Scope: git:read

Path parameterDescription
:orgIdOrganization id (org_…).
:nameRepository name.
Query parameterTypeRequiredDefaultNotes
state"open" | "closed"No"open"
cursorstringNo
labelstringNoup to 50 characters
authorstringNoup to 64 characters
assigneestringNoup to 64 characters

Response 200

{
  issues: {
    number: number
    createdAt?: number
    updatedAt?: number
    orgId: string
    repoId: string
    labels?: string[]
    title: string
    body?: string
    state?: "open" | "closed"
    assignees?: string[]
    comments?: number
    closedAt?: number
    closedBy?: string
    closedByPull?: number
    authorId: string
    authorEmail?: string
    authorName?: string
  }[]
  cursor: null | string
}

Errors

StatusMessage
404Repository not found

POST /v1/orgs/:orgId/repos/:name/issues

Opens an issue. Issues and pull requests share one number sequence per repository.

Auth: user access token or platform agent key · Scope: git:read

Path parameterDescription
:orgIdOrganization id (org_…).
:nameRepository name.

Request body

FieldTypeRequiredDefaultNotes
titlestringYes1–256 characters; trimmed
bodystringNo""up to 65,536 characters
labelsstring[]No[]up to 10 items; each 1–50 characters, trimmed
assigneesstring[]No[]up to 10 items; each 1–64 characters

Response 201

{
  issue: {
    number: number
    createdAt?: number
    updatedAt?: number
    orgId: string
    repoId: string
    labels?: string[]
    title: string
    body?: string
    state?: "open" | "closed"
    assignees?: string[]
    comments?: number
    closedAt?: number
    closedBy?: string
    closedByPull?: number
    authorId: string
    authorEmail?: string
    authorName?: string
  }
}

Errors

StatusMessage
400Assignees must be members of this organization.
404Repository not found
404Issue not found
409Could not create the issue. Try again.

GET /v1/orgs/:orgId/repos/:name/issues/:number

An issue and its comments.

Auth: user access token or platform agent key · Scope: git:read

Path parameterDescription
:orgIdOrganization id (org_…).
:nameRepository name.
:numberIssue or pull request number.

Response 200

{
  issue: {
    number: number
    createdAt?: number
    updatedAt?: number
    orgId: string
    repoId: string
    labels?: string[]
    title: string
    body?: string
    state?: "open" | "closed"
    assignees?: string[]
    comments?: number
    closedAt?: number
    closedBy?: string
    closedByPull?: number
    authorId: string
    authorEmail?: string
    authorName?: string
  }
  comments: {
    number: number
    createdAt?: number
    updatedAt?: number
    orgId: string
    repoId: string
    body: string
    authorId: string
    authorEmail?: string
    authorName?: string
    commentId: string
  }[]
}

Errors

StatusMessage
404Repository not found
404Not found
404Issue not found

PATCH /v1/orgs/:orgId/repos/:name/issues/:number

Edits the title, body or labels, or closes and reopens the issue.

Auth: user access token or platform agent key · Scope: git:read · Allowed: Author, or git:write

Path parameterDescription
:orgIdOrganization id (org_…).
:nameRepository name.
:numberIssue or pull request number.

Request body

FieldTypeRequiredNotes
titlestringNo1–256 characters; trimmed
bodystringNoup to 65,536 characters
labelsstring[]Noup to 10 items; each 1–50 characters, trimmed
assigneesstring[]Noup to 10 items; each 1–64 characters
state"open" | "closed"No

Response 200

{
  issue: {
    number: number
    createdAt?: number
    updatedAt?: number
    orgId: string
    repoId: string
    labels?: string[]
    title: string
    body?: string
    state?: "open" | "closed"
    assignees?: string[]
    comments?: number
    closedAt?: number
    closedBy?: string
    closedByPull?: number
    authorId: string
    authorEmail?: string
    authorName?: string
  }
}

Errors

StatusMessage
400Assignees must be members of this organization.
403Only the author or members with git:write can change this issue.
404Repository not found
404Not found
404Issue not found
409The issue changed. Reload and try again.

POST /v1/orgs/:orgId/repos/:name/issues/:number/comments

Adds a comment to an issue.

Auth: user access token or platform agent key · Scope: git:read

Path parameterDescription
:orgIdOrganization id (org_…).
:nameRepository name.
:numberIssue or pull request number.

Request body

FieldTypeRequiredNotes
bodystringYes1–65,536 characters; trimmed

Response 201

{
  comment: {
    authorId: string
    authorEmail: string
    authorName?: string
    repoId: string
    orgId: string
    number: number
    commentId: string
    body: string
  } | {
    authorId: string
    authorEmail?: undefined
    authorName?: undefined
    repoId: string
    orgId: string
    number: number
    commentId: string
    body: string
  }
}

Errors

StatusMessage
404Repository not found
404Not found
404Issue not found
409Could not add the comment. Try again.