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.
/api/v1/accounting/notion.links.createPermissions
Who can call it
Retries
MCP
accounting_notion_links_createReaches outside Oatmilk
Fields
localTypeenumRequiredpartyinvoicecontractorlocalIdstring (ID)RequiredThe ID of the related record.
roleenumA person's access level in the company.
invoicescompaniesvendorscontactspageIdstring32–36 characters
urlstringA full web address, starting with https://.
1–2000 characters
methodenummanuallinksmart_lookupstatusenumOnly include records with this status.
confirmedproposedcandidateobjectNo other fields
idempotencyKeystringRequiredAny 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"
}'{
"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.
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.