Autopilot

investigator.settings.update

Change the investigator's settings with expectedRevision and idempotencyKey: enabled, mode (email_first or automatic), sources (inbox only for now), lookbackDays (1-365), proposeThreshold (0.5-0.99), maxPerDay (1-100) and askKinds (forward_receipt, contractor_invoice, confirm_business, choose_category, confirm_income).

POST/api/v1/accounting/investigator.settings.update

Permissions

accounting:readaccounting:writeaccounting:admin

Who can call it

admin

Retries

Idempotency key required, with expectedRevision

MCP

accounting_investigator_settings_update

Fields

  • expectedRevisioninteger

    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.

    0 to 9007199254740991

  • 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

  • enabledboolean
  • modeenum
    email_firstautomatic
  • sourcesarray of enum values
    inboxdiscordslack

    1–3 items

  • lookbackDaysinteger

    1 to 365

  • proposeThresholdnumber

    0.5 to 0.99

  • maxPerDayinteger

    1 to 100

  • askKindsarray of enum values
    forward_receiptcontractor_invoiceconfirm_businesschoose_categoryconfirm_income

    1–5 items

Example

curl https://app.getoatmilk.com/api/v1/accounting/investigator.settings.update \
  -H "Authorization: Bearer $OATMILK_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{}'
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/investigator.settings.update
curl https://app.getoatmilk.com/api/v1/accounting/investigator.settings.update \
  -H "Authorization: Bearer $OATMILK_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{}'

More in Autopilot.