Transactions

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:readaccounting:write

Who can call it

admin, finance

Retries

Idempotency key required

MCP

accounting_tags_create

Fields

  • namestringRequired

    A display name.

    1–80 characters

  • descriptionstring

    A short description.

    at most 500 characters

  • colorenum
    grayredorangeambergreentealbluepurplepink
  • aliasesarray of strings

    at most 10 items · each 2–60 characters

  • parentIdstring (ID)

    The ID of the related record.

  • startsOnstring
  • endsOnstring
  • budgetMinorstring

    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

  • budgetCurrencystring

    Three-letter currency code, such as CAD

  • idempotencyKeystringRequired

    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

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."
}'
Response
{
  "data": { … }
}

Try it

Try it

Checks your input with this action’s real schema and answers like the API, with synthetic data. No key needed, and nothing changes.

POST/api/v1/accounting/tags.create
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."
}'

More in Transactions.