Skip to main content

Roles

A role is a job opening you’re hiring for. Roles are stored independently of assessments, and an assessment can be linked to one or more roles. A role holds a title, and an optional job description (markdown) and/or posting URL.

List Roles

Returns the org’s roles (newest first), each with a count of linked assessments.

Create Role

string
required
The role title, e.g. “Senior Product Manager”.
string
The job description body (markdown). Optional.
A URL to the job posting. Optional.
string
Your own ID for the role, for example the requisition ID in your ATS. Optional, up to 100 characters. It must be unique among your organization’s live roles, else the request returns 409. The candidate CSV exports it in the role_external_id column. An API key can set it. A signed-in caller must be an owner or an admin, else the request returns 403.
string[]
The recruiters (user ids) to put on the new role. Every user must be in your organization, else the request returns 400 and no role is created. Optional, unless your organization sends candidate emails only to a role’s recruiters: then at least one recruiter is required, else the request returns 400.
Returns { role } with a 201 status.

Import Roles from ATS

Bulk-create roles from open jobs in a connected ATS. One role is created per selected job, with its title and job description filled in from the ATS. Jobs already linked to a role (same provider and job id) are auto-skipped, so the call is idempotent — re-running it never creates duplicate roles. Requires the ATS integrations feature to be enabled for the org.
string
required
The ATS provider to import from, e.g. ashby or greenhouse.
array
required
The jobs to import. Each item is { jobId, title? }, where jobId is the ATS job’s external id. title is optional and used only for skip/failure display.
Returns { imported, skipped, failed }, where imported is the list of created roles ({ jobId, roleId, title }), skipped covers jobs already imported, and failed covers jobs whose detail fetch or role creation errored.

Get Role

Returns a single role scoped to your organization, with its recruiters and hiring managers in members. 404 if it does not exist or has been deleted.

Update Role

string
New role title. Cannot be set to empty.
string
Replace the job description body.
Replace the job posting URL.
string
Replace your own ID for the role. Send null or "" to clear it. It must be unique among your organization’s live roles, else the request returns 409. An API key can change it. A signed-in caller must be an owner or an admin, else the request returns 403.
string[]
The full list of hiring managers (user ids) on this role. It replaces the current list. Send [] to remove all. Every user must be in your organization. (Update-only: not accepted by Create Role.)
string[]
The full list of recruiters (user ids) on this role. It replaces the current list. Every user must be in your organization. Send [] to remove all, unless your organization sends candidate emails only to a role’s recruiters: then the list cannot be emptied, and [] returns 400. Create Role also accepts this field.
string
deprecated
Deprecated. Use hiringManagerIds. An id sets the list to that one user. null clears the list.
string
deprecated
Deprecated. Use recruiterIds. Same rules as hiringManagerId.
The response has the updated role and its members, the same shape as Get Role. Each person added or removed writes a role.member_added or role.member_removed entry to the audit log.

Add Role Member by Email

Adds a recruiter or hiring manager by email. When a user in your organization has that email, that user goes on the role. When no user has it, Gradient creates the person as a reviewer. If your organization does not use SSO, Gradient sends them an invite email. If it uses SSO, Gradient sends no email, and their first SSO sign-in links to that user. Only an owner or admin, in a signed-in session, can add a person who is not in the organization yet. Other callers get 403. If your organization enforces SSO, the email must be one that SSO can sign in: on one of your auto-join domains, or, with no auto-join domains, not a personal provider such as gmail.com. Other emails get 400.
string
required
The person’s email address.
string
required
recruiter or hiring_manager.
userIds is the full list of users of that kind now on the role. inviteEmailSent is true when Gradient created the person and sent them an invite email.

Delete Role

Soft-deletes the role (sets deleted_at), open to any org member. Refused with a 409 if the role is still linked to any assessment that has not itself been deleted — archive or reassign those assessments first, or link them to a different role. Restore the role from the trash to undo.

Restore Role

Restores a soft-deleted role from the trash back to the active list (clears deleted_at). Open to any org member.