# Superconductor API

<div style={{maxWidth: '900px'}}>
![Personal access tokens page with a newly created token, the Create token form, and the Your tokens table](</docs/_next/static/media/personal-access-tokens-create.3xouh-5-_2c8u.jpg>)
</div>

The Superconductor API lets tools outside Superconductor, like Codex or Claude Code on your laptop, Cursor, or your own scripts, read the work in your projects on Superconductor, create new tickets, send messages to agents, and run QA checks. You connect them with a **personal access token**: a separate password for one tool that you can revoke at any time without changing your account password.

## What you can do with it [#what-you-can-do-with-it]

With a token, a tool can:

- List the Superconductor projects you can access
- Read tickets, their descriptions and statuses, and their implementations
- Read an implementation's conversation and code changes
- List project chats and read their conversations
- [Create tickets](#create-a-ticket), with file attachments and base branches, and optionally start an implementation with your default agent
- [Send messages](#send-a-message) to implementations and chats, which their agents respond to
- [Run QA checks](#run-a-qa-check) on implementations and read their reports

For example, you could ask a local agent: *"Find the Superconductor chat where I brainstormed the new onboarding flow, read the plan we agreed on, and implement it in this repo."* Or have your error tracker file a Superconductor ticket for every new production error, with the stack trace attached, so an agent can start on the fix.

The API can't yet launch new implementations on existing tickets or open PRs. Do those in Superconductor.

## What a token can access [#what-a-token-can-access]

A token acts as you. It can read everything you can see in Superconductor:

- Your own implementations and chats, and your teammates' work in the same projects
- Projects in every workspace you belong to, including workspaces you join after initially generating the token

It can also create tickets, send messages, and run QA checks wherever your [workspace role](/docs/workspaces#member-roles) lets you do that in the app. Tokens belonging to a **Viewer** can only read.

You can't currently limit a token to one project or workspace. If you leave a workspace, your tokens lose access to it too.

## Create a token [#create-a-token]

1. Go to [Account Settings](/docs/account-settings#developer) and click **Personal access tokens** under **Developer**.
2. Enter a **Name** so you can tell your tokens apart, like "Codex on my laptop".
3. Choose when it expires under **Expires in**: 30, 60, or 90 days, or **Never**.
4. Click **Create token**.
5. Copy the token and store it somewhere safe, like your tool's secrets or an environment variable. **You won't be able to see it again.**

Tokens start with `sc_`. You can have up to 20 at a time.

<Callout>
Treat a token like a password. Anyone who has it can read your Superconductor work, create tickets, and send messages as you until it expires or you revoke it.
</Callout>

## Manage and revoke tokens [#manage-and-revoke-tokens]

The **Your tokens** table on the same page shows each token's name, when you created it, when it was last used, and when it expires.

Click **Revoke** to cut off a token. Any tool using it loses access immediately. We recommend giving each tool its own token, so you can revoke one without breaking the others.

## Make your first request [#make-your-first-request]

Send your token as a bearer token. To check that it works, ask the API who you are:

```bash
curl https://www.superconductor.com/api/v1/user \
  -H "Authorization: Bearer $SUPERCONDUCTOR_TOKEN"
```

You'll get your name and email back:

```json
{ "id": "7B9DnrkjmB8Q", "name": "Kevin Walsh", "email": "kevin@example.com" }
```

## Endpoints [#endpoints]

All endpoints start with `https://www.superconductor.com/api/v1` and return JSON. Use the IDs at the end of Superconductor URLs, like the implementation ID in `/tickets/<ticket id>/implementations/<implementation id>`.

The API reference pages for [projects](/docs/api/projects), [tickets](/docs/api/tickets), [ticket implementations](/docs/api/ticket-implementations), [chats](/docs/api/chats), and [users](/docs/api/users) list every parameter, response, and error. You can also download its [OpenAPI document](/docs/api/openapi.yaml) to generate a client or give it to an agent.

| Request | What it returns |
|---------|-----------------|
| `GET /user` | Your name and email |
| `GET /projects` | Projects you can access, newest first |
| `GET /projects/{id}/tickets` | A project's tickets, newest first |
| `POST /projects/{id}/tickets` | Creates a ticket. See [Create a ticket](#create-a-ticket) |
| `GET /projects/{id}/attachment_uploads/presign` | Where to upload a file to attach to a new ticket. See [Attach files](#attach-files) |
| `GET /projects/{id}/chats` | A project's chats, newest first |
| `GET /ticket_implementations/{id}` | An implementation's status, agent, ticket, and pull requests |
| `GET /ticket_implementations/{id}/messages` | An implementation's conversation |
| `POST /ticket_implementations/{id}/messages` | Sends a message to an implementation. See [Send a message](#send-a-message) |
| `GET /ticket_implementations/{id}/diff` | An implementation's code changes, per repo |
| `GET /ticket_implementations/{id}/qa_checks` | An implementation's QA checks, newest first |
| `POST /ticket_implementations/{id}/qa_checks` | Starts a QA check. See [Run a QA check](#run-a-qa-check) |
| `GET /qa_checks/{id}` | A QA check's status and, once it finishes, its report |
| `GET /chats/{id}` | A chat's details |
| `GET /chats/{id}/messages` | A chat's conversation |
| `POST /chats/{id}/messages` | Sends a message to a chat. See [Send a message](#send-a-message) |

### Listing projects [#listing-projects]

`GET /projects` lists projects across all your workspaces. Each project includes the `workspace` it belongs to, so you can group projects by workspace:

```json
{
  "data": [
    {
      "id": "kfN6QnCQgrrr",
      "name": "Billing service",
      "url": "https://www.superconductor.com/projects/kfN6QnCQgrrr",
      "created_at": "2026-10-14T16:02:11Z",
      "workspace": { "id": "W3xPq7LmZt2a", "name": "Acme Engineering" }
    },
    {
      "id": "Hq4TzR8vNc1d",
      "name": "Side project",
      "url": "https://www.superconductor.com/projects/Hq4TzR8vNc1d",
      "created_at": "2026-09-02T09:45:30Z",
      "workspace": { "id": "Bv9KsD2yRm5e", "name": "Kevin Walsh's Workspace" }
    }
  ],
  "next_cursor": null
}
```

To list only one workspace's projects, pass its ID as `workspace_id`:

```bash
curl "https://www.superconductor.com/api/v1/projects?workspace_id=W3xPq7LmZt2a" \
  -H "Authorization: Bearer $SUPERCONDUCTOR_TOKEN"
```

Take the ID from a project's `workspace`, or from the address of any Workspace Settings page, such as `/workspaces/W3xPq7LmZt2a/edit`. If you pass the ID of a workspace you don't belong to, you get an empty list rather than an error.

### Filtering tickets and chats [#filtering-tickets-and-chats]

The tickets and chats lists accept these query parameters:

- `sort=last_activity` lists the most recently active first. The default is `created`.
- `since=2026-10-01T00:00:00Z` keeps only items active since that time.
- `include=implementations` adds each ticket's implementations (tickets only).

### Pagination [#pagination]

Lists return up to 100 items per page in `data`. Add `limit` to get up to 1,000. If `next_cursor` isn't `null`, there are more results. Pass it back as `cursor` to get the next page:

```bash
curl "https://www.superconductor.com/api/v1/projects/{id}/tickets?limit=50&cursor=$NEXT_CURSOR" \
  -H "Authorization: Bearer $SUPERCONDUCTOR_TOKEN"
```

## Create a ticket [#create-a-ticket]

Send a `POST` with the ticket's description. Write it in Markdown, the same way you would in the [ticket form](/docs/tickets#creating-tickets):

```bash
curl https://www.superconductor.com/api/v1/projects/{id}/tickets \
  -H "Authorization: Bearer $SUPERCONDUCTOR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "ticket": {
      "title": "Retry failed webhook deliveries",
      "description": "Webhook deliveries that fail with a 5xx are dropped. Retry them with backoff, up to 5 times."
    }
  }'
```

`title` is optional. Leave it out and Superconductor writes one from the description, so `title` is `null` in the response. You need a description, or at least one [attachment](#attach-files).

You'll get the new ticket back, including its `url`. See the [tickets reference](/docs/api/tickets) for every field:

```json
{
  "id": "d7KDGFMKkzbq",
  "friendly_id": "142",
  "url": "https://www.superconductor.com/tickets/d7KDGFMKkzbq",
  "title": "Retry failed webhook deliveries",
  "status": "idle",
  "implementation_launches": []
}
```

The ticket shows you as its creator, the same as a ticket you create in the app.

### Start an implementation [#start-an-implementation]

A new ticket has no implementations, so you decide when work starts. To start one right away, add `implementations` next to `ticket`:

```json
{
  "ticket": { "description": "Retry failed webhook deliveries with backoff." },
  "implementations": [{ "profile": "default" }]
}
```

This launches one implementation with your [Default agent profile](/docs/account-settings#default-agent-profile), or the [best available](/docs/agents/credentials#best-available-credentials) agent if you haven't set one. `default` is the only profile you can choose for now.

`implementation_launches` in the response has an entry for each implementation you asked for. If an entry has a `launch_error`, the ticket was still created, but no agent was available to start the work. Check your [agent credentials](/docs/agents/credentials), then launch it from the ticket.

### Choose base branches [#choose-base-branches]

Each repository starts from its default branch. To start from another branch, add `base_branches` to `ticket`, keyed by repository name:

```json
{
  "ticket": {
    "description": "Backport the webhook retry fix.",
    "base_branches": { "api": "release-2.4" }
  }
}
```

Repositories you leave out keep their default branch. The branch must already exist on GitHub. If it doesn't, or a name doesn't match a repository in the project, you get a [400](#400-bad-request) and nothing is created.

### Attach files [#attach-files]

You can attach up to 10 files to a new ticket, such as a screenshot of a bug or an error log. The same [size limits](/docs/tickets#attaching-images-videos-and-files) apply as in the app. Each file takes three steps:

1. **Ask where to upload it.** Request `GET /projects/{id}/attachment_uploads/presign?filename=error.png`. You'll get back an `upload_id`, a `url`, and a set of `fields`.
2. **Upload the file.** `POST` it to `url` as a multipart form, with every entry in `fields` as a form field, followed by the file as the `file` field.
3. **Create the ticket.** List the upload IDs under `ticket.attachments`.

Here's the whole flow for one file. It uses [jq](https://jqlang.org) to read the JSON responses.

```bash
PRESIGN=$(curl -s "https://www.superconductor.com/api/v1/projects/{id}/attachment_uploads/presign?filename=error.png" \
  -H "Authorization: Bearer $SUPERCONDUCTOR_TOKEN")

FIELDS=()
while IFS= read -r field; do FIELDS+=(--form-string "$field"); done \
  < <(echo "$PRESIGN" | jq -r '.fields | to_entries[] | "\(.key)=\(.value)"')
curl -s "$(echo "$PRESIGN" | jq -r .url)" "${FIELDS[@]}" -F "file=@error.png"

curl https://www.superconductor.com/api/v1/projects/{id}/tickets \
  -H "Authorization: Bearer $SUPERCONDUCTOR_TOKEN" \
  -H "Content-Type: application/json" \
  -d "{\"ticket\": {\"description\": \"Checkout fails, see the screenshot.\", \"attachments\": [\"$(echo "$PRESIGN" | jq -r .upload_id)\"]}}"
```

Upload the file within an hour of asking where to upload it. The upload ID then works for a day, and only in the project you requested it for. If any attachment is invalid, for example because it's too large, the API creates nothing and tells you which file was rejected.

## Send a message [#send-a-message]

Send a message to an implementation or chat, the same as typing it into its conversation in Superconductor. Write it in Markdown:

```bash
curl https://www.superconductor.com/api/v1/ticket_implementations/{id}/messages \
  -H "Authorization: Bearer $SUPERCONDUCTOR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "message": { "text": "The staging deploy is fixed. Rerun the end-to-end tests and update the PR." } }'
```

For a chat, send the same request to `/chats/{id}/messages`.

The message appears in the conversation from you, and the agent responds to it as it would to a message you sent in the app. You'll get the message back, including a `url` that opens it in the conversation:

```json
{
  "id": "Rk3vT9pXwq2L",
  "url": "https://www.superconductor.com/tickets/d7KDGFMKkzbq/implementations/8JdDLB6GtwPB?message_id=Rk3vT9pXwq2L&pane=chat#message_Rk3vT9pXwq2L",
  "created_at": "2026-11-10T17:42:08Z",
  "author": { "type": "user", "id": "7B9DnrkjmB8Q", "name": "Kevin Walsh", "email": "kevin@example.com" },
  "text": "The staging deploy is fixed. Rerun the end-to-end tests and update the PR."
}
```

The agent's reply isn't in the response. To read it, list the conversation's messages later with `GET /ticket_implementations/{id}/messages` or `GET /chats/{id}/messages`. Agents in Superconductor can send messages to each other too. See [Messaging other agents](/docs/projects/mcp-and-skills/other-superconductor-skills#messaging-other-agents).

## Run a QA check [#run-a-qa-check]

Start a [QA check](/docs/implementations/qa-checks) on an implementation's latest code changes, for example after your local agent pushes a follow-up, or before you merge:

```bash
curl -X POST https://www.superconductor.com/api/v1/ticket_implementations/{id}/qa_checks \
  -H "Authorization: Bearer $SUPERCONDUCTOR_TOKEN"
```

The check runs with the project's [default QA agent](/docs/implementations/qa-checks#choosing-the-qa-agent), using your [credentials](/docs/implementations/qa-checks#whose-credentials-a-check-uses). You can't pick a different agent from the API. Each request starts a new check, even if one is already running.

You get the new check back right away, before the QA agent finishes:

```json
{
  "id": "Qm7HcT2vLp9X",
  "url": "https://www.superconductor.com/tickets/d7KDGFMKkzbq/implementations/8JdDLB6GtwPB?pane=diff&qa_check=Qm7HcT2vLp9X&tab=qa_check",
  "status": "idle",
  "created_at": "2026-11-15T18:04:51Z",
  "overall_score": null,
  "complete": null,
  "report": null
}
```

To get the result, request `GET /qa_checks/{id}` every minute or so. `status` is `idle` or `running` while the check works, then `pending_user` once the report is ready, or `failed` if the QA agent couldn't run. When it's done, `overall_score` is the 0–5 score, `complete` says whether the work meets the ticket's requirements, and `report` holds the QA agent's findings, like its summary and the improvements it suggests. See [What the QA report includes](/docs/implementations/qa-checks#what-the-qa-report-includes).

To see earlier checks, list them with `GET /ticket_implementations/{id}/qa_checks`.

## Troubleshooting [#troubleshooting]

### 401 Unauthorized [#401-unauthorized]

The token is missing, mistyped, expired, or revoked. Check that the header is `Authorization: Bearer sc_...`, or create a new token.

### 400 Bad request [#400-bad-request]

A parameter is missing or invalid. The `error.message` says which, and `error.details` lists each invalid value with a JSON pointer to it, like `/limit`.

### 403 Forbidden [#403-forbidden]

Your [workspace role](/docs/workspaces#member-roles) can't create tickets, send messages, or run QA checks in that project. Ask a workspace Owner or Admin to change your role.

### 404 Not found [#404-not-found]

Either the ID is wrong or you don't have access to that project, ticket, implementation, or chat. The API doesn't reveal whether something exists if you can't see it.

### 422 when creating a ticket [#422-when-creating-a-ticket]

The ticket couldn't be saved, for example because it has no description and no attachments, or an attached file is too large. The `error.message` says what to fix, including which file was rejected. Nothing is created when a request fails this way.

### 422 when running a QA check [#422-when-running-a-qa-check]

No check was started. The `error.code` says why:

- `no_changes`: The implementation has no code changes to check yet.
- `no_agent_available`: You don't have [credentials](/docs/agents/credentials) for an agent that can run the check. Connect a plan or ask a workspace Owner or Admin to add an API key.

## Next steps [#next-steps]

- [Account settings](/docs/account-settings): where you create and revoke tokens
- [Workspaces](/docs/workspaces): who can access which projects