Skip to main content
POST
cURL
Use this endpoint if you are an assessment provider. Push each candidate’s assessment link to Alex as soon as you generate it, in the same step that writes the link back to the ATS. Alex delivers it in the candidate’s conversation. Authenticate with the customer’s API key. If you work with several customers, hold one key per customer.

How it fits the assessment flow

Your existing ATS integration doesn’t change. This endpoint adds one push, at the moment you generate the link:
  • The candidate moves to the assessment stage in the ATS, which sends you an assessment order, as today.
  • You generate the candidate’s link and write it back to the ATS, as today.
  • In the same step, you push the link to this endpoint. Alex matches it to the candidate’s conversation and delivers it within seconds.
  • Completion and scores go back to the ATS as today. Alex reads assessment status from the ATS to follow up with candidates who haven’t finished. No results pass through this API.
You don’t need to know which of the customer’s candidates Alex manages. Send every link for the customer’s account: Alex delivers the ones it can match and discards the rest without keeping them. The response’s status says which happened.

Identifying the application

Send external_application_id, or both external_job_id and external_candidate_id. A candidate id alone isn’t enough, because one candidate can have several applications. When you send external_application_id with external_job_id or external_candidate_id, they must agree. If they don’t, the link is discarded.
Don’t send candidate personal data, such as names, email addresses, phone numbers or scores. Alex reads what it needs from the ATS.

Retries

Sending the same link again is harmless and doesn’t message the candidate again. A new link for the same application replaces the old one and is delivered. Use a client timeout of about 10 seconds: Alex records the link and starts delivery before it responds. Retry network errors, timeouts and 5xx responses with backoff, for example after 30 seconds, 2 minutes and 10 minutes, then hourly for up to 24 hours.

Empty fields

An id field sent as null or a blank string, such as "order_id": "", counts as not sent.

Authorizations

X-API-Key
string
header
required

Your company's API key, from Settings → Integrations in Alex. The earlier API's api-key header is accepted too; if you send both headers they must carry the same key.

Headers

Idempotency-Key
string

A unique value, 1 to 255 characters, that makes the request safe to retry. See Idempotency.

Required string length: 1 - 255

Body

application/json
assessment_url
string<uri>
required

The candidate's assessment link. An https URL of at most 2,048 characters. Surrounding whitespace is trimmed.

Maximum string length: 2048
external_application_id
string | null

The ATS application id. Required unless both external_job_id and external_candidate_id are sent. null or a blank string counts as not sent.

external_job_id
string | null

The ATS job id. Required, with external_candidate_id, when external_application_id is absent. null or a blank string counts as not sent.

external_candidate_id
string | null

The ATS candidate id. Required, with external_job_id, when external_application_id is absent. null or a blank string counts as not sent.

order_id
string | null

Your own order or reference id, recorded for support. null or a blank string counts as not sent.

Response

Delivered or discarded.

Delivered

object
string
required

Always "assessment_link".

Allowed value: "assessment_link"
status
string
required

The link matched an application and is being delivered.

Allowed value: "delivered"
application_id
string
required

The id of the application the link was matched to.

assessment_url
string<uri>
required