# profile.save

Update your own legal name, roles, contact details, address, sales tax, and corporation details.

`POST /api/v1/contractor/profile.save`

Permissions: `contractor:read`, `contractor:write` · Roles: contractor · Idempotency key required · Send `expectedRevision`

MCP tool: `contractor_profile_save`

## Fields

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `expectedRevision` | integer or null |  | The record's current revision, from the last time you read it. If someone changed the record since, the request is refused with a conflict so you can reload and check before trying again. |
| `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–200 characters. |
| `profile` | object | Yes | No other fields. |
| `profile.legalName` | string or null |  |  |
| `profile.roles` | array of strings |  | at most 12 items; each 1–80 characters. |
| `profile.phone` | string or null |  |  |
| `profile.discordUsername` | string or null |  |  |
| `profile.githubUsername` | string or null |  |  |
| `profile.linkedinUrl` | string or null |  |  |
| `profile.portfolioUrl` | string or null |  |  |
| `profile.customContacts` | array of objects |  | at most 10 items. |
| `profile.customContacts[].label` | string | Yes | 1–60 characters. |
| `profile.customContacts[].value` | string | Yes | 1–500 characters. |
| `profile.address` | object |  | No other fields. |
| `profile.address.line1` | string |  | at most 200 characters. |
| `profile.address.line2` | string |  | at most 200 characters. |
| `profile.address.city` | string |  | at most 120 characters. |
| `profile.address.region` | string |  | at most 120 characters. |
| `profile.address.postalCode` | string |  | at most 20 characters. |
| `profile.address.country` | string |  | Matches ^([A-Za-z]{2})?$. |
| `profile.notes` | string or null |  | Notes kept with the record. |
| `profile.tax` | object |  | No other fields. |
| `profile.tax.chargesSalesTax` | boolean |  | Default `false`. |
| `profile.tax.salesTaxRateBps` | integer or null |  |  |
| `profile.tax.salesTaxNumber` | string or null |  |  |
| `profile.tax.province` | enum or null |  | One of: `AB`, `BC`, `MB`, `NB`, `NL`, `NS`, `NT`, `NU`, `ON`, `PE`, `QC`, `SK`, `YT`. |
| `profile.tax.operatesAsCorporation` | boolean |  | Default `false`. |
| `profile.tax.corporationName` | string or null |  |  |
| `profile.tax.businessNumber` | string or null |  |  |
| `profile.tax.corporationAddress` | object or null |  |  |
| `profile.tax.corporationAddress.line1` | string |  | at most 200 characters. |
| `profile.tax.corporationAddress.line2` | string |  | at most 200 characters. |
| `profile.tax.corporationAddress.city` | string |  | at most 120 characters. |
| `profile.tax.corporationAddress.region` | string |  | at most 120 characters. |
| `profile.tax.corporationAddress.postalCode` | string |  | at most 20 characters. |
| `profile.tax.corporationAddress.country` | string |  | Matches ^([A-Za-z]{2})?$. |
| `profile.tax.signerName` | string or null |  |  |
| `profile.tax.signerTitle` | string or null |  |  |
| `profile.tax.usTaxForm` | enum or null |  | One of: `w9`, `w8ben`, `w8bene`, `unsure`. |
| `profile.tax.usTaxClassification` | enum or null |  | One of: `individual`, `c_corporation`, `s_corporation`, `partnership`, `trust_estate`, `llc_c`, `llc_s`, `llc_p`, `other`. |

## Example request

```bash
curl https://app.getoatmilk.com/api/v1/contractor/profile.save \
  -H "Authorization: Bearer $OATMILK_OAUTH_TOKEN" \
  -H "X-Accounting-Organization: $OATMILK_ORGANIZATION_ID" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "profile": {}
}'
```

Reference page: https://app.getoatmilk.com/docs/api/contractor/profile.save
