Assessments
Assessments are the core building block of Gradient. Each assessment defines a task, time limits, available data sources, and a scoring rubric.List Assessments
Response
Response
Get Assessment
Response
Response
orgBranding is null when the org row can’t be loaded.Update Assessment
name, role, roleId, roleIds, is_active, jd_link, due_date, send_feedback, feedback_delay_hours, timer_mode, pause_between_phases. Any org member or API key can change these.
Content fields: task_prompt, phases, scoring_rubric, connector_config, candidate_permissions, admin_guide, task_outline, setup_time_minutes, task_time_minutes, bonus_phase_enabled, bonus_phase_minutes. Only Gradient staff can change these. If a request from another caller includes a content field, the API returns 403 and changes nothing. To change the content of an assessment, contact hi@trygradient.ai.
An assessment on a retired scoring version (a rubric older than 7.0) is read-only. A request that includes a content field returns 409 and changes nothing. Settings fields still work.
Role
roleIds is the full list of roles rows the assessment is used for. It can be empty: the assessment is then used for no role. The server links every role in the list and unlinks every other role. It writes the role titles, in alphabetical order and joined with commas, to the denormalized role string. Sessions keep the role they were invited for when you remove that role from the list. A value that is not a list, or an item that is not a string, returns a validation error. An unknown or soft-deleted role id returns a not_found error.
roleId is the id of one roles row. It is the same as roleIds with one item: the assessment is then used for that role only, and every other role is unlinked. When you send both, roleIds wins. role remains independently settable as a raw string for callers that don’t use roles; when you also send roleId or roleIds, the role titles win.
send_feedback and feedback_delay_hours are still accepted for backward compatibility but are inert — automated candidate feedback is not currently delivered.Candidate Permissions
Thecandidate_permissions field is a JSON object controlling what candidates can do during the assessment:
can_browse_connector_documents is deprecated. Candidates always see connector data files in the workspace Files cabinet, so the key has no effect and the admin UI no longer shows it. The API still accepts and returns it, and stored values are unchanged.can_use_scratchpad is off by default and no longer a toggle in the admin UI. It is also forced off for every v7 session (v7 scores the deliverable only), so GET /api/assessments/:id returns it as false for a v7 org even if a stored value says true. The stored value itself is not changed.Response
Response
Reviewer Documents
403 — the answer-key document would expose the grading key.
brief returns the candidate-facing task brief; key returns the answer key (what strong sessions do, watchouts, the “if they get it wrong” notes, and the sample strong session).The phase id, as it appears in the assessment’s
phases array (or reflection). Numbering follows the Reviewer Guide, so the ungraded Explore warm-up is excluded..docx with Content-Disposition: attachment; the filename leads with the assessment name and phase. A phase/kind pair with no content (for example a phase whose answer key has not been generated) returns 404.
Delete Assessment
deleted_at timestamp). This is the everyday delete, and it is reversible with Restore Assessment. The assessment no longer appears in the admin lists, but all sessions, scores, connector data, and files stay intact. In-flight sessions and scoring keep working, because by-id reads do not filter soft-deleted assessments. Requires owner or admin. To erase the data permanently, use Purge Assessment.
Response
Response
Restore Assessment
deleted_at). Requires owner or admin, the same as delete.
Response
Response
Purge Assessment
assessments.purge). API-key callers have no role and are refused: a machine credential cannot trigger an irreversible erasure.
Response
Response
Invite Candidate
sendEmail is false.
ISO 8601 per-candidate deadline (overrides assessment-level deadline). A deadline in the past returns
400.When
false, Gradient does not send its default invitation email — the caller is expected to deliver a custom email using the returned inviteUrl. Only affects newly-created sessions; idempotent hits on an existing session never re-send (use POST /api/assessments/:id/invite/resend instead).The role this candidate is invited for. It must be a role that is linked to the assessment, else the request returns
400. When you omit it and the assessment links to exactly one role, the session gets that role. When the assessment links to several roles, send roleId: without it, the session has no role. The invite email names this role, also in an org’s custom invite email body.Response - 201 Created (new session)
Response - 201 Created (new session)
200 OK:
Response - 200 OK (existing session)
Response - 200 OK (existing session)
Batch Invite Candidates
POST /api/assessments/:id/invite: creates/re-uses a candidate and session for each {name, email} pair in one request, instead of one HTTP round trip per candidate. Each row is processed independently — one row failing (e.g. a bad email) doesn’t stop the rest — and the response reports a per-row outcome in the same order as the request.
Array of
{ name: string, email: string, dueDate?: string }. Max 500 per request; larger pastes should be split client-side.Same semantics as the single-invite endpoint, applied to every row. A role that is not linked to the assessment fails each row with
status: "error".Response - 200 OK
Response - 200 OK
Resend Invite Email
409 and sends no email. Move the deadline later first.
Response
Response
Export Invited Candidates (CSV)
Content-Type: text/csv, Content-Disposition: attachment). Every row is one session; every row has every column, blank where a column doesn’t apply to that row. Timestamps render as YYYY-MM-DD HH:mm in the org’s time zone (Excel/Sheets parse this as a datetime). Org-scoped; admin or API-key auth.
Each export writes one candidate.data_exported entry to the organization’s audit log for each candidate in the file. The log keeps one entry per caller, candidate and action per hour.
Columns, in order:
- Role:
role, role_external_id. The role the candidate was invited for, and that role’s external ID. Both are blank when the session has no role, androle_external_idis blank when the role has no external ID. - Fixed:
name, email, link, status, test_candidate, invited_at, started_at, submitted_at, due_at, timezone, time_taken_minutes, scored_at, score, level, feedback_state, feedback_sent_at, flag_count, flags, summary.linkis the candidate’s absolute/assess/:tokenURL;test_candidateistrue/false(email matches a test/internal pattern, same rule as Billing);levelis the overall level word that the candidate page shows next to the score (Advanced,Proficient,Developing,Emerging, orNot Shown), blank when the session has no score;feedback_stateisnot_scored,not_sent, orsent.flag_countis the number of integrity flags on the score (blank when the session has no score).flagslists the flag names only, each once, separated by;:Work from outside the session,Possible manipulation attemptorProduct issue. It isNonefor a scored session with no flags, and blank when the session has no score. The candidate-specific details are on the candidate page, not in the export, so an ATS can import this column as a multiple-option field.summaryis the reviewer summary of the session as plain text, the same text as the Assessment summary in the ATS handoff, but not cut short. It is blank when the session has no score. - Human review (only when the org requires human review, or a session in the export has a recorded decision):
review_status, review_note, reviewed_at, reviewed_by, aftersummary.review_statusisNeeds review,Moving on, orNot moving on, and is blank for a session that is not submitted.reviewed_byis the reviewer’s name, and is blank for an API key or a removed member. - Category levels (blank on an unscored session):
work_quality_level, ai_fluency_level. Each is the level word that the candidate page shows for that category (Advanced,Proficient,Developing,Emerging, orNot Shown), and includes reviewer overrides. - v7 numeric sub-scores (blank on an unscored session or a score from a retired version):
work_quality_score, setup_score, direction_score, judgment_score, mindset_score— each0-100. - Priority Skills evidence: one
priority_<skill>_evidencecolumn per distinct Priority Skill name on this assessment’s rubric, alphabetical (<skill>is the name, lowercased with non-alphanumerics collapsed to_). Each cell is that skill’s trap outcomes and cited examples, one per line — blank when the skill wasn’t scored evidence-only or the session predates it.
Response - 200 OK (text/csv)
Response - 200 OK (text/csv)
Export Selected Invited Candidates (CSV)
GET /api/assessments/:id/sessions/export, but only for the sessions you list, in the order you list them. The endpoint skips a session ID that is not in this assessment or not in your organization. Org-scoped; admin or API-key auth. Reviewers can use it. Each export writes the same candidate.data_exported audit entries as the GET export.