API reference
Integrations and issue trackers
Which provider a project uses, custom integrations and their documents, and links to issues in a tracker.
How to sign in, send a revision and read errors is on the overview.
The provider the project uses in each category
GET /api/projects/:id/integrations
Token: read. Role: viewer or above.
Choose the provider of a category
PUT /api/projects/:id/integrations/:category
Token: write. Role: admin or above.
| Body | Type | Required |
|---|---|---|
provider | text (up to 40 characters) | no |
enabled | true or false | no |
The project's custom integrations
GET /api/projects/:id/custom-integrations
Token: read. Role: viewer or above.
Register a custom integration
POST /api/projects/:id/custom-integrations
Its token and signing secret are shown once.
Token: write. Role: admin or above.
| Body | Type | Required |
|---|---|---|
manifest | any value | yes |
Change the manifest of a custom integration, or pause it
PATCH /api/custom-integrations/:id
Token: write. Role: admin or above.
| Body | Type | Required |
|---|---|---|
manifest | any value | no |
enabled | true or false | no |
position | whole number, 0 to 1000 | no |
Issue a new token and signing secret
POST /api/custom-integrations/:id/credentials
The old ones stop working.
Token: write. Role: admin or above.
Remove a custom integration
DELETE /api/custom-integrations/:id
Token: write. Role: admin or above.
The last 100 webhook deliveries
GET /api/custom-integrations/:id/deliveries
Token: read. Role: admin or above.
Press one of an integration's buttons
POST /api/custom-integrations/:id/actions/:actionId
Token: write. Role: contributor or above.
What integrations show on an asset's page
GET /api/assets/:id/integration-sections
Token: read. Role: viewer or above.
What integrations show on a version's page
GET /api/asset-versions/:id/integration-sections
Token: read. Role: viewer or above.
The integration and its manifest, to check that its token works
GET /api/integrations/v1/projects/:code/custom/:key
Token: read. Role: viewer or above.
Read a document back
GET /api/integrations/v1/projects/:code/custom/:key/documents/:surface/:subjectId
Token: read. Role: viewer or above.
Write the document shown on a page: a title and blocks
PUT /api/integrations/v1/projects/:code/custom/:key/documents/:surface/:subjectId
Token: integration. Role: contributor or above.
| Body | Type | Required |
|---|---|---|
title | text (up to 80 characters) | no |
blocks | list of one of 6 shapes (at most 30) | yes |
Remove a document
DELETE /api/integrations/v1/projects/:code/custom/:key/documents/:surface/:subjectId
Token: integration. Role: contributor or above.
The project's issue trackers
GET /api/projects/:id/issue-trackers
Token: read. Role: viewer or above.
Add an issue tracker
POST /api/projects/:id/issue-trackers
Token: write. Role: admin or above.
| Body | Type | Required |
|---|---|---|
kind | one of "jira", "linear", "cheats" | yes |
deployment | one of "cloud", "data_center" | no |
name | text (up to 80 characters) | yes |
baseUrl | text (up to 300 characters) | no |
credentialRef | text | yes |
Change an issue tracker
PATCH /api/issue-trackers/:id
Token: write. Role: admin or above.
| Body | Type | Required |
|---|---|---|
name | text (up to 80 characters) | no |
enabled | true or false | no |
The issues linked to a requirement
GET /api/requirements/:id/external-references
Token: read. Role: viewer or above.
Link an issue to a requirement
POST /api/requirements/:id/external-references
Token: write. Role: contributor or above.
| Body | Type | Required |
|---|---|---|
issue | text (up to 500 characters) | yes |
trackerId | id | no |
The issues linked to an asset
GET /api/assets/:id/external-references
Token: read. Role: viewer or above.
Link an issue to an asset
POST /api/assets/:id/external-references
Token: write. Role: contributor or above.
| Body | Type | Required |
|---|---|---|
issue | text (up to 500 characters) | yes |
trackerId | id | no |
The issues linked to a version
GET /api/asset-versions/:id/external-references
Token: read. Role: viewer or above.
Link an issue to a version
POST /api/asset-versions/:id/external-references
Token: write. Role: contributor or above.
| Body | Type | Required |
|---|---|---|
issue | text (up to 500 characters) | yes |
trackerId | id | no |
Read a linked issue from the tracker again
POST /api/external-references/:id/refresh
Token: write. Role: contributor or above.
Unlink an issue
POST /api/external-references/:id/archive
Token: write. Role: contributor or above.
Link an issue again
POST /api/external-references/:id/restore
Token: write. Role: contributor or above.