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.

Base URL
https://api.bugslate.com/api
Header
Authorization: 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/me works 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).

API key scopes
ScopeAllowsRisk
bugs:readList and read bugs, their history, comments, links, relations and saved queries.low
bugs:createFile new bugs and upload attachments.low
bugs:editChange any field on a bug, manage links, relations, tags, watches and saved queries.medium
bugs:statusMove bugs between statuses.low
bugs:assignSet or clear who a bug is assigned to.low
comments:writePost comments on bugs.low
bugs:deletePermanently delete bugs and comments.high
projects:readList projects and read their environments, devices, builds and members.low
projects:manageCreate and edit projects, environments, devices, builds and integrations.medium
members:manageInvite people to projects and change their project roles.high
users:manageCreate, edit and remove workspace accounts.high
tasks:readRead task boards and sprints.low
tasks:writeCreate, edit, move and delete tasks and sprints.medium
ai:runRun AI analysis, queries, validation, plans and fixes. Uses the workspace AI quota.medium
adminDeveloper settings, workspace policies, and AI and code settings.high
jobs:runTrigger 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-After header.
  • Send an Idempotency-Key header with a POST to make it safe to retry. A repeat with the same key returns the first response, marked Idempotent-Replayed: true, instead of running twice. Keys are kept for 24 hours.
  • Errors are JSON with an error message: 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) and offset for paging and report a total.

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.

List bugs
curl -sS "https://api.bugslate.com/api/bugs?status=new,in_progress&severity=critical,high&limit=50" \
  -H "Authorization: Bearer $BUGSLATE_API_KEY"
Response (shortened)
{
  "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": { ... } }.

Create a 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"]
  }'
Fields for creating a bug
FieldValues
titleText, up to 200 characters. Defaults to "Untitled bug".
description, stepsText, up to 8,000 characters each.
expected, actualText, up to 4,000 characters each.
severitycritical, high, medium (default) or low.
priorityurgent, high, medium (default) or low. p0 to p3 are accepted too.
typeui, functional (default), performance, crash, security, data, network or other.
statusnew (default), in_progress, resolved, testing, closed or wont_fix.
project_id, assignee_id, device_id, environment_idIds from the projects, users, devices and environments endpoints.
tagsUp to 30 tags of up to 40 characters.
page_url, environment, app_versionWhere and on what the bug happened.
due_atAn 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.

Session
MethodPathScope
GET/api/auth/meRead the user the key acts asAny key
PUT/api/auth/active-projectChange the active projectFull-access key only
PATCH/api/auth/profileEdit the profile or passwordFull-access key only
POST/api/auth/logoutSign outFull-access key only
Bugs
MethodPathScope
GET/api/bugsList bugsbugs:read
GET/api/bugs/changesPoll bug changesbugs:read
GET/api/bugs/export.csvExport bugsbugs:read
POST/api/bugs/duplicatesCheck for duplicatesbugs:read
POST/api/bugs/batchBulk-edit bugsBy field: status needs bugs:status, assignee_id needs bugs:assign, anything else bugs:edit
POST/api/bugs/importImport bugsbugs:create
POST/api/bugsCreate bugsbugs:create
GET/api/bugs/:idRead bugsbugs:read
GET/api/bugs/:id/linksRead bug linksbugs:read
POST/api/bugs/:id/linksLink code to bugsbugs:edit
DELETE/api/bugs/:id/links/:linkIdUnlink code from bugsbugs:edit
GET/api/bugs/:id/historyRead bug historybugs:read
GET/api/bugs/:id/exportExport bugsbugs:read
PATCH/api/bugs/:idEdit bugsBy field: status needs bugs:status, assignee_id needs bugs:assign, anything else bugs:edit
DELETE/api/bugs/:idDelete bugsbugs:delete
POST/api/bugs/:id/attachmentsAttach files to bugsbugs:edit
POST/api/bugs/:id/commentsComment on bugscomments:write
PATCH/api/bugs/:id/comments/:commentIdEdit commentscomments:write
DELETE/api/bugs/:id/comments/:commentIdDelete commentsbugs:delete
GET/api/bugs/:id/relationsRead bug relationsbugs:read
POST/api/bugs/:id/relationsRelate bugsbugs:edit
DELETE/api/bugs/:id/relations/:relIdUnrelate bugsbugs:edit
POST/api/bugs/:id/duplicate-ofMark duplicatesbugs:edit
DELETE/api/bugs/:id/duplicate-ofUnmark duplicatesbugs:edit
GET/api/bugs/:id/watchRead watch statebugs:read
PUT/api/bugs/:id/watchWatch bugsbugs:edit
DELETE/api/bugs/:id/watchUnwatch bugsbugs:edit
Uploads
MethodPathScope
POST/api/uploadsUpload attachmentsbugs:create or bugs:edit
Projects
MethodPathScope
GET/api/projectsList projectsprojects:read
POST/api/projectsCreate projectsprojects:manage
GET/api/projects/:idRead projectsprojects:read
PATCH/api/projects/:idEdit projectsprojects:manage
DELETE/api/projects/:idDelete projectsprojects:manage
GET/api/projects/:id/environmentsRead environmentsprojects:read
POST/api/projects/:id/environmentsManage environmentsprojects:manage
PATCH/api/projects/:id/environments/:envIdManage environmentsprojects:manage
DELETE/api/projects/:id/environments/:envIdManage environmentsprojects:manage
GET/api/projects/:id/devicesRead project devicesprojects:read
GET/api/projects/:id/membersList project membersprojects:read or members:manage
POST/api/projects/:id/inviteInvite people to projectsmembers:manage
PATCH/api/projects/:id/members/:userIdManage project membersmembers:manage
DELETE/api/projects/:id/members/:userIdManage project membersmembers:manage
DELETE/api/projects/:id/invites/:inviteIdManage project invitesmembers:manage
GET/api/projects/:id/buildsRead buildsprojects:read
POST/api/projects/:id/builds/syncSync buildsprojects:manage
GET/api/projects/:id/builds/webhookRead the build webhook secretprojects:manage
POST/api/projects/:id/builds/webhook/rotateRotate the build webhook secretprojects:manage
GET/api/projects/:id/slackManage integrationsprojects:manage
PUT/api/projects/:id/slackManage integrationsprojects:manage
DELETE/api/projects/:id/slackManage integrationsprojects:manage
POST/api/projects/:id/slack/testManage integrationsprojects:manage
PUT/api/projects/:id/slack/status-postManage integrationsprojects:manage
GET/api/projects/:id/slaRead the SLA policyprojects:read
PUT/api/projects/:id/slaChange the SLA policyprojects:manage
GET/api/projects/:id/intakeRead intake settingsprojects:read
PUT/api/projects/:id/intakeChange intake settingsprojects:manage
POST/api/projects/:id/intake/rotateRotate the intake tokenprojects:manage
GET/api/projects/:id/status-updatesRead status updatesprojects:read
GET/api/projects/:id/status-updates/person/:userIdRead status updatesprojects:read
PUT/api/projects/:id/status-updates/:dayWrite status updatesFull-access key only
DELETE/api/projects/:id/status-updates/:dayWrite status updatesFull-access key only
GET/api/projects/:id/status-updates/:day/historyRead status updatesprojects:read
Devices
MethodPathScope
GET/api/devicesList devicesprojects:read
GET/api/devices/poolList devicesprojects:read
PUT/api/devices/:id/projectManage devicesprojects:manage
POST/api/devicesManage devicesprojects:manage
DELETE/api/devices/:idManage devicesprojects:manage
Users
MethodPathScope
GET/api/users/assignableList assignable peoplebugs:assign or projects:read
GET/api/usersList usersusers:manage
GET/api/users/:id/projectsManage usersusers:manage
POST/api/usersManage usersusers:manage
POST/api/users/:id/resendManage usersusers:manage
POST/api/users/:id/reset-linkManage usersusers:manage
DELETE/api/users/:idManage usersusers:manage
PATCH/api/users/:idManage usersusers:manage
Tasks
MethodPathScope
GET/api/tasksRead taskstasks:read
POST/api/tasks/sprintsManage sprintstasks:write
PATCH/api/tasks/sprints/:idManage sprintstasks:write
POST/api/tasksManage taskstasks:write
PATCH/api/tasks/:idManage taskstasks:write
PUT/api/tasks/:id/moveManage taskstasks:write
DELETE/api/tasks/:idManage taskstasks:write
Saved queries
MethodPathScope
GET/api/queriesRead saved queriesbugs:read
GET/api/queries/:idRead saved queriesbugs:read
POST/api/queriesManage saved queriesbugs:edit
PATCH/api/queries/:idManage saved queriesbugs:edit
DELETE/api/queries/:idManage saved queriesbugs:edit
PUT/api/queries/:id/pinManage saved queriesbugs:edit
PUT/api/queries/:id/alertManage saved query alertsbugs:edit
Dashboards
MethodPathScope
GET/api/dashboard/overviewRead dashboardsbugs:read
GET/api/dashboard/trendsRead dashboardsbugs:read
POST/api/dashboard/trends/insightRun AIai:run
GET/api/dashboard/project/:idRead dashboardsbugs:read
AI
MethodPathScope
GET/api/ai/statusRun AIai:run
POST/api/ai/analyzeRun AIai:run
GET/api/ai/query/configRun AIai:run
POST/api/ai/queryRun AIai:run
PUT/api/ai/query/settingsChange AI settingsadmin
Code and GitHub
MethodPathScope
GET/api/code/configRead code AI settingsai:run or admin
PUT/api/code/settingsChange code AI settingsadmin
GET/api/code/github/statusManage the GitHub connectionadmin
GET/api/code/github/startManage the GitHub connectionadmin
GET/api/code/github/reposManage the GitHub connectionadmin
GET/api/code/github/branchesManage the GitHub connectionadmin
POST/api/code/github/disconnectManage the GitHub connectionadmin
GET/api/code/projects/:id/repoRead repository settingsprojects:read
PUT/api/code/projects/:id/repoManage repository settingsprojects:manage
DELETE/api/code/projects/:id/repoManage repository settingsprojects:manage
GET/api/code/projects/:id/github/branchesRead repository settingsprojects:read
POST/api/code/bugs/validate-batchRun AIai:run
GET/api/code/bugs/:id/validate-targetRun AIai:run
POST/api/code/bugs/:id/validateRun AIai:run
POST/api/code/bugs/:id/planRun AIai:run
POST/api/code/bugs/:id/fixRun AIai:run
GET/api/code/bugs/:id/aiRead AI resultsbugs:read
Developer and workspace settings
MethodPathScope
Any/api/developer/*Manage developer settingsadmin
GET/api/workspace/policiesRead workspace policiesadmin
PUT/api/workspace/policiesChange workspace policiesadmin
PATCH/api/workspaceChange workspace settingsadmin
Scheduled jobs
MethodPathScope
POST/api/jobs/tickRun scheduled jobsjobs:run
GET/api/jobsRead scheduled job statusjobs:run or admin
Notifications
MethodPathScope
Any/api/notificationsUse notificationsFull-access key only
Any/api/notifications/*Use notificationsFull-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.

Start your free trial 14-day free trial · then $9.99/user/mo