Automations
5 endpoints
/v1/automationsList automations
Returns the paginated list of the client's active automations (cursor v2).
Stable sort created_. Archived automations
(archived_) are excluded — the public API does not
expose them.
Filters
?status=— only automations withactive is_.active= true ?status=— only automations withinactive is_.active= false
Read-only
The public API only exposes read access (list + history) and
manual triggering. Creating, editing and archiving an automation
happen in the dashboard — there is no POST/PATCH/DELETE
/ endpoint.
automations:readQuery parameters
| Name | Type | Required | Description |
|---|---|---|---|
cursor | string | null | optional | Opaque pagination cursor: pass the pagination. value from the previous page. |
limit | integer | optional | Maximum number of results per page (default 20, max 100). Above that → 400 invalid_request. |
created_after | string | optional | Filter: only resources created after this date (inclusive). |
created_before | string | optional | Filter: only resources created before this date (inclusive). |
status | string | optional | Filter on is_ (active) or is_ (inactive). |
Responses
| Status | Description |
|---|---|
200 | Paginated list of automations. |
400 | Invalid request.
|
401 | The API key is missing, unknown or expired.
|
403 | Authorization refused.
|
429 | Rate limit reached.
|
500 | Unexpected server error. Always include the
|
501 | Test keys (
|
503 | A service the request depends on didn't respond (reading the key, the
account or the plan). The same request will go through once it's back:
retry after the
|
Example request
curl -X GET 'https://api.capturia.io/v1/automations' \
-H 'Authorization: Bearer cap_live_<your-key>' \
-H 'Content-Type: application/json'/v1/automations/{id}/triggerManually trigger an automation
Creates an execution with status= and trigger_,
claimable by the automation engine (asynchronous, no guarantee of
synchronous completion). To track the execution's progress,
call GET /.
Preconditions
- Automations must not have been removed from the account —
otherwise
403 feature_(not_ available details.).feature: automations - The automation must belong to the calling client and must not be
archived — otherwise
404 not_(found details.).resource: automation - The automation must have
is_— otherwiseactive= true 409 automation_.inactive - The automation must be published — otherwise
409 automation_.not_ published - The published automation must have a trigger node — otherwise
409 no_.trigger - The
contact_must belong to the calling client — otherwiseid 404 not_(found details.). A contact absorbed by a merge also returnsresource: contact 404 not_: trigger on the contact that was kept.found
Enrollment guards
Manual triggering goes through the same guards as automatic triggers:
- Contact already in an active run of this automation — otherwise
409 already_(turn on Multiple concurrent runs in the Enrollment settings to allow concurrent runs).enrolled - The same trigger (same
event_) within the last 5 minutes, cap of 5 enrollments per contact per 24 h on this automation, or safety cap of 20,000 runs opened within the hour for the account — otherwisedata 429 trigger_, with the reason inthrottled details.(reason duplicate,window_,cap hard_), to retry later.cap - Beyond 200 runs opened within the hour for the account, the
trigger is still accepted: its execution is created
pendingwith an upcomingscheduled_, and starts gradually, 30 per minute.at - A contact who is no longer reached out to (already a customer, closed
in a lost or disqualification column, disqualified, or said no) —
otherwise
409 lead_, with the reason inpursuit_ ended details. An automation set up for customers or for the lost column accepts them; someone who said no, never. - A contact unsubscribed from this automation's series, an archived or
test record — otherwise
422 business_, with the reason inrule_ violation details.(reason unsubscribed,contact_,archived contact_). Retrying changes nothing.test - An appointment automation (status or reminder of an appointment) with no
appointment for the contact and no
event_attached — otherwisedata. booking_ id 422 business_, withrule_ violation detailsnamingevent_(data. booking_ id booking_).required
The body accepts an optional event_ (free-form JSON object) injected into
the execution: each key is cited in the graph's messages as
{{event. (rules for citable keys: event_).
automations:triggerPath parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | required | UUID of the resource. |
Request body
| Property | Type | Required | Description |
|---|---|---|---|
contact_id | string | required | Target contact to run the automation on. Must belong to the calling client. |
event_data | object | optional | Optional event context (free-form JSON object) injected into the
execution. Each key is cited in a message of the graph as
{{event. (for example {{event.), a nested object
rendered as JSON. A citable key is written with letters, digits and _:
a hyphen, a space or an accent makes it impossible to cite. Keys the
engine sets itself can't be read there, even when sent here: those of a
status, a booking, a payment, a quote, an invoice, a call, a conversation
or contact details (source, status, channel, reason, language,
total, email, phone, from, to, payload…). A name of the
integration's own, prefixed (crm_), never collides with them.
Empty by default. |
Responses
| Status | Description |
|---|---|
201 |
|
400 | Invalid request.
|
401 | The API key is missing, unknown or expired.
|
403 | Authorization refused.
|
404 | Resource not found.
|
409 | Conflict with the resource's state.
|
413 | The request body exceeds 1 MB (1,048,576 bytes).
|
415 | The
|
422 | Request refused.
|
429 | Limit reached.
|
500 | Unexpected server error. Always include the
|
501 | Test keys (
|
503 | A service the request depends on didn't respond (reading the key, the
account or the plan). The same request will go through once it's back:
retry after the
|
Example request
curl -X POST 'https://api.capturia.io/v1/automations/{id}/trigger' \
-H 'Authorization: Bearer cap_live_<your-key>' \
-H 'Content-Type: application/json' \
-d '{
"contact_id": "8f3b1a2c-9d4e-4f5a-b6c7-d8e9f0a1b2c3",
"event_data": {
"source": "crm_import"
}
}'/v1/automations/{id}/historyList an automation's execution history
Returns the paginated list of an automation's executions (cursor v2).
Stable sort created_ — most recent executions
first. An execution is one run of the automation for a given
contact; the engine can restart it after a failure
(retry_).
The automation must belong to the calling client and must not be
archived — otherwise 404 not_ (details.),
as for an ID that is not a UUID.
automations:readPath parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | required | UUID of the resource. |
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
cursor | string | null | optional | Opaque pagination cursor: pass the pagination. value from the previous page. |
limit | integer | optional | Maximum number of results per page (default 20, max 100). Above that → 400 invalid_request. |
created_after | string | optional | Filter: only resources created after this date (inclusive). |
created_before | string | optional | Filter: only resources created before this date (inclusive). |
Responses
| Status | Description |
|---|---|
200 | Paginated list of the automation's executions. |
400 | Invalid request.
|
401 | The API key is missing, unknown or expired.
|
403 | Authorization refused.
|
404 | Resource not found.
|
429 | Rate limit reached.
|
500 | Unexpected server error. Always include the
|
501 | Test keys (
|
503 | A service the request depends on didn't respond (reading the key, the
account or the plan). The same request will go through once it's back:
retry after the
|
Example request
curl -X GET 'https://api.capturia.io/v1/automations/{id}/history' \
-H 'Authorization: Bearer cap_live_<your-key>' \
-H 'Content-Type: application/json'/v1/enrollmentsEnroll contacts in a sequence, an automation, or a follow-up
Enrolls up to 100 contacts in one of the account's email sequences,
automations, or SMS follow-up campaigns, through the same service as the
dashboard. Returns one outcome per contact: enrolled, already
(already enrolled), or refused with its reason.
Required scope
The scope follows the kind of target: email:send for a sequence
(email_), automations:trigger for an automation
(automation), campaigns:launch for a follow-up (relance).
Refusal reasons
lead_,customer lead_,closed lead_: the contact is already a customer, closed (in a lost or disqualification column, or disqualified), or said no. An automation set up for customers or for the lost column accepts them; someone who said no, never.refused contact_,not_ found contact_,absorbed contact_,archived contact_: the record isn't a live record of the account.test target_,inactive target_,empty module_,closed booking_: the target isn't active, has no step, its module isn't open, or it's a booking email, which the calendar sends itself.email_ not_ enrollable target_: the follow-up takes no individual enrollment (a one-time send goes to its list, the autonomous follow-up picks its own leads).not_ enrollable unsubscribed,opted_,out no_,consent no_,phone upcoming_,booking said_,later held_,by_ event manual_,pilot contact_,paused enrollment_,filter other_,system queued_,elsewhere withdrawn_: the target's guards (unsubscription, consent, upcoming booking, a date the prospect gave or the seller promised that hasn't come yet, an event's agent following the contact, the target's enrollment filter, earlier removal from this follow-up, send caps).from_ target duplicate,window_,cap hard_: an automation's caps (the same enrollment within 5 minutes, the contact's cap over 24 hours, the account's safety cap over the hour); retry later.cap booking_: an appointment automation, for a contact with no appointment; attachrequired event_.data. booking_ id
A contact repeated in contact_ is enrolled once and gets a single
outcome. Each enrollment leaves a trace on the contact's record, with the
key as the author.
email:send or automations:trigger or campaigns:launchRequest body
| Property | Type | Required | Description |
|---|---|---|---|
target | EnrollmentTarget | required | The target of an enrollment, in the calling account. |
contact_ids | string[] | required | The contacts to enroll (at most 100 per request). |
Responses
| Status | Description |
|---|---|
200 | One outcome per contact. |
400 | Invalid request.
|
401 | The API key is missing, unknown or expired.
|
403 | Authorization refused.
|
404 | Resource not found.
|
413 | The request body exceeds 1 MB (1,048,576 bytes).
|
415 | The
|
429 | Rate limit reached.
|
500 | Unexpected server error. Always include the
|
501 | Test keys (
|
503 | A service the request depends on didn't respond (reading the key, the
account or the plan). The same request will go through once it's back:
retry after the
|
Example request
curl -X POST 'https://api.capturia.io/v1/enrollments' \
-H 'Authorization: Bearer cap_live_<your-key>' \
-H 'Content-Type: application/json' \
-d '{
"target": {
"type": "email_sequence",
"id": "8f3b1a2c-9d4e-4f5a-b6c7-d8e9f0a1b2c3"
},
"contact_ids": [
"2b3c4d5e-6f7a-4b9c-8d1e-2f3a4b5c6d7e"
]
}'/v1/enrollments/withdrawRemove a contact from a sequence, an automation, or a follow-up
Stops a contact's current enrollment in one of the account's email
sequences, automations, or SMS follow-up campaigns: whatever was left to
send doesn't go out. A follow-up that already went out keeps its status,
and every follow-up text stops, even after the contact replied
(mode: followups_); the texting agent still answers if they
write.
Idempotent: a contact already removed returns outcome: already. A
contact never enrolled in this target answers 404 not_
(details.); a target that isn't in the account,
404 not_ with its kind in details.. An enrollment that
can no longer be withdrawn answers 422 business_
(details.).
The scope follows the kind of target, as for enrollment. The removal leaves a trace on the contact's record, with the key as the author.
email:send or automations:trigger or campaigns:launchRequest body
| Property | Type | Required | Description |
|---|---|---|---|
target | EnrollmentTarget | required | The target of an enrollment, in the calling account. |
contact_id | string | required | The contact to remove. |
Responses
| Status | Description |
|---|---|
200 | The contact is removed, or already was. |
400 | Invalid request.
|
401 | The API key is missing, unknown or expired.
|
403 | Authorization refused.
|
404 | Resource not found.
|
413 | The request body exceeds 1 MB (1,048,576 bytes).
|
415 | The
|
422 | Request refused.
|
429 | Rate limit reached.
|
500 | Unexpected server error. Always include the
|
501 | Test keys (
|
503 | A service the request depends on didn't respond (reading the key, the
account or the plan). The same request will go through once it's back:
retry after the
|
Example request
curl -X POST 'https://api.capturia.io/v1/enrollments/withdraw' \
-H 'Authorization: Bearer cap_live_<your-key>' \
-H 'Content-Type: application/json' \
-d '{
"target": {
"type": "relance",
"id": "8f3b1a2c-9d4e-4f5a-b6c7-d8e9f0a1b2c3"
},
"contact_id": "2b3c4d5e-6f7a-4b9c-8d1e-2f3a4b5c6d7e"
}'