Flikk
API

Running

Start a flow, a node, or an integration node from code.

Run a flow

Run a flow and pass the trigger payload as input. It runs the flow as it was last saved, and an archived flow answers 409 flow_not_deployed. An input that doesn't match the trigger's inputs answers 400 with the issues.

curl -X POST https://api.flikk.dev/api/run/flows/new-signup \
  -H "Authorization: Bearer flk_your_api_key" \
  -H "x-org-slug: your-org" \
  -H "Content-Type: application/json" \
  -d '{ "input": { "email": "ana@example.com" } }'
flikk run flow new-signup --input '{ "email": "ana@example.com" }' -o your-org

The call returns as soon as the run starts, so the response holds the run's runId with status set to running, and data stays null. Send "wait": true, or pass --wait in the CLI, to get the run's final status instead. In the CLI, flikk run flow <flow> --help lists the inputs the flow's trigger takes, and each one can be passed as its own flag, like --email ana@example.com. To read what the run returned, look it up by runId in run history. To set up the CLI, see CLI.

Run a node

Run one of your organization's saved nodes by its slug. The call waits for the node to finish, and data holds the node's input and its output, or an error if it failed. An input that doesn't match the node's inputs answers 400 with the issues.

curl -X POST https://api.flikk.dev/api/run/nodes/slack-alert \
  -H "Authorization: Bearer flk_your_api_key" \
  -H "x-org-slug: your-org" \
  -H "Content-Type: application/json" \
  -d '{ "input": { "message": "Deploy finished" } }'
flikk run node slack-alert --input '{ "message": "Deploy finished" }' -o your-org

Run an integration node

Run one action of an integration as {integrationSlug}/{slug}, without building a flow. The call uses your organization's default credential for that integration, and you can pass a credential's slug in credential to use a different one. As with a node, the call waits and returns the result in data.

curl -X POST https://api.flikk.dev/api/run/integrations/resend/send_email \
  -H "Authorization: Bearer flk_your_api_key" \
  -H "x-org-slug: your-org" \
  -H "Content-Type: application/json" \
  -d '{
    "input": {
      "from": "you@example.com",
      "to": "new@example.com",
      "subject": "Welcome",
      "html": "<p>Glad you are here.</p>"
    }
  }'
flikk run integration resend/send_email \
  --input '{ "from": "you@example.com", "to": "new@example.com", "subject": "Welcome", "html": "<p>Glad you are here.</p>" }' \
  -o your-org

On this page