Skip to main content
POST
Ask a candidate for documents

Authorizations

Authorization
string
header
required

Supabase JWT — Authorization: Bearer <token>.

Body

application/json
candidate_id
string<uuid>
required

The candidate to ask (profile_interview.id).

documents
object[]
required

The documents to ask for, 1 to 10.

Required array length: 1 - 10 elements
merchant_id
string<uuid>

Optional company to act on. Admins and sub-merchant operators only; other callers always use their token's company.

application_id
string<uuid>

Optional: the candidate's application this is for (position_result.id); the e-mail then names its position.

message
string

Message to the candidate, at most 2000 characters.

Maximum string length: 2000
due_date
string

Due date (YYYY-MM-DD), today or later. After it the candidate is reminded once by e-mail (when notify is true).

Pattern: ^\d{4}-\d{2}-\d{2}$
notify
boolean
default:true

Default true: e-mail the candidate "Documents requested" now (and the one reminder after the due date). false: the request only shows on their application page.

dry_run
boolean
default:false

true: check everything and answer who would be e-mailed, without creating the request or sending anything.

Response

The request (or, on a dry run, what it would be) and the e-mail outcome.

dry_run
boolean
required

true when nothing was created or sent.

candidate_id
string<uuid>
required

The candidate (profile_interview.id).

notify
boolean
required

Whether the candidate is to be e-mailed.

email
enum<string>
required

The "Documents requested" e-mail: will_send (sent now, or at the time the company scheduled), not_requested (notify false), no_valid_email (the candidate has no usable address), suppressed (the company set this e-mail to Do not send).

Available options:
will_send,
not_requested,
no_valid_email,
suppressed
documents
object[]
required

The documents as they are (or would be) stored.

request_id
string<uuid>

The new request (profile_interview_document_request.id). Left out on a dry run.

candidate_name
string

Candidate's name, or e-mail when the name is empty.

candidate_email
string

The candidate's e-mail address, where the e-mail goes.

application_id
string<uuid>

The application (position_result.id).

position_id
string<uuid>

The application's position (position_def_set.id).

position_name
string

The position's name, as the e-mail shows it.

message
string

The message, trimmed.

due_date
string

The due date (YYYY-MM-DD).