API Key & POST Request
Generate an API Key
Go to https://www.spaceoperator.com/dashboard/profile/apikey

Setup your flow: add Flow Input & Flow Outputs nodes
Flow Input nodes for every input you would like to pass dynamically. The label of the Flow Input node will be the key in the JSON body of the POST requests
{ "inputs": {"<key>": <value>...} }
Flow Output node for every output you would like to log or export

Making a POST request
POST
https://dev-api.spaceoperator.com/flow/start/{flow_id}
Trigger a flow via an API.
Headers
x-api-key*
your-api-key
Content-Type*
application/json
Request Body
data-raw
JSON
Pass a JSON object with the flow inputs. <key> should match Flow Input node label, value can be anything.
{ "inputs": {"<key>": <value>...} }
{
"flow_run_id": "f6d6d2e0-9cb3-4f35-9009-a6d2936da519"
}

Examples with cURL
curl --location --request POST 'https://api.spaceoperator.com/flow/start/588' \
--header 'x-api-key: <your-api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"inputs": {
"number 1": 100,
"number 2": 10,
}
}'
Viewing the results
Viewing the result of a flow run via API is coming soon.
In the meantime, use the UI to see the results. Open the flow, click on the background, and navigate to the Flow Logs

Leaving the flow editor open during the API call will show the progress
Last updated
Was this helpful?