Applications

Create an application

Create an application

Required scopes: applications:write

Use this endpoint when a user asks to create or add a candidate for a job. Create or reuse the Person first, then create the Application; the resulting record appears through read-only opportunity views and the app's Candidates surfaces. If the prerequisite Person is unavailable, the response is 404 person_not_found with param: person_id; if the prerequisite Job Posting is unavailable, it is 404 job_posting_not_found with param: job_posting_id. A later application read still uses application_not_found with param: application_id.

Example (curl):

curl -X POST https://api.yardstick.team/v1/applications \
  -H 'Authorization: Bearer ys_sk_live_…' \
  -H 'Content-Type: application/json' \
  -H 'Idempotency-Key: 7c3a…' \
  -d '{"person_id":"per_abc123","job_posting_id":"jp_xyz789"}'

Example (TypeScript):

await fetch("https://api.yardstick.team/v1/applications", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.YS_API_KEY}`,
    "Content-Type": "application/json",
    "Idempotency-Key": crypto.randomUUID(),
  },
  body: JSON.stringify({
    person_id: "per_abc123",
    job_posting_id: "jp_xyz789",
  }),
});
post/v1/applications

Request

  • Base URL: https://api.yardstick.team
  • URL: https://api.yardstick.team/v1/applications
  • Auth: HTTP bearer

Headers

Idempotency-Keystring

Supported for safe retry. Reuse the same key to receive the cached response without repeating the operation.

X-Request-Idstring

Optional caller-supplied request identifier. Values must match ^[A-Za-z0-9_-]{1,128}$; a valid value is echoed in the response X-Request-Id header, otherwise the API generates one.

Request body

person_idstring required
job_posting_idstring required

Response

Success

is_candidateboolean required

Explicitly admitted to the interview process; Review Applications and Candidates are mutually exclusive per application.

candidate_admission_idstring uuid nullable required

Raw current admission UUID, required as expected_admission_id when undoing.

candidate_admitted_atstring nullable required
candidate_admission_originstring nullable required
candidate_activity_started_atstring nullable required

Non-null after durable candidate activity; undo is then unavailable.

idstring required

Display id, e.g. app_<base32>

object'application' required
person_idstring required

Canonical per_... person id.

statusstring required
stagestring required

Deprecated free-form stage label. Status transitions never change it; read pipeline_stage_id for the pipeline position.

pipeline_stage_idstring nullable required

Display id (pst_<base32>) of the configured pipeline stage (board column) the application sits in; every status transition moves it to the stage mapped to the new status. Null when no configured stage is assigned.

job_idstring nullable required

Canonical job_... Job id when the application is linked to a Job; null for legacy or unlinked applications.

job_posting_idstring nullable required
livemodeboolean required
createdstring nullable required
updatedstring nullable required
archived_atstring nullable required

ISO-8601 UTC; non-null when the application has been archived.

archived_reasonstring nullable required

Free-text archive reason captured at archive time; nullable.

Changes

No recorded changes to this operation across all 1 revision of this API.