See Stacksync in action with a solution architect. Book a demo ↗
Connectors

Connectors

Get a connector module form

POST
/v1/workspaces/{workspace_id}/workflows/modules/forms

The form of an action or trigger, for the connection and values chosen so far (the form changes as it is filled), and the options of the dropdowns asked for: the form a workflow step or a run of the action is filled from. No workflow is needed. A read: nothing is saved.

Authorization

Authorizationstringheaderrequired

Bearer <key>, where <key> is a workspace API key or a user API key. See Authentication.

Path Parameters

workspace_id*integer

The workspace. List the ones your key can reach with GET /v1/workspaces.

Query Parameters

region*Region

Region whose catalog to read: besg or usnv

Value in"besg""usnv"

Request Body

application/json
  1. body
module_id*Module Id

The module, from GET .../workflows/modules/apps/<app_type>

Length1 <= length
module_version*Module Version

The module version, from the same answer

Length1 <= length
connection_id?|

The connection the step uses, from GET .../connections (same region); None before one is chosen

Defaultnull
values?|

The form values chosen so far: the form can change with them

Defaultnull
object_type?|

The object the action works on, e.g. contacts: put into the action's object field (object_field of the form answer). None for an action without one, or when values already hold it

Defaultnull
dropdown_ids?array<string>|

The dropdowns whose options to load, from dropdown_ids of a previous answer

Defaultnull
include_ready_dropdowns?Include Ready Dropdowns

true also loads the options of every dropdown that can list them now, and names in waiting_dropdown_ids the ones that wait for another field's value or could not load now; a built-in module ignores it (its stored form loads only dropdown_ids)

Defaultfalse

Response Body

OK

application/json
  1. response
input_schema*|

The JSON schema of the step's values; a field whose options come from the app names them in dropdown_ids

connection_requirement*|null
dropdown_ids*array<string>

Every dropdown the form declares

dropdowns*array<>

The options of the dropdowns asked for

waiting_dropdown_ids?array<string>

With include_ready_dropdowns: the dropdowns whose options are not listed: they wait for the fields they depend on, or could not load now

object_field?|

The field that takes the action's object (the first field whose choice reloads the form), where object_type is put; None for a form without one

Defaultnull
connection_fields?array<string>

The fields that hold the step's connection: filled from connection_id, never given in values

Get a connector module form
curl -X POST 'https://api.stacksync.com/v1/workspaces/0/workflows/modules/forms?region=usnv' \  -H 'Content-Type: application/json' \  -d '{  "module_id": "<module_id>",  "module_version": "<module_version>"}'
{  "input_schema": {},  "connection_requirement": {    "is_required": false,    "app_types": [      "<app_types>"    ]  },  "dropdown_ids": [    "<dropdown_ids>"  ],  "dropdowns": [    {      "dropdown_id": "<dropdown_id>",      "options": [        {          "value": "<value>",          "label": "<label>"        }      ],      "has_more_options": false    }  ],  "waiting_dropdown_ids": [    "<waiting_dropdown_ids>"  ],  "object_field": "<object_field>",  "connection_fields": [    "<connection_fields>"  ]}