Outvexa

API reference

Workflows

10 endpoints. All paths are relative to your installation, for example https://app.example.com.

get/api/v1/w/{workspaceId}/workflows

List workflows

Workspace member or API keyRole viewer or higherSuccess: 200

Path parameters

workspaceIdrequiredstring
Request
curl -X GET "https://app.example.com/api/v1/w/$WORKSPACE_ID/workflows" \
  -H "Authorization: Bearer $EMN_API_KEY"

post/api/v1/w/{workspaceId}/workflows

Create a workflow (version 1)

Workspace member or API keyRole manager or higherSuccess: 201

Path parameters

workspaceIdrequiredstring

Request body (JSON)

namerequiredstringLength 1–120
triggerrequiredenumOne of: lead.created, lead.enriched, lead.scored, lead.status_changed, reply.categorized, email.bounced, lead.unsubscribed, meeting.booked, campaign.paused, opportunity.stage_changed, manual, schedule.daily, webhook.received
graphrequiredobject
graph.blocksrequiredany[]
maxRunsPerDayintegerRange 1–100000 · Default 1000
changeNotestringLength 0–300
Request
curl -X POST "https://app.example.com/api/v1/w/$WORKSPACE_ID/workflows" \
  -H "Authorization: Bearer $EMN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "string",
    "trigger": "lead.created",
    "graph": {
      "blocks": [
        null
      ]
    },
    "maxRunsPerDay": 1000,
    "changeNote": "string"
  }'

get/api/v1/w/{workspaceId}/workflows/{id}

Workflow with all versions

Workspace member or API keyRole viewer or higherSuccess: 200

Path parameters

workspaceIdrequiredstring
idrequiredstring
Request
curl -X GET "https://app.example.com/api/v1/w/$WORKSPACE_ID/workflows/$ID" \
  -H "Authorization: Bearer $EMN_API_KEY"

put/api/v1/w/{workspaceId}/workflows/{id}

Save a new version (becomes active version)

Workspace member or API keyRole manager or higherSuccess: 200

Path parameters

workspaceIdrequiredstring
idrequiredstring

Request body (JSON)

namerequiredstringLength 1–120
triggerrequiredenumOne of: lead.created, lead.enriched, lead.scored, lead.status_changed, reply.categorized, email.bounced, lead.unsubscribed, meeting.booked, campaign.paused, opportunity.stage_changed, manual, schedule.daily, webhook.received
graphrequiredobject
graph.blocksrequiredany[]
maxRunsPerDayintegerRange 1–100000 · Default 1000
changeNotestringLength 0–300
Request
curl -X PUT "https://app.example.com/api/v1/w/$WORKSPACE_ID/workflows/$ID" \
  -H "Authorization: Bearer $EMN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "string",
    "trigger": "lead.created",
    "graph": {
      "blocks": [
        null
      ]
    },
    "maxRunsPerDay": 1000,
    "changeNote": "string"
  }'

delete/api/v1/w/{workspaceId}/workflows/{id}

Delete a workflow

Workspace member or API keyRole manager or higherSuccess: 204

Path parameters

workspaceIdrequiredstring
idrequiredstring
Request
curl -X DELETE "https://app.example.com/api/v1/w/$WORKSPACE_ID/workflows/$ID" \
  -H "Authorization: Bearer $EMN_API_KEY"

post/api/v1/w/{workspaceId}/workflows/{id}/active

Activate / deactivate

Workspace member or API keyRole manager or higherSuccess: 200

Path parameters

workspaceIdrequiredstring
idrequiredstring

Request body (JSON)

activerequiredboolean
Request
curl -X POST "https://app.example.com/api/v1/w/$WORKSPACE_ID/workflows/$ID/active" \
  -H "Authorization: Bearer $EMN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "active": true
  }'

post/api/v1/w/{workspaceId}/workflows/{id}/versions/{versionId}/restore

Make an older version active

Workspace member or API keyRole manager or higherSuccess: 200

Path parameters

workspaceIdrequiredstring
idrequiredstring
versionIdrequiredstring
Request
curl -X POST "https://app.example.com/api/v1/w/$WORKSPACE_ID/workflows/$ID/versions/$VERSION_ID/restore" \
  -H "Authorization: Bearer $EMN_API_KEY"

post/api/v1/w/{workspaceId}/workflows/{id}/run

Run now (testMode=true is a dry run that changes nothing)

Workspace member or API keyRole manager or higher60 requests / 10 min per workspaceSuccess: 200

Path parameters

workspaceIdrequiredstring
idrequiredstring

Request body (JSON)

testModebooleanDefault true
payloadobjectDefault {}
Request
curl -X POST "https://app.example.com/api/v1/w/$WORKSPACE_ID/workflows/$ID/run" \
  -H "Authorization: Bearer $EMN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "testMode": true,
    "payload": {}
  }'

get/api/v1/w/{workspaceId}/workflows/{id}/runs

Execution history with per-block log

Workspace member or API keyRole viewer or higherSuccess: 200

Path parameters

workspaceIdrequiredstring
idrequiredstring
Request
curl -X GET "https://app.example.com/api/v1/w/$WORKSPACE_ID/workflows/$ID/runs" \
  -H "Authorization: Bearer $EMN_API_KEY"

post/api/v1/w/{workspaceId}/workflows/{id}/webhook-token

Rotate the inbound webhook token (shown once)

Workspace member or API keyRole admin or higherSuccess: 200

Path parameters

workspaceIdrequiredstring
idrequiredstring
Request
curl -X POST "https://app.example.com/api/v1/w/$WORKSPACE_ID/workflows/$ID/webhook-token" \
  -H "Authorization: Bearer $EMN_API_KEY"