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
dropdown_ids?array<string>|

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

Defaultnull

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

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    }  ]}