Outvexa

API reference

Automation

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

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

Automation rules

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/automations" \
  -H "Authorization: Bearer $EMN_API_KEY"

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

Create an automation rule

Workspace member or API keyRole manager or higherSuccess: 201

Path parameters

workspaceIdrequiredstring

Request body (JSON)

namerequiredstringLength 1–120
isEnabledbooleanDefault true
triggerrequiredenumOne of: reply.categorized, lead.scored, lead.status_changed
conditionsobjectDefault {}
conditions.categoriesenum[]
conditions.minScoreintegerRange 0–100
conditions.maxScoreintegerRange 0–100
conditions.toStatusesenum[]
actionsrequiredobject | object | object | object | object | object[]
Request
curl -X POST "https://app.example.com/api/v1/w/$WORKSPACE_ID/automations" \
  -H "Authorization: Bearer $EMN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "string",
    "isEnabled": true,
    "trigger": "reply.categorized",
    "conditions": {},
    "actions": [
      {
        "type": null,
        "status": null
      }
    ]
  }'

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

Update an automation rule

Workspace member or API keyRole manager or higherSuccess: 200

Path parameters

workspaceIdrequiredstring
idrequiredstring

Request body (JSON)

namerequiredstringLength 1–120
isEnabledbooleanDefault true
triggerrequiredenumOne of: reply.categorized, lead.scored, lead.status_changed
conditionsobjectDefault {}
conditions.categoriesenum[]
conditions.minScoreintegerRange 0–100
conditions.maxScoreintegerRange 0–100
conditions.toStatusesenum[]
actionsrequiredobject | object | object | object | object | object[]
Request
curl -X PUT "https://app.example.com/api/v1/w/$WORKSPACE_ID/automations/$ID" \
  -H "Authorization: Bearer $EMN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "string",
    "isEnabled": true,
    "trigger": "reply.categorized",
    "conditions": {},
    "actions": [
      {
        "type": null,
        "status": null
      }
    ]
  }'

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

Delete an automation rule

Workspace member or API keyRole manager or higherSuccess: 200

Path parameters

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

get/api/v1/w/{workspaceId}/automations/runs

Automation run history

Workspace member or API keyRole viewer or higherSuccess: 200

Path parameters

workspaceIdrequiredstring

Query parameters

ruleIdstring (uuid)
Request
curl -X GET "https://app.example.com/api/v1/w/$WORKSPACE_ID/automations/runs" \
  -H "Authorization: Bearer $EMN_API_KEY"