Developers
BugSlate REST API documentation
The BugSlate API is a JSON REST API over HTTPS. File bugs from your own tools, sync them with other systems, or let an agent triage them. It is the same API the BugSlate app uses, and an API key can do at most what the person who created it can do.
Start here
Authentication with API keys
Every request carries an API key as a bearer token. Keys start with bsk_live_ and are created by workspace admins in Settings, API & webhooks. The full key is shown once, when it is created or rotated; BugSlate stores only a hash of it, so copy it somewhere safe.
https://api.bugslate.com/apiAuthorization: Bearer bsk_live_...- A key acts as the person who created it: same role, same projects. It can never do more than they can.
- A key can be narrowed further: to a set of scopes, to certain projects, to an expiry date and to a request rate.
- The creator is told in the app and by email seven days and one day before a key expires.
GET /api/auth/meworks with any valid key and returns the user the key acts as.
Permissions
Scopes
A key with no scopes has full access. A scoped key may only call the endpoints its scopes cover, and anything not covered is refused with a 403 that names the scope it needs. When you create a key you can start from a preset: Full access, Read-only (bugs:read, projects:read, tasks:read) or Agent (bugs:read, projects:read, comments:write, bugs:status, bugs:assign).
| Scope | Allows | Risk |
|---|---|---|
bugs:read | List and read bugs, their history, comments, links, relations and saved queries. | low |
bugs:create | File new bugs and upload attachments. | low |
bugs:edit | Change any field on a bug, manage links, relations, tags, watches and saved queries. | medium |
bugs:status | Move bugs between statuses. | low |
bugs:assign | Set or clear who a bug is assigned to. | low |
comments:write | Post comments on bugs. | low |
bugs:delete | Permanently delete bugs and comments. | high |
projects:read | List projects and read their environments, devices, builds and members. | low |
projects:manage | Create and edit projects, environments, devices, builds and integrations. | medium |
members:manage | Invite people to projects and change their project roles. | high |
users:manage | Create, edit and remove workspace accounts. | high |
tasks:read | Read task boards and sprints. | low |
tasks:write | Create, edit, move and delete tasks and sprints. | medium |
ai:run | Run AI analysis, queries, validation, plans and fixes. Uses the workspace AI quota. | medium |
admin | Developer settings, workspace policies, and AI and code settings. | high |
jobs:run | Trigger the scheduler tick (stale nudges, alerts, digests, SLA checks). Sends notifications and email. | medium |
Behaviour
Limits, retries and errors
- Each key has its own rate limit, 600 requests a minute unless an admin sets another. Over the limit, the API answers 429 with a
Retry-Afterheader. - Send an
Idempotency-Keyheader with a POST to make it safe to retry. A repeat with the same key returns the first response, markedIdempotent-Replayed: true, instead of running twice. Keys are kept for 24 hours. - Errors are JSON with an
errormessage: 400 for invalid input, 401 for a missing or invalid key, 403 when the key or its user is not allowed, 404 when something does not exist or is not visible to the key. - Lists accept
limit(1 to 200) andoffsetfor paging and report atotal.
Examples
List bugs and file a bug
List bugs with filters. status, severity, type, priority and assignee take a comma-separated list; project_id picks one project and q searches the text. Needs bugs:read.
curl -sS "https://api.bugslate.com/api/bugs?status=new,in_progress&severity=critical,high&limit=50" \
-H "Authorization: Bearer $BUGSLATE_API_KEY"{
"bugs": [ { "id": "...", "title": "...", "status": "new", "severity": "high", ... } ],
"total": 132,
"limit": 50,
"offset": 0,
...
}File a bug. Needs bugs:create. Every field is optional, but send project_id to choose the project (a key limited to certain projects must); project ids come from GET /api/projects. The API answers 201 with the new bug as { "bug": { ... } }.
curl -sS -X POST "https://api.bugslate.com/api/bugs" \
-H "Authorization: Bearer $BUGSLATE_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"project_id": "YOUR_PROJECT_ID",
"title": "Checkout button does nothing on Safari",
"description": "Tapping Pay on the checkout page has no effect.",
"steps": "1. Add an item to the cart\n2. Open checkout\n3. Tap Pay",
"expected": "The payment sheet opens.",
"actual": "Nothing happens and no error is shown.",
"severity": "high",
"priority": "high",
"type": "functional",
"page_url": "https://example.com/checkout",
"tags": ["checkout", "safari"]
}'| Field | Values |
|---|---|
| title | Text, up to 200 characters. Defaults to "Untitled bug". |
| description, steps | Text, up to 8,000 characters each. |
| expected, actual | Text, up to 4,000 characters each. |
| severity | critical, high, medium (default) or low. |
| priority | urgent, high, medium (default) or low. p0 to p3 are accepted too. |
| type | ui, functional (default), performance, crash, security, data, network or other. |
| status | new (default), in_progress, resolved, testing, closed or wont_fix. |
| project_id, assignee_id, device_id, environment_id | Ids from the projects, users, devices and environments endpoints. |
| tags | Up to 30 tags of up to 40 characters. |
| page_url, environment, app_version | Where and on what the bug happened. |
| due_at | An ISO 8601 date and time with an offset. Without it, the project's SLA sets one if enabled. |
To hear about changes instead of polling, subscribe to outgoing webhooks.
Reference
Endpoint reference
Every endpoint an API key can call, with the scope it needs. Paths are relative to https://api.bugslate.com. :id and similar parts are ids, and * covers every path under it.
| Method | Path | Scope |
|---|---|---|
| GET | /api/auth/meRead the user the key acts as | Any key |
| PUT | /api/auth/active-projectChange the active project | Full-access key only |
| PATCH | /api/auth/profileEdit the profile or password | Full-access key only |
| POST | /api/auth/logoutSign out | Full-access key only |
| Method | Path | Scope |
|---|---|---|
| GET | /api/bugsList bugs | bugs:read |
| GET | /api/bugs/changesPoll bug changes | bugs:read |
| GET | /api/bugs/export.csvExport bugs | bugs:read |
| POST | /api/bugs/duplicatesCheck for duplicates | bugs:read |
| POST | /api/bugs/batchBulk-edit bugs | By field: status needs bugs:status, assignee_id needs bugs:assign, anything else bugs:edit |
| POST | /api/bugs/importImport bugs | bugs:create |
| POST | /api/bugsCreate bugs | bugs:create |
| GET | /api/bugs/:idRead bugs | bugs:read |
| GET | /api/bugs/:id/linksRead bug links | bugs:read |
| POST | /api/bugs/:id/linksLink code to bugs | bugs:edit |
| DELETE | /api/bugs/:id/links/:linkIdUnlink code from bugs | bugs:edit |
| GET | /api/bugs/:id/historyRead bug history | bugs:read |
| GET | /api/bugs/:id/exportExport bugs | bugs:read |
| PATCH | /api/bugs/:idEdit bugs | By field: status needs bugs:status, assignee_id needs bugs:assign, anything else bugs:edit |
| DELETE | /api/bugs/:idDelete bugs | bugs:delete |
| POST | /api/bugs/:id/attachmentsAttach files to bugs | bugs:edit |
| POST | /api/bugs/:id/commentsComment on bugs | comments:write |
| PATCH | /api/bugs/:id/comments/:commentIdEdit comments | comments:write |
| DELETE | /api/bugs/:id/comments/:commentIdDelete comments | bugs:delete |
| GET | /api/bugs/:id/relationsRead bug relations | bugs:read |
| POST | /api/bugs/:id/relationsRelate bugs | bugs:edit |
| DELETE | /api/bugs/:id/relations/:relIdUnrelate bugs | bugs:edit |
| POST | /api/bugs/:id/duplicate-ofMark duplicates | bugs:edit |
| DELETE | /api/bugs/:id/duplicate-ofUnmark duplicates | bugs:edit |
| GET | /api/bugs/:id/watchRead watch state | bugs:read |
| PUT | /api/bugs/:id/watchWatch bugs | bugs:edit |
| DELETE | /api/bugs/:id/watchUnwatch bugs | bugs:edit |
| Method | Path | Scope |
|---|---|---|
| POST | /api/uploadsUpload attachments | bugs:create or bugs:edit |
| Method | Path | Scope |
|---|---|---|
| GET | /api/projectsList projects | projects:read |
| POST | /api/projectsCreate projects | projects:manage |
| GET | /api/projects/:idRead projects | projects:read |
| PATCH | /api/projects/:idEdit projects | projects:manage |
| DELETE | /api/projects/:idDelete projects | projects:manage |
| GET | /api/projects/:id/environmentsRead environments | projects:read |
| POST | /api/projects/:id/environmentsManage environments | projects:manage |
| PATCH | /api/projects/:id/environments/:envIdManage environments | projects:manage |
| DELETE | /api/projects/:id/environments/:envIdManage environments | projects:manage |
| GET | /api/projects/:id/devicesRead project devices | projects:read |
| GET | /api/projects/:id/membersList project members | projects:read or members:manage |
| POST | /api/projects/:id/inviteInvite people to projects | members:manage |
| PATCH | /api/projects/:id/members/:userIdManage project members | members:manage |
| DELETE | /api/projects/:id/members/:userIdManage project members | members:manage |
| DELETE | /api/projects/:id/invites/:inviteIdManage project invites | members:manage |
| GET | /api/projects/:id/buildsRead builds | projects:read |
| POST | /api/projects/:id/builds/syncSync builds | projects:manage |
| GET | /api/projects/:id/builds/webhookRead the build webhook secret | projects:manage |
| POST | /api/projects/:id/builds/webhook/rotateRotate the build webhook secret | projects:manage |
| GET | /api/projects/:id/slackManage integrations | projects:manage |
| PUT | /api/projects/:id/slackManage integrations | projects:manage |
| DELETE | /api/projects/:id/slackManage integrations | projects:manage |
| POST | /api/projects/:id/slack/testManage integrations | projects:manage |
| PUT | /api/projects/:id/slack/status-postManage integrations | projects:manage |
| GET | /api/projects/:id/slaRead the SLA policy | projects:read |
| PUT | /api/projects/:id/slaChange the SLA policy | projects:manage |
| GET | /api/projects/:id/intakeRead intake settings | projects:read |
| PUT | /api/projects/:id/intakeChange intake settings | projects:manage |
| POST | /api/projects/:id/intake/rotateRotate the intake token | projects:manage |
| GET | /api/projects/:id/status-updatesRead status updates | projects:read |
| GET | /api/projects/:id/status-updates/person/:userIdRead status updates | projects:read |
| PUT | /api/projects/:id/status-updates/:dayWrite status updates | Full-access key only |
| DELETE | /api/projects/:id/status-updates/:dayWrite status updates | Full-access key only |
| GET | /api/projects/:id/status-updates/:day/historyRead status updates | projects:read |
| Method | Path | Scope |
|---|---|---|
| GET | /api/devicesList devices | projects:read |
| GET | /api/devices/poolList devices | projects:read |
| PUT | /api/devices/:id/projectManage devices | projects:manage |
| POST | /api/devicesManage devices | projects:manage |
| DELETE | /api/devices/:idManage devices | projects:manage |
| Method | Path | Scope |
|---|---|---|
| GET | /api/users/assignableList assignable people | bugs:assign or projects:read |
| GET | /api/usersList users | users:manage |
| GET | /api/users/:id/projectsManage users | users:manage |
| POST | /api/usersManage users | users:manage |
| POST | /api/users/:id/resendManage users | users:manage |
| POST | /api/users/:id/reset-linkManage users | users:manage |
| DELETE | /api/users/:idManage users | users:manage |
| PATCH | /api/users/:idManage users | users:manage |
| Method | Path | Scope |
|---|---|---|
| GET | /api/tasksRead tasks | tasks:read |
| POST | /api/tasks/sprintsManage sprints | tasks:write |
| PATCH | /api/tasks/sprints/:idManage sprints | tasks:write |
| POST | /api/tasksManage tasks | tasks:write |
| PATCH | /api/tasks/:idManage tasks | tasks:write |
| PUT | /api/tasks/:id/moveManage tasks | tasks:write |
| DELETE | /api/tasks/:idManage tasks | tasks:write |
| Method | Path | Scope |
|---|---|---|
| GET | /api/queriesRead saved queries | bugs:read |
| GET | /api/queries/:idRead saved queries | bugs:read |
| POST | /api/queriesManage saved queries | bugs:edit |
| PATCH | /api/queries/:idManage saved queries | bugs:edit |
| DELETE | /api/queries/:idManage saved queries | bugs:edit |
| PUT | /api/queries/:id/pinManage saved queries | bugs:edit |
| PUT | /api/queries/:id/alertManage saved query alerts | bugs:edit |
| Method | Path | Scope |
|---|---|---|
| GET | /api/dashboard/overviewRead dashboards | bugs:read |
| GET | /api/dashboard/trendsRead dashboards | bugs:read |
| POST | /api/dashboard/trends/insightRun AI | ai:run |
| GET | /api/dashboard/project/:idRead dashboards | bugs:read |
| Method | Path | Scope |
|---|---|---|
| GET | /api/ai/statusRun AI | ai:run |
| POST | /api/ai/analyzeRun AI | ai:run |
| GET | /api/ai/query/configRun AI | ai:run |
| POST | /api/ai/queryRun AI | ai:run |
| PUT | /api/ai/query/settingsChange AI settings | admin |
| Method | Path | Scope |
|---|---|---|
| GET | /api/code/configRead code AI settings | ai:run or admin |
| PUT | /api/code/settingsChange code AI settings | admin |
| GET | /api/code/github/statusManage the GitHub connection | admin |
| GET | /api/code/github/startManage the GitHub connection | admin |
| GET | /api/code/github/reposManage the GitHub connection | admin |
| GET | /api/code/github/branchesManage the GitHub connection | admin |
| POST | /api/code/github/disconnectManage the GitHub connection | admin |
| GET | /api/code/projects/:id/repoRead repository settings | projects:read |
| PUT | /api/code/projects/:id/repoManage repository settings | projects:manage |
| DELETE | /api/code/projects/:id/repoManage repository settings | projects:manage |
| GET | /api/code/projects/:id/github/branchesRead repository settings | projects:read |
| POST | /api/code/bugs/validate-batchRun AI | ai:run |
| GET | /api/code/bugs/:id/validate-targetRun AI | ai:run |
| POST | /api/code/bugs/:id/validateRun AI | ai:run |
| POST | /api/code/bugs/:id/planRun AI | ai:run |
| POST | /api/code/bugs/:id/fixRun AI | ai:run |
| GET | /api/code/bugs/:id/aiRead AI results | bugs:read |
| Method | Path | Scope |
|---|---|---|
| Any | /api/developer/*Manage developer settings | admin |
| GET | /api/workspace/policiesRead workspace policies | admin |
| PUT | /api/workspace/policiesChange workspace policies | admin |
| PATCH | /api/workspaceChange workspace settings | admin |
| Method | Path | Scope |
|---|---|---|
| POST | /api/jobs/tickRun scheduled jobs | jobs:run |
| GET | /api/jobsRead scheduled job status | jobs:run or admin |
| Method | Path | Scope |
|---|---|---|
| Any | /api/notificationsUse notifications | Full-access key only |
| Any | /api/notifications/*Use notifications | Full-access key only |
Build on BugSlate
Create a workspace, then make an API key in Settings. Keys, scopes and webhooks are included in the one plan.