---
title: "Apply a candidate status-change email decision"
method: POST
path: "/v1/applications/{application_id}/email-decision/apply"
tags: ["Other"]
---

# Apply a candidate status-change email decision

`POST /v1/applications/{application_id}/email-decision/apply`

## Request

- Base URL: `https://api.yardstick.team`
- URL: `https://api.yardstick.team/v1/applications/{application_id}/email-decision/apply`
- Auth: HTTP bearer

Apply a candidate status-change email decision

**Required scopes:** `applications:write`, `applications:transition_status`, `communications:write`

Secret keys only. Applies the Application status transition and records the candidate email decision intent. Use `Idempotency-Key` for retries; replaying the same key with the same decision returns the prior result. `send_now` additionally requires `communications:send` and is rejected for approval-required communications.

**Example (curl):**

```bash
curl -X POST https://api.yardstick.team/v1/applications/app_abc123/email-decision/apply \
  -H 'Authorization: Bearer ys_sk_live_…' \
  -H 'Content-Type: application/json' \
  -H 'Idempotency-Key: 7c3a…' \
  -d '{"status":"Interviewing","decision":"review_edit"}'
```

**Example (TypeScript):**

```ts
await fetch("https://api.yardstick.team/v1/applications/app_abc123/email-decision/apply", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.YS_API_KEY}`,
    "Content-Type": "application/json",
    "Idempotency-Key": crypto.randomUUID(),
  },
  body: JSON.stringify({ status: "Interviewing", decision: "review_edit" }),
}).then((r) => r.json());
```

## Headers

- `Idempotency-Key` string
- `X-Request-Id` string

## Request body

- object
  - `status` 'Applied' | 'Scheduling' | 'Screening' | 'Interviewing' | 'Offer' | 'Hired' | 'Offer Rejected' | 'Disqualified' | 'Withdrawn' | 'On Hold', required
  - `decision` 'send_now' | 'review_edit' | 'dont_send', required
  - `personalization_instruction` string, nullable
  - `requested_sender_identity_id` string, uuid, nullable
  - `batch_id` string, uuid, nullable
  - `is_bulk` boolean

## Response `200`

Success

- object

## Other responses

- `400`: Invalid request
- `401`: Authentication failure
- `403`: Permission denied (scope or feature flag)
- `404`: Resource not found. The error uses the resource-specific code and param names the exact body field or path parameter that referenced it.
- `409`: Conflict (e.g. idempotency key reuse with different body)
- `429`: Rate limited
- `500`: Internal error

---

[API](https://skmtc.dev/yardstick/apis/yardstick-public-api.md) · [All operations](https://skmtc.dev/yardstick/apis/yardstick-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/yardstick/apis/yardstick-public-api/revisions/bef1d2eaaaa1?raw)
