Skip to content

Automations

Rules that act on their own when records change.

9 endpoints. Every request needs an X-Api-Key header.

List automations

GET/api/v1/automations/

Every member reads them. Each carries its last run.

Response fields 13
idstring (uuid)
namestring
entityenum
triggerstring
trigger_labelobject
conditionsobject
actionsarray of object
run_on_importsboolean
is_activeboolean
created_byobject
last_runobject
created_atstring (date-time)
updated_atstring (date-time)
curl "https://api.vivrecrm.com/api/v1/automations/" \
  -H "X-Api-Key: $VIVRE_API_KEY"
Response 200
{
  "count": 1,
  "next": null,
  "previous": null,
  "results": [
    {
      "id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
      "name": "Kaveri Foods",
      "entity": "Lead",
      "trigger": "",
      "trigger_label": null,
      "conditions": {},
      "actions": [],
      "run_on_imports": true,
      "is_active": true,
      "created_by": null,
      "last_run": null,
      "created_at": "2026-10-17T09:30:00+05:30",
      "updated_at": "2026-10-17T09:30:00+05:30"
    }
  ]
}

Create an automation

POST/api/v1/automations/

Owners and admins (automation.manage). Checked as a whole: a trigger of the record type, conditions as a list filter (match all is AND, match any is OR, {} for none), 1 to 10 actions with their inputs. Created switched on past the plan's max_automations is a 402.

Body

namestringRequired
entityenumRequired
One of Lead, Contact, Company, Deal, Task.
triggerstringRequired
conditionsobject
actionsarray of object
run_on_importsboolean
is_activeboolean
Response fields 13
idstring (uuid)
namestring
entityenum
triggerstring
trigger_labelobject
conditionsobject
actionsarray of object
run_on_importsboolean
is_activeboolean
created_byobject
last_runobject
created_atstring (date-time)
updated_atstring (date-time)

Can also return 400, 402, 403.

curl -X POST "https://api.vivrecrm.com/api/v1/automations/" \
  -H "X-Api-Key: $VIVRE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "Kaveri Foods", "entity": "Lead", "trigger": ""}'
Response 201
{
  "id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
  "name": "Kaveri Foods",
  "entity": "Lead",
  "trigger": "",
  "trigger_label": null,
  "conditions": {},
  "actions": [
    null
  ],
  "run_on_imports": true,
  "is_active": true,
  "created_by": null,
  "last_run": null,
  "created_at": "2026-10-17T09:30:00+05:30",
  "updated_at": "2026-10-17T09:30:00+05:30"
}

What an automation can be made of

GET/api/v1/automations/catalogue/

Per record type, its triggers and the actions it takes with their inputs (kind says what to draw; a field input lists the fields update_field may set). And where the organization stands against its plan.

Response fields 2
entitiesarray of object
limitsobject
curl "https://api.vivrecrm.com/api/v1/automations/catalogue/" \
  -H "X-Api-Key: $VIVRE_API_KEY"
Response 200
{
  "entities": [
    {
      "entity": "",
      "triggers": [],
      "actions": []
    }
  ],
  "limits": {
    "max_automations": 1,
    "active": 1,
    "automation_runs_per_day": 1,
    "runs_today": 1
  }
}

Every automation's runs, newest first

GET/api/v1/automations/runs/

Kept 90 days.

Parameters

statusquery, enum
Response fields 10
idstring (uuid)
automationobject
triggerstring
entitystring
record_idstring
The record's public id
statusenum
reasonstring
stepsarray of object
created_atstring (date-time)
finished_atstring (date-time)

Can also return 400.

curl "https://api.vivrecrm.com/api/v1/automations/runs/" \
  -H "X-Api-Key: $VIVRE_API_KEY"
Response 200
{
  "count": 1,
  "next": null,
  "previous": null,
  "results": [
    {
      "id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
      "automation": {
        "id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
        "name": "Kaveri Foods"
      },
      "trigger": "",
      "entity": "",
      "record_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
      "status": "queued",
      "reason": "",
      "steps": [],
      "created_at": "2026-10-17T09:30:00+05:30",
      "finished_at": "2026-10-17T09:30:00+05:30"
    }
  ]
}

Retrieve an automation

GET/api/v1/automations/{public_id}/

Parameters

public_idpath, string (uuid)Required
Response fields 13
idstring (uuid)
namestring
entityenum
triggerstring
trigger_labelobject
conditionsobject
actionsarray of object
run_on_importsboolean
is_activeboolean
created_byobject
last_runobject
created_atstring (date-time)
updated_atstring (date-time)
curl "https://api.vivrecrm.com/api/v1/automations/7c9e6679-7425-40de-944b-e07fc1f90ae7/" \
  -H "X-Api-Key: $VIVRE_API_KEY"
Response 200
{
  "id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
  "name": "Kaveri Foods",
  "entity": "Lead",
  "trigger": "",
  "trigger_label": null,
  "conditions": {},
  "actions": [
    null
  ],
  "run_on_imports": true,
  "is_active": true,
  "created_by": null,
  "last_run": null,
  "created_at": "2026-10-17T09:30:00+05:30",
  "updated_at": "2026-10-17T09:30:00+05:30"
}

Replace an automation

PUT/api/v1/automations/{public_id}/

Owners and admins. Switching it on past the plan's max_automations is a 402.

Parameters

public_idpath, string (uuid)Required

Body

namestringRequired
entityenumRequired
One of Lead, Contact, Company, Deal, Task.
triggerstringRequired
conditionsobject
actionsarray of object
run_on_importsboolean
is_activeboolean
Response fields 13
idstring (uuid)
namestring
entityenum
triggerstring
trigger_labelobject
conditionsobject
actionsarray of object
run_on_importsboolean
is_activeboolean
created_byobject
last_runobject
created_atstring (date-time)
updated_atstring (date-time)

Can also return 402.

curl -X PUT "https://api.vivrecrm.com/api/v1/automations/7c9e6679-7425-40de-944b-e07fc1f90ae7/" \
  -H "X-Api-Key: $VIVRE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "Kaveri Foods", "entity": "Lead", "trigger": ""}'
Response 200
{
  "id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
  "name": "Kaveri Foods",
  "entity": "Lead",
  "trigger": "",
  "trigger_label": null,
  "conditions": {},
  "actions": [
    null
  ],
  "run_on_imports": true,
  "is_active": true,
  "created_by": null,
  "last_run": null,
  "created_at": "2026-10-17T09:30:00+05:30",
  "updated_at": "2026-10-17T09:30:00+05:30"
}

Update an automation

PATCH/api/v1/automations/{public_id}/

Owners and admins. A change is checked against the rest (a new record type needs its own trigger and actions). Switching it on past the plan's max_automations is a 402.

Parameters

public_idpath, string (uuid)Required

Body

namestringRequired
entityenumRequired
One of Lead, Contact, Company, Deal, Task.
triggerstringRequired
conditionsobject
actionsarray of object
run_on_importsboolean
is_activeboolean
Response fields 13
idstring (uuid)
namestring
entityenum
triggerstring
trigger_labelobject
conditionsobject
actionsarray of object
run_on_importsboolean
is_activeboolean
created_byobject
last_runobject
created_atstring (date-time)
updated_atstring (date-time)

Can also return 402.

curl -X PATCH "https://api.vivrecrm.com/api/v1/automations/7c9e6679-7425-40de-944b-e07fc1f90ae7/" \
  -H "X-Api-Key: $VIVRE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "Kaveri Foods", "entity": "Lead", "trigger": ""}'
Response 200
{
  "id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
  "name": "Kaveri Foods",
  "entity": "Lead",
  "trigger": "",
  "trigger_label": null,
  "conditions": {},
  "actions": [
    null
  ],
  "run_on_imports": true,
  "is_active": true,
  "created_by": null,
  "last_run": null,
  "created_at": "2026-10-17T09:30:00+05:30",
  "updated_at": "2026-10-17T09:30:00+05:30"
}

Delete an automation

DELETE/api/v1/automations/{public_id}/

Owners and admins. Its run history goes with it.

Parameters

public_idpath, string (uuid)Required
curl -X DELETE "https://api.vivrecrm.com/api/v1/automations/7c9e6679-7425-40de-944b-e07fc1f90ae7/" \
  -H "X-Api-Key: $VIVRE_API_KEY"

One automation's runs, newest first

GET/api/v1/automations/{public_id}/runs/

Parameters

public_idpath, string (uuid)Required
statusquery, enum
Response fields 10
idstring (uuid)
automationobject
triggerstring
entitystring
record_idstring
The record's public id
statusenum
reasonstring
stepsarray of object
created_atstring (date-time)
finished_atstring (date-time)
curl "https://api.vivrecrm.com/api/v1/automations/7c9e6679-7425-40de-944b-e07fc1f90ae7/runs/" \
  -H "X-Api-Key: $VIVRE_API_KEY"
Response 200
{
  "count": 1,
  "next": null,
  "previous": null,
  "results": [
    {
      "id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
      "automation": {
        "id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
        "name": "Kaveri Foods"
      },
      "trigger": "",
      "entity": "",
      "record_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
      "status": "queued",
      "reason": "",
      "steps": [],
      "created_at": "2026-10-17T09:30:00+05:30",
      "finished_at": "2026-10-17T09:30:00+05:30"
    }
  ]
}