Workflows
instance_id*Instance Iduuidcustomer_id?|nullworkflow_type?string|nullstatus?string|nullreference?string|nullpage?Page1 <= value1per_page?Per Page1 <= value <= 10020Successful Response
application/json- response
page*Pageper_page*Per Pagetotal*Totalworkflows*array<>curl -X GET 'https://example.com/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/workflows'{ "page": 0, "per_page": 0, "total": 0, "workflows": [ { "approver_id": "1b287364-14ff-4b72-8953-b40399093a6f", "assigned_to": "string", "completed_at": "2019-08-24T14:15:22Z", "created_at": "2019-08-24T14:15:22Z", "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e", "escalation_level": 0, "expires_at": "2019-08-24T14:15:22Z", "history": [], "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "instance_id": "06587974-2dbe-4e10-8bf9-38cce0f5a366", "last_action_at": "2019-08-24T14:15:22Z", "next_action_at": "2019-08-24T14:15:22Z", "reference": "string", "stage": "string", "status": "string", "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0", "title": "string", "updated_at": "2019-08-24T14:15:22Z", "workflow_state": {}, "workflow_type": "string" } ]}instance_id*Instance Iduuidapplication/json- body
assigned_to?string|nullcustomer_id*Customer Iduuidexpires_at?|nullinstance_id?|nullnext_action_at?|nullreference?|External reference (property ref, job ref, etc.)
stage?|Initial stage
title?|nullworkflow_state?|nullworkflow_type*Workflow TypeOne of: ('lead', 'rent_arrears', 'maintenance', 'compliance_renewal', 'viewing', 'roster', 'approval', 'invoice_chase', 'onboarding', 'custom')
Successful Response
application/json- response
approver_id?|nullassigned_to?string|nullcompleted_at?|nullcreated_at*Created Atdate-timecustomer_id*Customer Iduuidescalation_level*Escalation Levelexpires_at?|nullhistory?array<unknown>[]id*Iduuidinstance_id?|nulllast_action_at?|nullnext_action_at?|nullreference?string|nullstage?string|nullstatus*Statustenant_id*Tenant Iduuidtitle?string|nullupdated_at*Updated Atdate-timeworkflow_state?|nullworkflow_type*Workflow Typecurl -X POST 'https://example.com/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/workflows' \ -H 'Content-Type: application/json' \ -d '{ "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e", "workflow_type": "string"}'{ "approver_id": "1b287364-14ff-4b72-8953-b40399093a6f", "assigned_to": "string", "completed_at": "2019-08-24T14:15:22Z", "created_at": "2019-08-24T14:15:22Z", "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e", "escalation_level": 0, "expires_at": "2019-08-24T14:15:22Z", "history": [], "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "instance_id": "06587974-2dbe-4e10-8bf9-38cce0f5a366", "last_action_at": "2019-08-24T14:15:22Z", "next_action_at": "2019-08-24T14:15:22Z", "reference": "string", "stage": "string", "status": "string", "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0", "title": "string", "updated_at": "2019-08-24T14:15:22Z", "workflow_state": {}, "workflow_type": "string"}instance_id*Instance Iduuidworkflow_id*Workflow IduuidSuccessful Response
application/json- response
approver_id?|nullassigned_to?string|nullcompleted_at?|nullcreated_at*Created Atdate-timecustomer_id*Customer Iduuidescalation_level*Escalation Levelexpires_at?|nullhistory?array<unknown>[]id*Iduuidinstance_id?|nulllast_action_at?|nullnext_action_at?|nullreference?string|nullstage?string|nullstatus*Statustenant_id*Tenant Iduuidtitle?string|nullupdated_at*Updated Atdate-timeworkflow_state?|nullworkflow_type*Workflow Typecurl -X GET 'https://example.com/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/workflows/497f6eca-6276-4993-bfeb-53cbbbba6f08'{ "approver_id": "1b287364-14ff-4b72-8953-b40399093a6f", "assigned_to": "string", "completed_at": "2019-08-24T14:15:22Z", "created_at": "2019-08-24T14:15:22Z", "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e", "escalation_level": 0, "expires_at": "2019-08-24T14:15:22Z", "history": [], "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "instance_id": "06587974-2dbe-4e10-8bf9-38cce0f5a366", "last_action_at": "2019-08-24T14:15:22Z", "next_action_at": "2019-08-24T14:15:22Z", "reference": "string", "stage": "string", "status": "string", "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0", "title": "string", "updated_at": "2019-08-24T14:15:22Z", "workflow_state": {}, "workflow_type": "string"}instance_id*Instance Iduuidworkflow_id*Workflow Iduuidapplication/json- body
action*ActionAudit action name (e.g. 'escalated', 'approved', 'contacted_tier2')
action_detail?|nullactor?string|nullapprover_id?|nullassigned_to?string|nullescalation_level?integer|nullexpires_at?|nullnext_action_at?|nullstage?|New stage
status?|New status: ('active', 'awaiting_approval', 'paused', 'suspended', 'completed', 'expired', 'cancelled', 'failed')
workflow_state?|Merge into existing state
Successful Response
application/json- response
approver_id?|nullassigned_to?string|nullcompleted_at?|nullcreated_at*Created Atdate-timecustomer_id*Customer Iduuidescalation_level*Escalation Levelexpires_at?|nullhistory?array<unknown>[]id*Iduuidinstance_id?|nulllast_action_at?|nullnext_action_at?|nullreference?string|nullstage?string|nullstatus*Statustenant_id*Tenant Iduuidtitle?string|nullupdated_at*Updated Atdate-timeworkflow_state?|nullworkflow_type*Workflow Typecurl -X PATCH 'https://example.com/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/workflows/497f6eca-6276-4993-bfeb-53cbbbba6f08' \ -H 'Content-Type: application/json' \ -d '{ "action": "string"}'{ "approver_id": "1b287364-14ff-4b72-8953-b40399093a6f", "assigned_to": "string", "completed_at": "2019-08-24T14:15:22Z", "created_at": "2019-08-24T14:15:22Z", "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e", "escalation_level": 0, "expires_at": "2019-08-24T14:15:22Z", "history": [], "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "instance_id": "06587974-2dbe-4e10-8bf9-38cce0f5a366", "last_action_at": "2019-08-24T14:15:22Z", "next_action_at": "2019-08-24T14:15:22Z", "reference": "string", "stage": "string", "status": "string", "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0", "title": "string", "updated_at": "2019-08-24T14:15:22Z", "workflow_state": {}, "workflow_type": "string"}instance_id*Instance Iduuidworkflow_id*Workflow Iduuidapplication/json- body
resume_data?|Data merged into workflow_state on resume
Successful Response
application/json- response
id*Idmessage*Messagestatus*Statuscurl -X POST 'https://example.com/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/workflows/497f6eca-6276-4993-bfeb-53cbbbba6f08/resume' \ -H 'Content-Type: application/json' \ -d '{}'{ "id": "string", "message": "string", "status": "string"}instance_id*Instance Iduuidworkflow_id*Workflow Iduuidapplication/json- body
payload?|Arbitrary state payload to preserve for resume
step*StepStep name to suspend at
length <= 100Successful Response
application/json- response
id*Idmessage*Messagestatus*Statuscurl -X POST 'https://example.com/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/workflows/497f6eca-6276-4993-bfeb-53cbbbba6f08/suspend' \ -H 'Content-Type: application/json' \ -d '{ "step": "string"}'{ "id": "string", "message": "string", "status": "string"}HTTPBearerAuthorizationBearer <token>customer_id?|nullworkflow_type?string|nullstatus?string|nullpage?Page1 <= value1per_page?Per Page1 <= value <= 10020X-Api-Key?string|nullSuccessful Response
application/json- response
page*Pageper_page*Per Pagetotal*Totalworkflows*array<>curl -X GET 'https://example.com/v1/workflows'{ "page": 0, "per_page": 0, "total": 0, "workflows": [ { "approver_id": "1b287364-14ff-4b72-8953-b40399093a6f", "assigned_to": "string", "completed_at": "2019-08-24T14:15:22Z", "created_at": "2019-08-24T14:15:22Z", "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e", "escalation_level": 0, "expires_at": "2019-08-24T14:15:22Z", "history": [], "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "instance_id": "06587974-2dbe-4e10-8bf9-38cce0f5a366", "last_action_at": "2019-08-24T14:15:22Z", "next_action_at": "2019-08-24T14:15:22Z", "reference": "string", "stage": "string", "status": "string", "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0", "title": "string", "updated_at": "2019-08-24T14:15:22Z", "workflow_state": {}, "workflow_type": "string" } ]}HTTPBearerAuthorizationBearer <token>X-Api-Key?string|nullSuccessful Response
application/json- response
[index: integer]?curl -X GET 'https://example.com/v1/workflows/suspended'[ {}]HTTPBearerAuthorizationBearer <token>workflow_id*Workflow IduuidX-Api-Key?string|nullSuccessful Response
application/json- response
approver_id?|nullassigned_to?string|nullcompleted_at?|nullcreated_at*Created Atdate-timecustomer_id*Customer Iduuidescalation_level*Escalation Levelexpires_at?|nullhistory?array<unknown>[]id*Iduuidinstance_id?|nulllast_action_at?|nullnext_action_at?|nullreference?string|nullstage?string|nullstatus*Statustenant_id*Tenant Iduuidtitle?string|nullupdated_at*Updated Atdate-timeworkflow_state?|nullworkflow_type*Workflow Typecurl -X GET 'https://example.com/v1/workflows/497f6eca-6276-4993-bfeb-53cbbbba6f08'{ "approver_id": "1b287364-14ff-4b72-8953-b40399093a6f", "assigned_to": "string", "completed_at": "2019-08-24T14:15:22Z", "created_at": "2019-08-24T14:15:22Z", "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e", "escalation_level": 0, "expires_at": "2019-08-24T14:15:22Z", "history": [], "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "instance_id": "06587974-2dbe-4e10-8bf9-38cce0f5a366", "last_action_at": "2019-08-24T14:15:22Z", "next_action_at": "2019-08-24T14:15:22Z", "reference": "string", "stage": "string", "status": "string", "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0", "title": "string", "updated_at": "2019-08-24T14:15:22Z", "workflow_state": {}, "workflow_type": "string"}HTTPBearerAuthorizationBearer <token>workflow_id*Workflow IduuidX-Api-Key?string|nullSuccessful Response
application/json- response
id*Idmessage*Messagestatus*Statuscurl -X POST 'https://example.com/v1/workflows/497f6eca-6276-4993-bfeb-53cbbbba6f08/abort'{ "id": "string", "message": "string", "status": "string"}HTTPBearerAuthorizationBearer <token>workflow_id*Workflow IduuidX-Api-Key?string|nullapplication/json- body
resume_data?|Data merged into workflow_state on resume
Successful Response
application/json- response
id*Idmessage*Messagestatus*Statuscurl -X POST 'https://example.com/v1/workflows/497f6eca-6276-4993-bfeb-53cbbbba6f08/resume' \ -H 'Content-Type: application/json' \ -d '{}'{ "id": "string", "message": "string", "status": "string"}HTTPBearerAuthorizationBearer <token>workflow_id*Workflow IduuidX-Api-Key?string|nullapplication/json- body
payload?|Arbitrary state payload to preserve for resume
step*StepStep name to suspend at
length <= 100Successful Response
application/json- response
id*Idmessage*Messagestatus*Statuscurl -X POST 'https://example.com/v1/workflows/497f6eca-6276-4993-bfeb-53cbbbba6f08/suspend' \ -H 'Content-Type: application/json' \ -d '{ "step": "string"}'{ "id": "string", "message": "string", "status": "string"}