Create an Automation Blueprint Run in API Explorer
Body
Required
-
Name of the automation
-
What triggers this automation, leave null if activation is manual
-
Is this automation currently active, defaults to false
-
List of conditions to evaluate on the trigger before running automation, operator types can be on ofequals, not_equal_to, more_than, less_than, less_than_or_equal_to and more_than_or_equal_to
-
Extra configuration options for the trigger of this blueprint
POST
/api/v1/automation-blueprints
curl \
--request POST 'https://api.plannrcrm.com/api/v1/automation-blueprints' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"name":"Add a new client to system on calendly webhook","trigger":"webhook","is_active":false,"conditions":[{"field":"client.is_prospect","value":true,"operator":"equals"}],"configuration":["string"]}'
Request examples
{
"name": "Add a new client to system on calendly webhook",
"trigger": "webhook",
"is_active": false,
"conditions": [
{
"field": "client.is_prospect",
"value": true,
"operator": "equals"
}
],
"configuration": [
"string"
]
}
Response examples (200)
{
"name": "Add new client on webhook",
"uuid": "b57a3293-bea7-45b0-9740-b5a3f0f7fb1d",
"steps": [
{
"name": "create a new client",
"type": "client.create",
"uuid": "4305c1a8-71fc-4896-a6ee-9a90f5e600b5",
"updated": "2025-11-17T21:14:40+00:00",
"created_at": "2025-11-17T21:14:40+00:00",
"configuration": {
"params": {
"account_uuid": {
"type": "ref",
"value": "trigger.account.uuid"
}
}
},
"condition_state": false,
"parent_step_uuid": "1a583e44-0a60-4578-8825-a0015ef75c2d"
}
],
"account": {
"firm": "App\\Http\\Resources\\FirmResource",
"name": "Gareth Thompson",
"role": "client",
"tags": "App\\Http\\Resources\\TagResource",
"type": "client",
"uuid": "61c6f8e5-413d-4ebc-89a6-eec3e1acc1b0",
"email": "gareth@codepotato.co.uk",
"groups": "App\\Http\\Resources\\GroupResource",
"owners": "App\\Http\\Resources\\AccountResource",
"circles": "App\\Http\\Resources\\CircleResource",
"last_name": "Thompson",
"photo_url": "https://eu.ui-avatars.com/api/?name=gareth+thompson",
"created_at": "2025-11-17T21:14:40+00:00",
"first_name": "Gareth",
"updated_at": "2025-11-17T21:14:40+00:00",
"with_login": true,
"inactive_at": "2025-11-17",
"custom_fields": "App\\Http\\Resources\\CustomFieldValueResource",
"introduced_by": "App\\Http\\Resources\\AccountResource",
"primary_email": "App\\Http\\Resources\\ContactDetailResource",
"can_be_deleted": "false",
"assigned_adviser": "App\\Http\\Resources\\AccountResource",
"next_review_date": "2025-11-17T21:14:40+00:00",
"has_joint_account": true,
"current_time_entry": "App\\Http\\Resources\\TimeEntryResource",
"first_contact_date": "2025-11-17T21:14:40+00:00",
"external_references": "App\\Http\\Resources\\ExternalReferenceResource",
"assigned_paraplanner": "App\\Http\\Resources\\AccountResource",
"joint_account_circle": "App\\Http\\Resources\\CircleResource",
"ownership_percentage": 100,
"previous_review_date": "2025-11-17T21:14:40+00:00",
"primary_phone_number": "App\\Http\\Resources\\ContactDetailResource",
"assigned_administrator": "App\\Http\\Resources\\AccountResource",
"anniversary_review_date": "2025-11-17T21:14:40+00:00"
},
"trigger": "client.create",
"is_active": false,
"conditions": [],
"created_at": "2025-11-17T21:14:40+00:00",
"updated_at": "2025-11-17T21:14:40+00:00",
"steps_count": "1",
"configuration": [],
"webhook_targets": [
{
"url": "https://api.plannrcrm.com/api/v1/webhooks/01605357-9fba-4cab-b4f0-141476dfa4ea",
"uuid": "73317cd4-83bd-47bb-9291-c7377f387067",
"created_at": "2025-11-17T21:14:40+00:00",
"updated_at": "2025-11-17T21:14:40+00:00"
}
]
}