Skip to main content

API Overview

Base URL: https://app.trygradient.ai All API endpoints are served from the same domain as the admin portal. Requests must include valid authentication.

Authentication

Gradient supports two authentication methods:

Pagination

List endpoints accept optional pagination parameters:
integer
default:"20"
Results per page (1-100)
integer
default:"0"
Number of results to skip
Paginated responses include metadata:

Error Responses

All errors follow a consistent format:
code is stable. Branch on it. message is written for people, carries live values, and can change at any time, so do not match on its text. A few responses add fields beside error, never inside it. For example a missing deliverable returns expected: true so a viewer can show an empty state instead of an error. Some endpoints return a more specific code than the table gives, when one status covers several different failures. The calibration endpoints are the main case: wrong_channel, no_anchors, no_grades, no_disagreement and llm_error are all 400. Treat an unknown code as its status class.
The ATS partner endpoints under /api/ats/ do not use this format. Greenhouse and Ashby set the request and response shapes for those endpoints, so they follow each vendor’s partner specification. See ATS Integrations.