> ## Documentation Index
> Fetch the complete documentation index at: https://docs.alex.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Push an assessment link

> Delivers a candidate's assessment link in their conversation with Alex. A link that matches no application Alex manages is `discarded`, which is not an error.

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`.

| ATS | `external_application_id` | `external_job_id` / `external_candidate_id` |
| - | - | - |
| SmartRecruiters | The application id from the assessment order. | The ATS's internal job and candidate ids (UUIDs). |

> [!WARNING]
>
> 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.


## API Specification

The full API specification for this endpoint is available in the [documentation index](https://docs.alex.com/llms.txt).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.