Automations

Import an automation

Changed on

Import a flagbase export file (document), or an n8n automation or Activepieces flow (source), as a new draft. Nodes with no match arrive as placeholders that block publishing; report says what did not carry across. Bindings and config values are never carried.

post/v1/automations/import

Request

  • Base URL
    https://api.banksync.io
  • Auth
    • API key in header X-API-Key
    • or HTTP bearer

Headers

Idempotency-Key, string

Makes a retry safe: the same key with the same request replays the first answer for 24 hours instead of running twice, and the same key with a different request is a 409 IDEMPOTENCY_KEY_REUSED. Refusals a retry can outlive — 408, 409, 423, 425, 429 and every 5xx — are never replayed, so retrying with the same key after the cause clears runs the request.

Request body

object required
document, object

A flagbase export file, as exporting an automation answers it (fixtures included).

source, object

Another tool’s automation, read through its dialect codec.

placement, object

Where it goes in the workspace’s tree: { parentId, before }. Default: last at the top level.

idempotencyKey, string

Any unique string (a UUID) you send again when you retry this call: a retry answers what the first call made and makes nothing new. Send a new one for a new call.

Response

The draft an earlier call with the same idempotency key made

object required
success, true required
data, object required

Changes

    • warning

      changed the pattern of the request property document/definition/nodes/additionalProperties/icon from ^(?:[a-z]+:[A-Za-z0-9_-]{1,64})?$/u to ^(?:(?=[a-z0-9-]{1,64}$)[a-z]+(?:-[a-z0-9]+)*|[a-z]+:[A-Za-z0-9_-]{1,64})?$/u

    • info

      the data/automation/draft/nodes/additionalProperties/icon response's property pattern was changed from ^(?:[a-z]+:[A-Za-z0-9_-]{1,64})?$/u to ^(?:(?=[a-z0-9-]{1,64}$)[a-z]+(?:-[a-z0-9]+)*|[a-z]+:[A-Za-z0-9_-]{1,64})?$/u for the status

    • info

      the data/automation/draft/nodes/additionalProperties/icon response's property pattern was changed from ^(?:[a-z]+:[A-Za-z0-9_-]{1,64})?$/u to ^(?:(?=[a-z0-9-]{1,64}$)[a-z]+(?:-[a-z0-9]+)*|[a-z]+:[A-Za-z0-9_-]{1,64})?$/u for the status