Automations
Discover catalog slots, create and enable rules, inspect runs, identify automation actors, verify signed webhook requests, and set, snooze and finish reminders.
Automations run a trigger, check optional conditions, then perform actions on an item. The catalog lists the available triggers, conditions and actions, including the sentence and slots that describe their settings.
Read the catalog
curl https://api.melonforce.com/v1/automations/catalog \
-H "Authorization: Bearer $MELONFORCE_API_KEY"Each definition has a stable type and a short label, such as "A status changes" or "Remind the workspace". The label has no slot words. It is the name the app's pickers and run history show, so use it when you list definitions. Its sentence has display text and slots; each slot describes a value the builder should collect, such as a column, group, person or text. Use the catalog's category, group and groupLabel to organize a picker. A definition contributed by an app can include its app ID, name and icon. Definitions an app adds appear only in a workspace that has connected that app. Quo's and Super Dispatch's triggers, conditions and actions, for example, are listed only after an owner or admin connects that app, and a rule that uses one is refused before that; see Quo and Super Dispatch. Settings schemas are used by the API to validate rules and are not included in the catalog response.
An optional slot (required: false) can have an emptyLabel: the word its place in the sentence reads when nothing is chosen. In status.changed, fromLabelId reads "anything", so a rule without it reads "When Status changes from anything to Follow-up" and matches a change from any label.
{
"type": "status.changed",
"label": "A status changes",
"category": "trigger",
"group": "columns",
"groupLabel": "Columns",
"sentence": {
"text": "When {{columnId}} changes from {{fromLabelId}} to {{labelId}}",
"slots": [
{ "key": "columnId", "label": "Status column", "kind": "column", "required": true, "allowedColumnTypes": ["status"] },
{ "key": "labelId", "label": "Label", "kind": "label", "required": true, "sourceColumn": "columnId" },
{ "key": "fromLabelId", "label": "From label", "kind": "label", "required": false, "sourceColumn": "columnId", "emptyLabel": "anything" }
]
}
}A slot of kind duration holds a delay, such as { "amount": 2, "unit": "days" }: a whole number from 0 and a unit of minutes, hours or days. The delay of Remind the workspace is one.
New definitions and slot kinds can be added. Ignore types or slot kinds your client does not use, and keep handling the rest of the response.
Create a rule
Create a rule on its board. The trigger, conditions and actions use the catalog's type values and their settings. Conditions all have to match; actions run in order. The example starts enabled:
curl https://api.melonforce.com/v1/boards/brd_5n8q2t6w9z3c7f1j4m0pa/automations \
-X POST \
-H "Authorization: Bearer $MELONFORCE_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: moves-quote-follow-up-2026-11-20" \
-d '{
"name": "Post a quote follow-up",
"enabled": true,
"trigger": { "type": "status.changed", "settings": { "columnId": "status", "labelId": "quote_sent" } },
"conditions": [],
"actions": [{ "type": "action.post_update", "settings": { "text": "Quote sent. Follow up with the customer." } }]
}'Use a stable, unique Idempotency-Key for each logical create. If a request times out, retry the same request with the same key to avoid creating a second rule. A webhook action's secret is returned once, in the successful write response that creates that action; store it securely then. A replay of the create response never includes the secret. Reading a rule never reveals it. If an edit adds a new webhook action, that edit's response returns the new action's secret once.
An enabled rule starts running when its trigger matches. To change its state later, send PATCH /v1/automations/{automationId} with {"enabled":false} or {"enabled":true}. The workspace setting may limit which members can create, edit, enable, disable or delete rules. Only a signed-in owner or admin can change that setting. API keys can manage rules regardless of the setting; members can always read rules and runs.
Read runs
List a rule's run history with GET /v1/automations/{automationId}/runs. Runs are newest first. Pass the returned nextBefore as before to get the next page; null means there are no more. Filter by status or item when needed. A run includes its trigger, outcome, skip reason or error, chain depth, and ordered steps with their result and detail. The board and item run lists provide the same run records for those scopes.
curl "https://api.melonforce.com/v1/automations/aut_7k2m9q4x8b1n5v3c6z0wd/runs?limit=20" \
-H "Authorization: Bearer $MELONFORCE_API_KEY"Identify automation changes
When a rule changes an item, the change's actorType is automation and actorId is the rule ID. The feed or changes response includes automations: [{"id":"…","name":"…"}] so you can display the rule's name, including after the rule has been deleted. An app that writes a change uses actorType: "integration"; its actorId names the app. See Changes feed for actor and kind handling.
Verify webhook requests
An action.call_webhook action sends an HTTPS request with a Melonforce-Signature header in this form:
t=<unix seconds>,v1=<hex HMAC-SHA256>To verify it, parse t and v1, compute HMAC-SHA256 with the action's secret over the exact bytes t + "." + request body, encode the digest as lowercase hexadecimal, and compare it to v1 in constant time. Reject a timestamp outside your allowed clock-skew window. Read the body as raw bytes before parsing JSON; re-serializing the parsed object can change the signed bytes.
Webhook secrets are provided once in the response that creates or first saves the action. Keep the secret in a secret manager and never log it. The JSON body's event.id and the Idempotency-Key header are both stable across delivery retries; use the event ID to make your receiver idempotent.
Reminder actions
Two actions in the catalog's Reminders group work on the item's reminder. Both work with every trigger, on every board.
action.set_reminder, "Remind the workspace", sets a reminder on the item.action.complete_reminder, "Mark the reminder done", marks the item's reminder done, whether or not it has alerted yet. It has no settings: send{}. When the item has no reminder, the step succeeds and does nothing.
action.set_reminder takes three settings:
| Setting | Value |
|---|---|
delay | When the first alert comes, counted from the change that started the rule: { amount, unit }, a whole amount from 0 and a unit of minutes, hours or days. At most 365 days in all. 0 is right away. |
note | The reminder's note, 1 to 2,000 characters. A column's name in braces, such as {Contact}, puts the item's value there when the action runs, as in Post an update. After a Quo or Super Dispatch trigger, that app's tokens work too. The result is trimmed and cut to 2,000 characters; if it comes out empty, the reminder has no note. |
ifExists | What to do when the item already has a reminder: keep leaves it as it is and sets nothing; replace marks it done and sets this one. |
This rule reminds the workspace 2 days after an item's Status changes to Follow-up. Send it to POST /v1/boards/{boardId}/automations, as in Create a rule:
{
"name": "Follow up in 2 days",
"enabled": true,
"trigger": { "type": "status.changed", "settings": { "columnId": "status", "labelId": "follow_up" } },
"conditions": [],
"actions": [
{
"type": "action.set_reminder",
"settings": {
"delay": { "amount": 2, "unit": "days" },
"note": "Follow up with {Contact} about the quote.",
"ifExists": "keep"
}
}
]
}- The first alert is the time of the change that started the rule, plus the delay. With this rule, a change at
2026-11-23T19:57:00Zalerts at2026-11-25T19:57:00Z. If that time has already passed when the action runs, the reminder alerts within a minute. After that it repeats every 12 hours until someone marks it done, like any reminder. - Keep or replace. An item has one active reminder at a time. With
keep, a reminder the item already has stays as it is, and nothing is set. Withreplace, the old reminder is marked done by the rule and the new one is set. The run's step says whether it set, kept or replaced the reminder. - Who set it. A reminder the rule sets names the rule in its
createdBy. - No chains. Setting a reminder does not change the item, so it starts no other rule.
Reminders
An item can have one active reminder. It appears in the Inbox of each assignee and the person who set it. When the item is unassigned, it appears in everyone's Inbox. Workspace owners and admins see all due and upcoming reminders in their workspace. The alert repeats every 12 hours until someone marks it done. People, API keys and rules can all set reminders.
GET /v1/workspace/reminderslists the workspace's active reminders. For a member,inInboxindicates whether the reminder appears in their Inbox. For an API key, it is always false.POST /v1/items/{itemId}/reminderssets one on an item.PATCH /v1/reminders/{reminderId}edits, snoozes or finishes one, by itsaction.
Who set a reminder
Each listed reminder has createdBy, as { type, id, name }:
typeismemberfor a person,api_keyfor an API key, orautomationfor a rule.idis the person's user ID, the key's ID or the rule's ID.nameis their name when you list. It isnullwhen the person is no longer a member of the workspace, or the key or rule has been deleted. A revoked key's name isnulltoo. Unlike the changes feed'sautomationslist, a reminder does not keep a deleted rule's name.
{
"reminders": [
{
"id": "rmd_2w6e9r3t7y1u5i8o4p0as",
"itemId": "itm_r8d3k1x6w9q2m5v7b0n4c",
"itemName": "Stark onboarding",
"boardName": "Quotes",
"note": "Send the signed contract.",
"nextAlertAt": "2026-11-25T03:00:00.000Z",
"alertedAt": "2026-11-24T15:00:00.000Z",
"alertCount": 1,
"revision": 1,
"inInbox": false,
"createdBy": { "type": "api_key", "id": "apk_3f8h2j6l9p1r4t7w0y5ab", "name": "Quote sync" }
},
{
"id": "rmd_7k2m9q4x8b1n5v3c6z0wd",
"itemId": "itm_7k2m9q4x8b1n5v3c6z0wd",
"itemName": "Acme move",
"boardName": "Quotes",
"note": "Follow up with Pepper Potts about the quote.",
"nextAlertAt": "2026-11-25T19:57:00.000Z",
"alertedAt": null,
"alertCount": 0,
"revision": 0,
"inInbox": false,
"createdBy": { "type": "automation", "id": "aut_7k2m9q4x8b1n5v3c6z0wd", "name": "Follow up in 2 days" }
}
]
}The first reminder is due: it alerted at alertedAt and alerts again at nextAlertAt. The second, set by the rule above, is upcoming: alertedAt stays null until its first alert.
Done and Snooze
Send the reminder's action to PATCH /v1/reminders/{reminderId}:
- Done,
{ "action": "done" }, finishes the reminder for everyone, and it leaves the list. It works at any time, also before the first alert, so you can clear a reminder when the work is done early. It takes norevision, and sending it again is safe. - Snooze moves a due alert later. Send
"action": "snooze", the reminder's currentrevision, and one of:hours: a whole number from 1 to 24, counted from now.until: a UTC time, such as2026-11-25T09:00:00.000Z, later than now and at most 24 hours ahead. Use it to land on a set time, such as 9:00 the next morning.
Sending both hours and until, or neither, or an until outside that range answers 400 INVALID_REQUEST. Snoozing a reminder that is not due, or with an old revision, answers 409 REMINDER_CONFLICT; list the reminders again to get its current state.