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.

ParameterTypeDescription
pageintegerPage number (default: 1)
per_pageintegerResults per page, max 100 (default: 20)
querystringFilter 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 StatusCodeDescription
400BAD_REQUESTInvalid parameters or request body
401UNAUTHORIZEDMissing or invalid API token
403FORBIDDENAuthenticated user lacks permission
404NOT_FOUNDRequested resource does not exist
429RATE_LIMITEDToo many requests — back off and retry
500INTERNAL_ERRORUnexpected server error