Skip to main content
POST
cURL
Use this endpoint when you submit applicants to Alex on behalf of a shared customer. Authenticate with that customer’s API key. If you work with several customers, hold one key per customer. The key decides which customer’s ATS and jobs the request applies to. The job’s workflow must have a partner application trigger. Without one, the request fails with 409 partner_trigger_not_configured.

Identifiers by ATS

external_job_id or external_candidate_id sent as null or a blank string counts as not sent. When you send external_job_id, Alex checks the job and its workflow before calling the ATS, so errors come back sooner. Both optional ids are checked against the applicant record. A mismatch returns 400 parameter_invalid, with param naming the id.

Retries

Retrying is safe. The application is created once. A retry returns the same application_id with created: false, and still gets its own callback. Send an Idempotency-Key to get the original response back instead. See Idempotency. A 404 is final: the record doesn’t exist in the ATS. A temporary ATS outage returns 5xx, never 404, so always retry a 5xx.

Callbacks

Every 202 is followed by exactly one callback to your callback endpoint. Callbacks are delivered at least once, so handle them idempotently by applicationId and status. Other responses have no callback.
Callback payloads use the same field names as before: applicationId, status, reason and interviewLink. applicationId matches the application_id in the response.
The invited callback is sent by the customer’s workflow and usually arrives within seconds. A not_eligible or error callback comes either from the customer’s workflow, with the customer’s own messaging, or from Alex when the workflow ends without sending one:
Callbacks sent by Alex itself include an x-alex-callback-secret header with the secret agreed during onboarding. Check it before you trust the payload. A repeat submission of an applicant Alex has already processed doesn’t run the workflow again, so the candidate isn’t contacted twice. Its callback replays the settled outcome with "reason": "repeat_submission", and for invited, the same interviewLink. A repeat that arrives while the first submission is still being processed is answered by that submission’s single callback.
Because every 202 gets a callback, a timeout on your side only covers a crash. Hold the applicant on a short waiting page, redirect them when the invited callback arrives, and treat a timeout as not invited.

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
external_applicant_id
string
required

The ATS applicant record's id.

Minimum string length: 1
Example:

"9001"

external_job_id
string | null

The ATS job id the applicant applied to. Required for some ATSs. When sent, it is checked against the applicant record. null or a blank string counts as not sent.

external_candidate_id
string | null

The ATS candidate id. Optional; when sent, it is checked against the applicant record. null or a blank string counts as not sent.

Response

Accepted.

object
string
required

Always "partner_application".

Allowed value: "partner_application"
application_id
string
required

The application's id. Every callback for this applicant carries it.

Example:

"4c5f8811-4c3d-4e2d-b25a-c6d2b001ce72"

created
boolean
required

true when this request created the application, false when it already existed.