# tags.create

Create a project tag with name and idempotencyKey, and optionally parentId (a group; groups are one level deep), color (gray, red, orange, amber, green, teal, blue, purple or pink), description, aliases (other names people write), startsOn/endsOn (the event window) and budgetMinor with budgetCurrency. Active tag names are unique.

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

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

MCP tool: `accounting_tags_create`

## Fields

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `name` | string | Yes | A display name. 1–80 characters. |
| `description` | string |  | A short description. at most 500 characters. |
| `color` | enum |  | One of: `gray`, `red`, `orange`, `amber`, `green`, `teal`, `blue`, `purple`, `pink`. |
| `aliases` | array of strings |  | at most 10 items; each 2–60 characters. |
| `parentId` | string (ID) |  | The ID of the related record. |
| `startsOn` | string |  |  |
| `endsOn` | string |  |  |
| `budgetMinor` | string |  | An amount in cents (the currency's smallest unit), written as a whole-number string such as "1250" for $12.50. Whole number written as a string. |
| `budgetCurrency` | string |  | Three-letter currency code, such as CAD. |
| `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. |

## Example request

```bash
curl https://app.getoatmilk.com/api/v1/accounting/tags.create \
  -H "Authorization: Bearer $OATMILK_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "name": "Synthetic Ventures Inc."
}'
```

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