automations

Run Manual Trigger

Changed on

Run a manual automation trigger.

Only triggers set to manual can be run. Actions run as the bot with no member or channel, so use for_each_member for anything per member. The trigger's usual cooldowns and monthly budget apply.

context adds template variables, used as {{ key }} in the actions.

skipped is true when the trigger's conditions failed or a cooldown or budget blocked the run. Nothing ran, but it still counts toward your rate limits.

Needs an API key with automations.run, and counts toward the automation-runs limit.

post/v1/automations/{trigger_id}/run

Request

  • Base URL
    https://api.monni.fyi (the document declares no server; this is the origin it was published from)
  • URL
    https://api.monni.fyi/v1/automations/{trigger_id}/run
  • Auth
    API key in header X-API-Key

Path parameters

trigger_idstring required

Request body

contextobject

Flat map of extra template variables, addressable in the trigger's actions as {{ key }}. Values must be scalars, so no nested objects or arrays. Keys must be valid identifiers and cannot be one of: channel, guild, member, message, vars

Example request

{
  "context": {
    "priority": 3,
    "ticket_id": "T-4021",
    "urgent": true
  }
}

Response

Successful Response

errorsstring[]
skippedboolean

Changes

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status