Connectors and webhooks

notion.links.create

Link an Oatmilk account, invoice, or contractor to a Notion page by page ID or pasted link. Links created by a person are confirmed unless status is proposed. Supply idempotencyKey.

POST/api/v1/accounting/notion.links.create

Permissions

accounting:readaccounting:write

Who can call it

admin, finance

Retries

Idempotency key required

MCP

accounting_notion_links_create

Reaches outside Oatmilk

It emails people or calls another service.

Fields

  • localTypeenumRequired
    partyinvoicecontractor
  • localIdstring (ID)Required

    The ID of the related record.

  • roleenum

    A person's access level in the company.

    invoicescompaniesvendorscontacts
  • pageIdstring

    32–36 characters

  • urlstring

    A full web address, starting with https://.

    1–2000 characters

  • methodenum
    manuallinksmart_lookup
  • statusenum

    Only include records with this status.

    confirmedproposed
  • candidateobject

    No other fields

  • 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/notion.links.create \
  -H "Authorization: Bearer $OATMILK_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "localType": "party",
  "localId": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
  "pageId": "9f2b5c1d7e3a4b6c8d0e2f4a6b8c0d2e"
}'
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/notion.links.create
curl https://app.getoatmilk.com/api/v1/accounting/notion.links.create \
  -H "Authorization: Bearer $OATMILK_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "localType": "party",
  "localId": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
  "pageId": "9f2b5c1d7e3a4b6c8d0e2f4a6b8c0d2e"
}'

More in Connectors and webhooks.