API Reference
Complete reference for the Adaptavist REST API. All endpoints are relative to your instance base URL, e.g. https://your-instance.adaptavist.net/api/v1.
Authentication
All requests must include a Bearer token in the Authorization header. Generate a personal API token from your account settings.
Authorization: Bearer <your-api-token>
Projects
List projects
GET
/projects
Returns a paginated list of all projects the authenticated user has access to.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number (default: 1) |
per_page | integer | Results per page, max 100 (default: 20) |
query | string | Filter by project name or key |
{
"projects": [
{ "id": "PRJ-1", "key": "PRJ", "name": "My Project", "lead": "user@example.com" }
],
"total": 1,
"page": 1,
"per_page": 20
}
Get project
GET
/projects/:id
Returns a single project by its ID or key.
Workflows
List workflows
GET
/projects/:id/workflows
Returns all workflows associated with the specified project.
Trigger workflow
POST
/projects/:id/workflows/:workflow_id/trigger
Manually triggers a workflow run. The request body accepts an optional inputs object whose keys match the workflow's declared input parameters.
{
"inputs": {
"environment": "staging",
"notify": true
}
}
Error Codes
All error responses follow a consistent shape:
{
"error": {
"code": "NOT_FOUND",
"message": "Project PRJ-999 does not exist.",
"status": 404
}
}
| HTTP Status | Code | Description |
|---|---|---|
| 400 | BAD_REQUEST | Invalid parameters or request body |
| 401 | UNAUTHORIZED | Missing or invalid API token |
| 403 | FORBIDDEN | Authenticated user lacks permission |
| 404 | NOT_FOUND | Requested resource does not exist |
| 429 | RATE_LIMITED | Too many requests — back off and retry |
| 500 | INTERNAL_ERROR | Unexpected server error |