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

# Submit a partner application

> Submits an ATS applicant to Alex on behalf of a shared customer. `202` is an acknowledgement: exactly one callback follows every accepted request. This endpoint has a lower rate limit of its own.

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

| ATS | `external_applicant_id` | `external_job_id` | `external_candidate_id` |
| - | - | - | - |
| Bullhorn | `JobSubmission` id | Recommended | Optional |
| Tracker | `OpportunityResource` id | Recommended | Optional |
| Loxo | `Candidate` id on the job | **Required** | Optional |

`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](https://docs.alex.com/api-reference/v2/idempotency.md).

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.

| `status` | Meaning |
| - | - |
| `invited` | The applicant was invited. The payload includes their interview link. |
| `not_eligible` | The customer's workflow screened the applicant out. Don't redirect them. |
| `error` | The application couldn't be processed. Don't redirect the applicant. |

```json theme={null}
{
  "applicationId": "4c5f8811-4c3d-4e2d-b25a-c6d2b001ce72",
  "status": "invited",
  "interviewLink": "https://meet.alex.com/..."
}
```

> [!NOTE]
>
> 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:

```json theme={null}
{
  "applicationId": "4c5f8811-4c3d-4e2d-b25a-c6d2b001ce72",
  "status": "not_eligible",
  "reason": "workflow_completed_without_callback"
}
```

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.

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


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