Get a workflow
One workflow with its draft, status and `revision`. Call it before every edit to get the current `revision`. Use `view=structure` to see nodes and edges without config on a large workflow. Secrets read back as `********`.
Workflow builder. Included from the Jump Starter plan. See plans.
workflow_idrequireduser_idintegerReseller keys only: act as one of your clients by its user id. Omit it to act on your own account. [How acting for a client works](/docs/reseller/your-clients/acting-as-clients).
viewstring · enumstructure leaves node config out.
curl -X GET 'https://omnidim.io/api/v1/workflows/{workflow_id}?view=full' \ -H 'Authorization: Bearer YOUR_API_KEY'
{ "workflow": { "id": 0, "name": "string", "status": "draft", "published_version_id": 0, "webhook_url": "string", "draft": { "version_id": 0, "revision": "string", "nodes": [ { "id": "string", "type": "string", "label": "string", "position": { "x": 0, "y": 0 }, "config": "string" } ], "edges": [ { "from": "string", "to": "string", "handle": "string" } ] } } }
BearerAuthAuthorizationBearer <token>Bearer token authentication. Obtain your API key from the OmniDimension dashboard.
workflow_id*integerId of the workflow.
user_id?integerReseller keys only: act as one of your clients by its user id. Omit it to act on your own account. How acting for a client works.
view?stringstructure leaves node config out.
"full""structure""full"Response body
application/jsonThe workflow.
application/jsonworkflow?Was this page helpful?
Create a workflow
Create a workflow with a draft. Without `graph`, the draft holds one `trigger` node, ready for `editWorkflow` ops. Pass `graph` only to start from a complete graph. The response carries the `revision` you need to edit.
Edit a workflow draft
Change the draft with a list of `ops`: add, update, move or delete nodes, and connect or disconnect them. The ops apply all together or not at all. You must send the `revision` from your last read. If you get `409 revision_conflict`, read the workflow again and retry. Secrets read back as `********`. Send them back unchanged to keep the stored value. This edits the draft only. Use `publishWorkflow` to make it live.
