---
title: "Create a person"
method: POST
path: "/v1/people"
tags: ["People"]
---

# Create a person

`POST /v1/people`

## Request

- Base URL: `https://api.yardstick.team`
- URL: `https://api.yardstick.team/v1/people`
- Auth: HTTP bearer

Create a person

**Required scopes:** `people:write`

Accepts both publishable (`ys_pk_*`) and secret (`ys_sk_*`) keys. Use a publishable key when posting from a browser intake form (the example below); use a secret key with `people:write` for server-to-server flows — the canonical create path before `POST /v1/applications`, which requires `person_id`.

**Example (curl):**

```bash
curl -X POST https://api.yardstick.team/v1/people \
  -H 'Authorization: Bearer ys_pk_live_…' \
  -H 'Content-Type: application/json' \
  -H 'Idempotency-Key: 7c3a…' \
  -d '{"email":"alex@example.com","name":"Alex Lee"}'
```

**Example (TypeScript):**

```ts
await fetch("https://api.yardstick.team/v1/people", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.YS_API_KEY}`,
    "Content-Type": "application/json",
    "Idempotency-Key": crypto.randomUUID(),
  },
  body: JSON.stringify({ email: "alex@example.com", name: "Alex Lee" }),
});
```

## Headers

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

## Request body

- object
  - `name` string
  - `email` string, email
  - `phone` string
  - `linkedin_url` string, uri
  - `resume_url` string, uri
  - `notes` string

## Response `200`

Success

- Person: Canonical person record for an applicant, lead, or contact.
  - `id` string, required: Display id, e.g. `per_<base32>`
  - `object` 'person', required
  - `name` string, nullable, required
  - `email` string, nullable, required
  - `phone` string, nullable, required
  - `linkedin_url` string, nullable, required
  - `resume_url` string, nullable, required
  - `notes` string, nullable, required
  - `livemode` boolean, required

## 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/35b5a6e88b35?raw)
