API reference

API reference

Every Oatmilk action, with its permissions, fields, examples and a place to try it.

The basics

Every action is a POST to its own address with a JSON object, and read actions also accept GET. Send your API key as a bearer token. Results come back in data; problems come back in error with a stable code. See Making requests.

Every request
POST https://app.getoatmilk.com/api/v1/accounting/<action>
Authorization: Bearer $OATMILK_API_KEY
Content-Type: application/json
Idempotency-Key: <one per change>

775 company actions and 43 contractor actions, generated from the definitions the API checks requests against. The same reference is available as OpenAPI 3.1 and as plain text for AI tools. Press ⌘K to jump to any action by name.

Actions by area

Each area is also an MCP toolset, so an AI assistant can connect with only what it needs.