Actions

Find an action, read its input schema and run it. Request and response format.

An action is one Moniary operation, such as "list tags" or "issue an invoice". Action names look like area.method (tags.getAll, issuedInvoices.issueInvoice).

Find an action

curl "https://moniary.com/api/v1/actions?q=invoice" \
  -H "Authorization: Bearer $MONIARY_API_KEY"

This lists the actions your key can run. Filter by text (q) or area (area, for example area=bankTransactions).

{
  "actions": [
    {
      "name": "invoices.getInvoiceStats",
      "area": "invoices",
      "access": "read",
      "description": "Totals and counts of documents for an optional filter (amounts, paid/unpaid, overdue)."
    }
  ]
}

access is read, write or confirm. Both write and confirm need a read-and-write key; confirm marks bigger changes that reach outside Moniary, such as sending an invoice. E-mailing an invoice through the API waits for the owner's approval in Moniary; the action returns the request, whose status you read with agentApprovals.get.

Read the input

curl https://moniary.com/api/v1/actions/invoices.getInvoiceStats \
  -H "Authorization: Bearer $MONIARY_API_KEY"

The response includes input, the JSON schema of the input (draft 2020-12). Actions without input have input: null. Send dates and times as ISO 8601 strings (2026-10-01 or 2026-10-01T08:00:00Z).

Run an action

Send the input as a JSON object in the body. If every field is optional, you can leave the body out.

curl -X POST https://moniary.com/api/v1/actions/tags.create \
  -H "Authorization: Bearer $MONIARY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "Fuel", "color": "#3b82f6"}'

The result is always in data:

{
  "data": {
    "id": "er48wdjdsd3zacfkye1vgmgb",
    "name": "Fuel",
    "color": "#3b82f6"
  }
}

Retrying a write safely

Every write and confirm action takes an optional idempotencyKey, any text of 1 to 255 characters. If a request times out and you send it again with the same key, Moniary does not run the action a second time and returns the first request's result. An invoice is never issued twice.

curl -X POST https://moniary.com/api/v1/actions/issuedInvoices.issueInvoice \
  -H "Authorization: Bearer $MONIARY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"idempotencyKey": "order-1042", "customerId": "...", "lineItems": [...]}'
  • A key is valid for 24 hours, for your user and that action.
  • The same key with a different input fails with IDEMPOTENCY_KEY_REUSED. Use a new key for a new request.
  • While the first request is still running, a repeat fails with IDEMPOTENCY_KEY_PENDING.
  • A request Moniary refused (invalid input, an app error) frees its key, so you can send the corrected request with the same key.

Examples

Unpaid received documents past their due date:

curl -X POST https://moniary.com/api/v1/actions/invoices.getOverdueInvoices \
  -H "Authorization: Bearer $MONIARY_API_KEY"

Unmatched bank transactions:

curl -X POST https://moniary.com/api/v1/actions/bankTransactions.list \
  -H "Authorization: Bearer $MONIARY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"matchStatus": ["UNMATCHED"], "pageSize": 20}'

The exact input of every action is in the API reference and at GET /actions/<name>.

Paging

Lists page the same way the app does: some take page and pageSize, others limit and cursor. Always follow the input schema of the action.