# contractors.create

Add a contractor with displayName, legalName, email (unique in the organization), an optional two-letter country, an optional jobRoleId (an active role from contractorOps.roles.list; add one with contractorOps.roles.save) and idempotencyKey. No invitation is sent: invite them with contractors.invite, or share the link from contractors.invitations.link.

`POST /api/v1/accounting/contractors.create`

Permissions: `accounting:read`, `accounting:write` · Roles: admin, finance · Idempotency key required

MCP tool: `accounting_contractors_create`

## Fields

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `displayName` | string | Yes | 1–200 characters. |
| `legalName` | string | Yes | 1–300 characters. |
| `email` | string (email) | Yes | An email address. at most 320 characters. |
| `country` | string |  | Two-letter country or province code. |
| `jobRoleId` | string (ID) or null |  |  |
| `idempotencyKey` | string | Yes | Any unique text you generate once per intended change, so a retried request only happens once. Send it as the Idempotency-Key header instead if you prefer; if you send both they must match. 8–150 characters. |

## Example request

```bash
curl https://app.getoatmilk.com/api/v1/accounting/contractors.create \
  -H "Authorization: Bearer $OATMILK_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "displayName": "Synthetic Ventures Inc.",
  "legalName": "Synthetic Ventures Inc.",
  "email": "finance@example.com"
}'
```

Reference page: https://app.getoatmilk.com/docs/api/contractors.create
