Superconductor Docs

Ticket implementations

Read an implementation's status, conversation, and code changes, send it messages, and run QA checks on it.

GET
/ticket_implementations/{id}

An implementation's status, agent, ticket, and pull requests.

Authorization

PersonalAccessToken
headerAuthorizationBearer <token>

A personal access token, created under Account Settings → Developer → Personal access tokens.

Path Parameters

id*string

Response Body

The request has succeeded.

application/json
  1. response
id*string
friendly_id*string
url*string
Formaturi
status*string

Such as idle, running, pending_user, or failed.

created_at*string
Formatdate-time
creator*|null
pull_requests*array<>
profile_name*|

The coding agent working on it.

model*string|null
ticket*
Example Request
curl -X GET 'https://www.superconductor.com/api/v1/ticket_implementations/string'
Example Response
{  "id": "string",  "friendly_id": "string",  "url": "http://example.com",  "status": "string",  "created_at": "2019-08-24T14:15:22Z",  "creator": {    "type": "string",    "id": "string",    "name": "string",    "email": "string"  },  "pull_requests": [    {      "id": "string",      "number": 0,      "url": "http://example.com",      "status": "string",      "provider": "string",      "created_at": "2019-08-24T14:15:22Z",      "last_pushed_at": "2019-08-24T14:15:22Z"    }  ],  "profile_name": "string",  "model": "string",  "ticket": {    "id": "string",    "friendly_id": "string",    "url": "http://example.com",    "title": "string",    "status": "string"  }}
GET
/ticket_implementations/{id}/messages

An implementation's conversation, in order.

Authorization

PersonalAccessToken
headerAuthorizationBearer <token>

A personal access token, created under Account Settings → Developer → Personal access tokens.

Path Parameters

id*string

Query Parameters

limit?integer

How many records to return.

Formatint32
Range1 <= value <= 1000
Default100
cursor?string

The next_cursor of the previous page.

Response Body

The request has succeeded.

application/json
  1. response
data*array<>
next_cursor*|

Pass this as cursor to get the next page, or null on the last page.

Example Request
curl -X GET 'https://www.superconductor.com/api/v1/ticket_implementations/string/messages'
Example Response
{  "data": [    {      "id": "string",      "url": "http://example.com",      "created_at": "2019-08-24T14:15:22Z",      "author": {        "type": "string",        "name": "string",        "id": "string",        "email": "string"      },      "text": "string"    }  ],  "next_cursor": "string"}
POST
/ticket_implementations/{id}/messages

Post a message to an implementation's conversation as the user the token belongs to. Its coding agent picks the message up and responds, as it would to a message sent in Superconductor.

Authorization

PersonalAccessToken
headerAuthorizationBearer <token>

A personal access token, created under Account Settings → Developer → Personal access tokens.

Path Parameters

id*string

Request Body

application/json
  1. body
message*

Response Body

The request has succeeded and a new resource has been created as a result.

application/json
  1. response
id*string
url*string

Opens the message in its implementation's or chat's conversation.

Formaturi
created_at*string
Formatdate-time
author*
text*string|null
Example Request
curl -X POST 'https://www.superconductor.com/api/v1/ticket_implementations/string/messages' \  -H 'Content-Type: application/json' \  -d '{  "message": {    "text": "string"  }}'
Example Response
{  "id": "string",  "url": "http://example.com",  "created_at": "2019-08-24T14:15:22Z",  "author": {    "type": "string",    "name": "string",    "id": "string",    "email": "string"  },  "text": "string"}
GET
/ticket_implementations/{id}/diff

An implementation's latest code changes, one git diff per repository.

Authorization

PersonalAccessToken
headerAuthorizationBearer <token>

A personal access token, created under Account Settings → Developer → Personal access tokens.

Path Parameters

id*string

Response Body

The request has succeeded.

application/json
  1. response
repositories*array<>

One entry per repository, by name.

Example Request
curl -X GET 'https://www.superconductor.com/api/v1/ticket_implementations/string/diff'
Example Response
{  "repositories": [    {      "name": "string",      "merge_base": "string",      "diff": "string",      "error": "string"    }  ]}
GET
/ticket_implementations/{id}/qa_checks

An implementation's QA checks, newest first.

Authorization

PersonalAccessToken
headerAuthorizationBearer <token>

A personal access token, created under Account Settings → Developer → Personal access tokens.

Path Parameters

id*string

Query Parameters

limit?integer

How many records to return.

Formatint32
Range1 <= value <= 1000
Default100
cursor?string

The next_cursor of the previous page.

Response Body

The request has succeeded.

application/json
  1. response
data*array<>
next_cursor*|

Pass this as cursor to get the next page, or null on the last page.

Example Request
curl -X GET 'https://www.superconductor.com/api/v1/ticket_implementations/string/qa_checks'
Example Response
{  "data": [    {      "id": "string",      "url": "http://example.com",      "status": "string",      "created_at": "2019-08-24T14:15:22Z",      "overall_score": 0.1,      "complete": true,      "report": {        "property1": null,        "property2": null      }    }  ],  "next_cursor": "string"}
POST
/ticket_implementations/{id}/qa_checks

Start a QA check of an implementation's latest code changes, as the user the token belongs to, or the user a coding agent works for. That user must be an owner, admin, or collaborator in the workspace. It runs with the project's default QA check agent; poll GET /qa_checks/{id} for its report.

Authorization

PersonalAccessToken
headerAuthorizationBearer <token>

A personal access token, created under Account Settings → Developer → Personal access tokens.

Path Parameters

id*string

Response Body

The request has succeeded and a new resource has been created as a result.

application/json
  1. response
id*string
url*string

Opens the QA check on its implementation's page.

Formaturi
status*string

idle or running until the check finishes, then pending_user with a report, or failed.

created_at*string
Formatdate-time
overall_score*|

The average of the check's feature, code quality, and tests scores, from 0 to 5.

complete*|

Whether the check found that the implementation meets the ticket's requirements.

report*|

The QA agent's findings, such as summary, feature_score, feature_notes, code_quality_score, tests_quality_score, and improvements_needed, or null until the check finishes. The agent writes it, so its fields can change.

Example Request
curl -X POST 'https://www.superconductor.com/api/v1/ticket_implementations/string/qa_checks'
Example Response
{  "id": "string",  "url": "http://example.com",  "status": "string",  "created_at": "2019-08-24T14:15:22Z",  "overall_score": 0.1,  "complete": true,  "report": {    "property1": null,    "property2": null  }}

Get a QA check

GET
/qa_checks/{id}

A QA check's status and, once it finishes, its report.

Authorization

PersonalAccessToken
headerAuthorizationBearer <token>

A personal access token, created under Account Settings → Developer → Personal access tokens.

Path Parameters

id*string

Response Body

The request has succeeded.

application/json
  1. response
id*string
url*string

Opens the QA check on its implementation's page.

Formaturi
status*string

idle or running until the check finishes, then pending_user with a report, or failed.

created_at*string
Formatdate-time
overall_score*|

The average of the check's feature, code quality, and tests scores, from 0 to 5.

complete*|

Whether the check found that the implementation meets the ticket's requirements.

report*|

The QA agent's findings, such as summary, feature_score, feature_notes, code_quality_score, tests_quality_score, and improvements_needed, or null until the check finishes. The agent writes it, so its fields can change.

Example Request
curl -X GET 'https://www.superconductor.com/api/v1/qa_checks/string'
Example Response
{  "id": "string",  "url": "http://example.com",  "status": "string",  "created_at": "2019-08-24T14:15:22Z",  "overall_score": 0.1,  "complete": true,  "report": {    "property1": null,    "property2": null  }}