Skip to content

Server API: Workflows

Your users enrolled in the app’s workflows by your servers.

What it doesRoute
Enrol people in a workflowPOST /server/v1/workflows/{workflow_id}/enrol

POST /server/v1/workflows/{workflow_id}/enrol

Enrols up to 500 people, by your ids for them, in a running workflow whose trigger is “Enrolled by staff”. Each is held to the workflow’s audience, exit rule and re-entry, so enrolling someone again is safe. Queued, and done within a minute; ids of nobody PurrCRM knows are answered and not enrolled. Needs a key with the workflows scope.

Needs: a server key (Authorization: Bearer crm_sk_…). See Connect your backend.

Parameters

NameInDescription
workflow_id (required)path

Body (application/json): ServerEnrol

FieldTypeDescription
external_ids (always)array of string

Answers

StatusBodyMeaning
202ServerEnrolledAccepted
400problemThe request could not be read: the problem names the field.
401problemNo credential, or one that is not right.
403problemRefused: the app is switched off, or this is not allowed.
404problemNot found, or the part is switched off.
409problemRefused as things stand: the problem says why.
429problemToo many requests: wait for Retry-After.