Automations API
Flows that react to comments and messages, with executions you can inspect.
| Operation | Method and path |
|---|---|
| Get automation flows | GET /api/v1/automations |
| Create an automation flow | POST /api/v1/automations |
| Copy automation flows between teams | POST /api/v1/automations/copy |
| Get an automation flow | GET /api/v1/automations/{id} |
| Update an automation flow | PATCH /api/v1/automations/{id} |
| Delete an automation flow | DELETE /api/v1/automations/{id} |
| Publish an automation flow | POST /api/v1/automations/{id}/publish |
| Pause an automation flow | POST /api/v1/automations/{id}/pause |
| Activate an automation flow | POST /api/v1/automations/{id}/activate |
| Archive an automation flow | POST /api/v1/automations/{id}/archive |
| Get automation flow executions | GET /api/v1/automations/{id}/executions |
| Get an automation execution | GET /api/v1/automation-executions/{id} |
| Run an automation flow test | POST /api/v1/automations/{id}/test |
| Get automation provider settings | GET /api/v1/automation-provider-settings |
| Create or update automation provider settings | PUT /api/v1/automation-provider-settings/{socialAccountId}/{type} |
| Sync automation provider settings | POST /api/v1/automation-provider-settings/{id}/sync |
| Send a rich automation message to a conversation | POST /api/v1/automation-rich-messages/conversations/{conversationId} |
/api/v1/automations Get automation flows
automation.getFlows · requires x-api-key
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
teamId required | query | string | |
status | query | string | One of DRAFT, ACTIVE, PAUSED, ARCHIVED |
platformScope | query | string | One of INSTAGRAM, FACEBOOK, BOTH, TIKTOK |
socialAccountId | query | string | |
offset | query | number | default 0 · nullable |
limit | query | number | default 10 · nullable |
Example
curl -X GET "https://api.siaran.my/api/v1/automations?teamId=TEAM_ID" \
-H "x-api-key: $SIAR_API_KEY" Response 200
2 top-level fields
-
itemsobject[] required12 fields
-
idstring required -
teamIdstring required -
organizationIdstring nullable -
namestring required -
statusstring requiredOne of:DRAFTACTIVEPAUSEDARCHIVED -
platformScopestring requiredOne of:INSTAGRAMFACEBOOKBOTHTIKTOK -
createdByUserIdstring nullable -
createdAtstring required nullable date-time -
updatedAtstring required nullable date-time -
deletedAtstring nullable date-time -
draftVersionobject8 fields
-
idstring required -
flowIdstring required -
versionnumber required -
statusstring requiredOne of:DRAFTPUBLISHEDRETIRED -
definitionobject required2 fields
-
triggerobject required11 fields
-
keywordsstring[] max 100 itemseach: min length 1each: max length 200 -
matchModestring default "ANY"One of:ANYALL -
caseSensitiveboolean default false -
senderExternalIdsstring[] max 100 itemseach: min length 1each: max length 64 -
payloadsstring[] max 100 itemseach: min length 1each: max length 1,000 -
actionDelaySecondsinteger default 0 ≥ 0≤ 86400 -
idstring min length 1max length 36 -
typestring requiredOne of:COMMENT_CREATEDDM_RECEIVEDQUICK_REPLY_CLICKEDBUTTON_CLICKEDMANUAL_TEST -
platformstring requiredOne of:INSTAGRAMFACEBOOKTIKTOK -
socialAccountIdstring required -
postIdstring nullable
-
-
stepsobject | object | object | object | object | object | object[] requiredOne of 7 shapes
type = CONDITION
-
idstring min length 1max length 36 -
typestring requiredOne of:CONDITION -
conditionsobject[] required min 1 items5 fields
-
idstring min length 1max length 36 -
fieldstring requiredOne of:TEXTPAYLOADPLATFORMSENDER_ID -
operatorstring requiredOne of:CONTAINSEQUALSMATCHES_ANY -
valuestring required min length 1max length 1,000 -
caseSensitiveboolean default false
-
type = SEND_MESSAGE
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_MESSAGE -
messageobject required5 fields
-
textstring max length 1,000 -
attachmentsobject[] max 10 items2 fields
-
uploadIdstring required min length 1 -
typestring requiredOne of:IMAGEVIDEOAUDIOFILE
-
-
quickRepliesobject[] max 13 items3 fields
-
idstring required min length 1max length 36 -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
-
-
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
carouselobject1 field
-
cardsobject[] required min 1 itemsmax 10 items5 fields
-
idstring required min length 1max length 36 -
titlestring required min length 1max length 80 -
subtitlestring nullable max length 80 -
imageUploadIdstring nullable min length 1 -
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
-
-
type = SEND_PRIVATE_REPLY
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_PRIVATE_REPLY -
messageobject required5 fields
-
textstring max length 1,000 -
attachmentsobject[] max 10 items2 fields
-
uploadIdstring required min length 1 -
typestring requiredOne of:IMAGEVIDEOAUDIOFILE
-
-
quickRepliesobject[] max 13 items3 fields
-
idstring required min length 1max length 36 -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
-
-
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
carouselobject1 field
-
cardsobject[] required min 1 itemsmax 10 items5 fields
-
idstring required min length 1max length 36 -
titlestring required min length 1max length 80 -
subtitlestring nullable max length 80 -
imageUploadIdstring nullable min length 1 -
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
-
-
type = SEND_PUBLIC_COMMENT_REPLY
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_PUBLIC_COMMENT_REPLY -
textstring required min length 1max length 1,000
type = LIKE_COMMENT
-
idstring min length 1max length 36 -
typestring requiredOne of:LIKE_COMMENT
type = ARCHIVE_CONVERSATION
-
idstring min length 1max length 36 -
typestring requiredOne of:ARCHIVE_CONVERSATION
type = OPEN_CONVERSATION
-
idstring min length 1max length 36 -
typestring requiredOne of:OPEN_CONVERSATION
-
-
-
publishedAtstring nullable date-time -
publishedByUserIdstring nullable -
createdAtstring required nullable date-time
-
-
publishedVersionobject8 fields
-
idstring required -
flowIdstring required -
versionnumber required -
statusstring requiredOne of:DRAFTPUBLISHEDRETIRED -
definitionobject required2 fields
-
triggerobject required11 fields
-
keywordsstring[] max 100 itemseach: min length 1each: max length 200 -
matchModestring default "ANY"One of:ANYALL -
caseSensitiveboolean default false -
senderExternalIdsstring[] max 100 itemseach: min length 1each: max length 64 -
payloadsstring[] max 100 itemseach: min length 1each: max length 1,000 -
actionDelaySecondsinteger default 0 ≥ 0≤ 86400 -
idstring min length 1max length 36 -
typestring requiredOne of:COMMENT_CREATEDDM_RECEIVEDQUICK_REPLY_CLICKEDBUTTON_CLICKEDMANUAL_TEST -
platformstring requiredOne of:INSTAGRAMFACEBOOKTIKTOK -
socialAccountIdstring required -
postIdstring nullable
-
-
stepsobject | object | object | object | object | object | object[] requiredOne of 7 shapes
type = CONDITION
-
idstring min length 1max length 36 -
typestring requiredOne of:CONDITION -
conditionsobject[] required min 1 items5 fields
-
idstring min length 1max length 36 -
fieldstring requiredOne of:TEXTPAYLOADPLATFORMSENDER_ID -
operatorstring requiredOne of:CONTAINSEQUALSMATCHES_ANY -
valuestring required min length 1max length 1,000 -
caseSensitiveboolean default false
-
type = SEND_MESSAGE
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_MESSAGE -
messageobject required5 fields
-
textstring max length 1,000 -
attachmentsobject[] max 10 items2 fields
-
uploadIdstring required min length 1 -
typestring requiredOne of:IMAGEVIDEOAUDIOFILE
-
-
quickRepliesobject[] max 13 items3 fields
-
idstring required min length 1max length 36 -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
-
-
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
carouselobject1 field
-
cardsobject[] required min 1 itemsmax 10 items5 fields
-
idstring required min length 1max length 36 -
titlestring required min length 1max length 80 -
subtitlestring nullable max length 80 -
imageUploadIdstring nullable min length 1 -
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
-
-
type = SEND_PRIVATE_REPLY
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_PRIVATE_REPLY -
messageobject required5 fields
-
textstring max length 1,000 -
attachmentsobject[] max 10 items2 fields
-
uploadIdstring required min length 1 -
typestring requiredOne of:IMAGEVIDEOAUDIOFILE
-
-
quickRepliesobject[] max 13 items3 fields
-
idstring required min length 1max length 36 -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
-
-
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
carouselobject1 field
-
cardsobject[] required min 1 itemsmax 10 items5 fields
-
idstring required min length 1max length 36 -
titlestring required min length 1max length 80 -
subtitlestring nullable max length 80 -
imageUploadIdstring nullable min length 1 -
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
-
-
type = SEND_PUBLIC_COMMENT_REPLY
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_PUBLIC_COMMENT_REPLY -
textstring required min length 1max length 1,000
type = LIKE_COMMENT
-
idstring min length 1max length 36 -
typestring requiredOne of:LIKE_COMMENT
type = ARCHIVE_CONVERSATION
-
idstring min length 1max length 36 -
typestring requiredOne of:ARCHIVE_CONVERSATION
type = OPEN_CONVERSATION
-
idstring min length 1max length 36 -
typestring requiredOne of:OPEN_CONVERSATION
-
-
-
publishedAtstring nullable date-time -
publishedByUserIdstring nullable -
createdAtstring required nullable date-time
-
-
-
totalnumber required
Errors: 400 Validation failed · 401 Missing or invalid API key · 403 Plan limit or permission · 404 Not found · 429 Rate limited · 500 Server error · 502 Network error
/api/v1/automations Create an automation flow
automation.createFlow · requires x-api-key
Request body application/json
-
teamIdstring required -
namestring required min length 1max length 120 -
platformScopestring requiredOne of:INSTAGRAMFACEBOOKBOTHTIKTOK -
definitionobject2 fields
-
triggerobject required11 fields
-
keywordsstring[] max 100 itemseach: min length 1each: max length 200 -
matchModestring default "ANY"One of:ANYALL -
caseSensitiveboolean default false -
senderExternalIdsstring[] max 100 itemseach: min length 1each: max length 64 -
payloadsstring[] max 100 itemseach: min length 1each: max length 1,000 -
actionDelaySecondsinteger default 0 ≥ 0≤ 86400 -
idstring min length 1max length 36 -
typestring requiredOne of:COMMENT_CREATEDDM_RECEIVEDQUICK_REPLY_CLICKEDBUTTON_CLICKEDMANUAL_TEST -
platformstring requiredOne of:INSTAGRAMFACEBOOKTIKTOK -
socialAccountIdstring required -
postIdstring nullable
-
-
stepsobject | object | object | object | object | object | object[] required min 1 itemsmax 100 itemsOne of 7 shapes
type = CONDITION
-
idstring min length 1max length 36 -
typestring requiredOne of:CONDITION -
conditionsobject[] required min 1 items5 fields
-
idstring min length 1max length 36 -
fieldstring requiredOne of:TEXTPAYLOADPLATFORMSENDER_ID -
operatorstring requiredOne of:CONTAINSEQUALSMATCHES_ANY -
valuestring required min length 1max length 1,000 -
caseSensitiveboolean default false
-
type = SEND_MESSAGE
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_MESSAGE -
messageobject required5 fields
-
textstring max length 1,000 -
attachmentsobject[] max 10 items2 fields
-
uploadIdstring required min length 1 -
typestring requiredOne of:IMAGEVIDEOAUDIOFILE
-
-
quickRepliesobject[] max 13 items3 fields
-
idstring required min length 1max length 36 -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
-
-
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
carouselobject1 field
-
cardsobject[] required min 1 itemsmax 10 items5 fields
-
idstring required min length 1max length 36 -
titlestring required min length 1max length 80 -
subtitlestring nullable max length 80 -
imageUploadIdstring nullable min length 1 -
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
-
-
type = SEND_PRIVATE_REPLY
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_PRIVATE_REPLY -
messageobject required5 fields
-
textstring max length 1,000 -
attachmentsobject[] max 10 items2 fields
-
uploadIdstring required min length 1 -
typestring requiredOne of:IMAGEVIDEOAUDIOFILE
-
-
quickRepliesobject[] max 13 items3 fields
-
idstring required min length 1max length 36 -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
-
-
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
carouselobject1 field
-
cardsobject[] required min 1 itemsmax 10 items5 fields
-
idstring required min length 1max length 36 -
titlestring required min length 1max length 80 -
subtitlestring nullable max length 80 -
imageUploadIdstring nullable min length 1 -
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
-
-
type = SEND_PUBLIC_COMMENT_REPLY
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_PUBLIC_COMMENT_REPLY -
textstring required min length 1max length 1,000
type = LIKE_COMMENT
-
idstring min length 1max length 36 -
typestring requiredOne of:LIKE_COMMENT
type = ARCHIVE_CONVERSATION
-
idstring min length 1max length 36 -
typestring requiredOne of:ARCHIVE_CONVERSATION
type = OPEN_CONVERSATION
-
idstring min length 1max length 36 -
typestring requiredOne of:OPEN_CONVERSATION
-
-
Example
curl -X POST "https://api.siaran.my/api/v1/automations" \
-H "x-api-key: $SIAR_API_KEY" \
-H "content-type: application/json" \
-d '{
"teamId": "TEAM_ID",
"name": "Example",
"platformScope": "INSTAGRAM"
}' Response 201
12 top-level fields
-
idstring required -
teamIdstring required -
organizationIdstring nullable -
namestring required -
statusstring requiredOne of:DRAFTACTIVEPAUSEDARCHIVED -
platformScopestring requiredOne of:INSTAGRAMFACEBOOKBOTHTIKTOK -
createdByUserIdstring nullable -
createdAtstring required nullable date-time -
updatedAtstring required nullable date-time -
deletedAtstring nullable date-time -
draftVersionobject8 fields
-
idstring required -
flowIdstring required -
versionnumber required -
statusstring requiredOne of:DRAFTPUBLISHEDRETIRED -
definitionobject required2 fields
-
triggerobject required11 fields
-
keywordsstring[] max 100 itemseach: min length 1each: max length 200 -
matchModestring default "ANY"One of:ANYALL -
caseSensitiveboolean default false -
senderExternalIdsstring[] max 100 itemseach: min length 1each: max length 64 -
payloadsstring[] max 100 itemseach: min length 1each: max length 1,000 -
actionDelaySecondsinteger default 0 ≥ 0≤ 86400 -
idstring min length 1max length 36 -
typestring requiredOne of:COMMENT_CREATEDDM_RECEIVEDQUICK_REPLY_CLICKEDBUTTON_CLICKEDMANUAL_TEST -
platformstring requiredOne of:INSTAGRAMFACEBOOKTIKTOK -
socialAccountIdstring required -
postIdstring nullable
-
-
stepsobject | object | object | object | object | object | object[] requiredOne of 7 shapes
type = CONDITION
-
idstring min length 1max length 36 -
typestring requiredOne of:CONDITION -
conditionsobject[] required min 1 items5 fields
-
idstring min length 1max length 36 -
fieldstring requiredOne of:TEXTPAYLOADPLATFORMSENDER_ID -
operatorstring requiredOne of:CONTAINSEQUALSMATCHES_ANY -
valuestring required min length 1max length 1,000 -
caseSensitiveboolean default false
-
type = SEND_MESSAGE
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_MESSAGE -
messageobject required5 fields
-
textstring max length 1,000 -
attachmentsobject[] max 10 items2 fields
-
uploadIdstring required min length 1 -
typestring requiredOne of:IMAGEVIDEOAUDIOFILE
-
-
quickRepliesobject[] max 13 items3 fields
-
idstring required min length 1max length 36 -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
-
-
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
carouselobject1 field
-
cardsobject[] required min 1 itemsmax 10 items5 fields
-
idstring required min length 1max length 36 -
titlestring required min length 1max length 80 -
subtitlestring nullable max length 80 -
imageUploadIdstring nullable min length 1 -
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
-
-
type = SEND_PRIVATE_REPLY
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_PRIVATE_REPLY -
messageobject required5 fields
-
textstring max length 1,000 -
attachmentsobject[] max 10 items2 fields
-
uploadIdstring required min length 1 -
typestring requiredOne of:IMAGEVIDEOAUDIOFILE
-
-
quickRepliesobject[] max 13 items3 fields
-
idstring required min length 1max length 36 -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
-
-
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
carouselobject1 field
-
cardsobject[] required min 1 itemsmax 10 items5 fields
-
idstring required min length 1max length 36 -
titlestring required min length 1max length 80 -
subtitlestring nullable max length 80 -
imageUploadIdstring nullable min length 1 -
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
-
-
type = SEND_PUBLIC_COMMENT_REPLY
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_PUBLIC_COMMENT_REPLY -
textstring required min length 1max length 1,000
type = LIKE_COMMENT
-
idstring min length 1max length 36 -
typestring requiredOne of:LIKE_COMMENT
type = ARCHIVE_CONVERSATION
-
idstring min length 1max length 36 -
typestring requiredOne of:ARCHIVE_CONVERSATION
type = OPEN_CONVERSATION
-
idstring min length 1max length 36 -
typestring requiredOne of:OPEN_CONVERSATION
-
-
-
publishedAtstring nullable date-time -
publishedByUserIdstring nullable -
createdAtstring required nullable date-time
-
-
publishedVersionobject8 fields
-
idstring required -
flowIdstring required -
versionnumber required -
statusstring requiredOne of:DRAFTPUBLISHEDRETIRED -
definitionobject required2 fields
-
triggerobject required11 fields
-
keywordsstring[] max 100 itemseach: min length 1each: max length 200 -
matchModestring default "ANY"One of:ANYALL -
caseSensitiveboolean default false -
senderExternalIdsstring[] max 100 itemseach: min length 1each: max length 64 -
payloadsstring[] max 100 itemseach: min length 1each: max length 1,000 -
actionDelaySecondsinteger default 0 ≥ 0≤ 86400 -
idstring min length 1max length 36 -
typestring requiredOne of:COMMENT_CREATEDDM_RECEIVEDQUICK_REPLY_CLICKEDBUTTON_CLICKEDMANUAL_TEST -
platformstring requiredOne of:INSTAGRAMFACEBOOKTIKTOK -
socialAccountIdstring required -
postIdstring nullable
-
-
stepsobject | object | object | object | object | object | object[] requiredOne of 7 shapes
type = CONDITION
-
idstring min length 1max length 36 -
typestring requiredOne of:CONDITION -
conditionsobject[] required min 1 items5 fields
-
idstring min length 1max length 36 -
fieldstring requiredOne of:TEXTPAYLOADPLATFORMSENDER_ID -
operatorstring requiredOne of:CONTAINSEQUALSMATCHES_ANY -
valuestring required min length 1max length 1,000 -
caseSensitiveboolean default false
-
type = SEND_MESSAGE
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_MESSAGE -
messageobject required5 fields
-
textstring max length 1,000 -
attachmentsobject[] max 10 items2 fields
-
uploadIdstring required min length 1 -
typestring requiredOne of:IMAGEVIDEOAUDIOFILE
-
-
quickRepliesobject[] max 13 items3 fields
-
idstring required min length 1max length 36 -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
-
-
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
carouselobject1 field
-
cardsobject[] required min 1 itemsmax 10 items5 fields
-
idstring required min length 1max length 36 -
titlestring required min length 1max length 80 -
subtitlestring nullable max length 80 -
imageUploadIdstring nullable min length 1 -
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
-
-
type = SEND_PRIVATE_REPLY
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_PRIVATE_REPLY -
messageobject required5 fields
-
textstring max length 1,000 -
attachmentsobject[] max 10 items2 fields
-
uploadIdstring required min length 1 -
typestring requiredOne of:IMAGEVIDEOAUDIOFILE
-
-
quickRepliesobject[] max 13 items3 fields
-
idstring required min length 1max length 36 -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
-
-
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
carouselobject1 field
-
cardsobject[] required min 1 itemsmax 10 items5 fields
-
idstring required min length 1max length 36 -
titlestring required min length 1max length 80 -
subtitlestring nullable max length 80 -
imageUploadIdstring nullable min length 1 -
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
-
-
type = SEND_PUBLIC_COMMENT_REPLY
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_PUBLIC_COMMENT_REPLY -
textstring required min length 1max length 1,000
type = LIKE_COMMENT
-
idstring min length 1max length 36 -
typestring requiredOne of:LIKE_COMMENT
type = ARCHIVE_CONVERSATION
-
idstring min length 1max length 36 -
typestring requiredOne of:ARCHIVE_CONVERSATION
type = OPEN_CONVERSATION
-
idstring min length 1max length 36 -
typestring requiredOne of:OPEN_CONVERSATION
-
-
-
publishedAtstring nullable date-time -
publishedByUserIdstring nullable -
createdAtstring required nullable date-time
-
Errors: 400 Validation failed · 401 Missing or invalid API key · 403 Plan limit or permission · 404 Not found · 429 Rate limited · 500 Server error · 502 Network error
/api/v1/automations/copy Copy automation flows between teams
automation.copyFlows · requires x-api-key
Request body application/json
-
sourceTeamIdstring required -
targetTeamIdstring required -
flowIdstring
Example
curl -X POST "https://api.siaran.my/api/v1/automations/copy" \
-H "x-api-key: $SIAR_API_KEY" \
-H "content-type: application/json" \
-d '{
"sourceTeamId": "SOURCETEAM_ID",
"targetTeamId": "TARGETTEAM_ID"
}' Response 201
2 top-level fields
-
itemsobject[] required12 fields
-
idstring required -
teamIdstring required -
organizationIdstring nullable -
namestring required -
statusstring requiredOne of:DRAFTACTIVEPAUSEDARCHIVED -
platformScopestring requiredOne of:INSTAGRAMFACEBOOKBOTHTIKTOK -
createdByUserIdstring nullable -
createdAtstring required nullable date-time -
updatedAtstring required nullable date-time -
deletedAtstring nullable date-time -
draftVersionobject8 fields
-
idstring required -
flowIdstring required -
versionnumber required -
statusstring requiredOne of:DRAFTPUBLISHEDRETIRED -
definitionobject required2 fields
-
triggerobject required11 fields
-
keywordsstring[] max 100 itemseach: min length 1each: max length 200 -
matchModestring default "ANY"One of:ANYALL -
caseSensitiveboolean default false -
senderExternalIdsstring[] max 100 itemseach: min length 1each: max length 64 -
payloadsstring[] max 100 itemseach: min length 1each: max length 1,000 -
actionDelaySecondsinteger default 0 ≥ 0≤ 86400 -
idstring min length 1max length 36 -
typestring requiredOne of:COMMENT_CREATEDDM_RECEIVEDQUICK_REPLY_CLICKEDBUTTON_CLICKEDMANUAL_TEST -
platformstring requiredOne of:INSTAGRAMFACEBOOKTIKTOK -
socialAccountIdstring required -
postIdstring nullable
-
-
stepsobject | object | object | object | object | object | object[] requiredOne of 7 shapes
type = CONDITION
-
idstring min length 1max length 36 -
typestring requiredOne of:CONDITION -
conditionsobject[] required min 1 items5 fields
-
idstring min length 1max length 36 -
fieldstring requiredOne of:TEXTPAYLOADPLATFORMSENDER_ID -
operatorstring requiredOne of:CONTAINSEQUALSMATCHES_ANY -
valuestring required min length 1max length 1,000 -
caseSensitiveboolean default false
-
type = SEND_MESSAGE
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_MESSAGE -
messageobject required5 fields
-
textstring max length 1,000 -
attachmentsobject[] max 10 items2 fields
-
uploadIdstring required min length 1 -
typestring requiredOne of:IMAGEVIDEOAUDIOFILE
-
-
quickRepliesobject[] max 13 items3 fields
-
idstring required min length 1max length 36 -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
-
-
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
carouselobject1 field
-
cardsobject[] required min 1 itemsmax 10 items5 fields
-
idstring required min length 1max length 36 -
titlestring required min length 1max length 80 -
subtitlestring nullable max length 80 -
imageUploadIdstring nullable min length 1 -
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
-
-
type = SEND_PRIVATE_REPLY
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_PRIVATE_REPLY -
messageobject required5 fields
-
textstring max length 1,000 -
attachmentsobject[] max 10 items2 fields
-
uploadIdstring required min length 1 -
typestring requiredOne of:IMAGEVIDEOAUDIOFILE
-
-
quickRepliesobject[] max 13 items3 fields
-
idstring required min length 1max length 36 -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
-
-
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
carouselobject1 field
-
cardsobject[] required min 1 itemsmax 10 items5 fields
-
idstring required min length 1max length 36 -
titlestring required min length 1max length 80 -
subtitlestring nullable max length 80 -
imageUploadIdstring nullable min length 1 -
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
-
-
type = SEND_PUBLIC_COMMENT_REPLY
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_PUBLIC_COMMENT_REPLY -
textstring required min length 1max length 1,000
type = LIKE_COMMENT
-
idstring min length 1max length 36 -
typestring requiredOne of:LIKE_COMMENT
type = ARCHIVE_CONVERSATION
-
idstring min length 1max length 36 -
typestring requiredOne of:ARCHIVE_CONVERSATION
type = OPEN_CONVERSATION
-
idstring min length 1max length 36 -
typestring requiredOne of:OPEN_CONVERSATION
-
-
-
publishedAtstring nullable date-time -
publishedByUserIdstring nullable -
createdAtstring required nullable date-time
-
-
publishedVersionobject8 fields
-
idstring required -
flowIdstring required -
versionnumber required -
statusstring requiredOne of:DRAFTPUBLISHEDRETIRED -
definitionobject required2 fields
-
triggerobject required11 fields
-
keywordsstring[] max 100 itemseach: min length 1each: max length 200 -
matchModestring default "ANY"One of:ANYALL -
caseSensitiveboolean default false -
senderExternalIdsstring[] max 100 itemseach: min length 1each: max length 64 -
payloadsstring[] max 100 itemseach: min length 1each: max length 1,000 -
actionDelaySecondsinteger default 0 ≥ 0≤ 86400 -
idstring min length 1max length 36 -
typestring requiredOne of:COMMENT_CREATEDDM_RECEIVEDQUICK_REPLY_CLICKEDBUTTON_CLICKEDMANUAL_TEST -
platformstring requiredOne of:INSTAGRAMFACEBOOKTIKTOK -
socialAccountIdstring required -
postIdstring nullable
-
-
stepsobject | object | object | object | object | object | object[] requiredOne of 7 shapes
type = CONDITION
-
idstring min length 1max length 36 -
typestring requiredOne of:CONDITION -
conditionsobject[] required min 1 items5 fields
-
idstring min length 1max length 36 -
fieldstring requiredOne of:TEXTPAYLOADPLATFORMSENDER_ID -
operatorstring requiredOne of:CONTAINSEQUALSMATCHES_ANY -
valuestring required min length 1max length 1,000 -
caseSensitiveboolean default false
-
type = SEND_MESSAGE
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_MESSAGE -
messageobject required5 fields
-
textstring max length 1,000 -
attachmentsobject[] max 10 items2 fields
-
uploadIdstring required min length 1 -
typestring requiredOne of:IMAGEVIDEOAUDIOFILE
-
-
quickRepliesobject[] max 13 items3 fields
-
idstring required min length 1max length 36 -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
-
-
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
carouselobject1 field
-
cardsobject[] required min 1 itemsmax 10 items5 fields
-
idstring required min length 1max length 36 -
titlestring required min length 1max length 80 -
subtitlestring nullable max length 80 -
imageUploadIdstring nullable min length 1 -
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
-
-
type = SEND_PRIVATE_REPLY
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_PRIVATE_REPLY -
messageobject required5 fields
-
textstring max length 1,000 -
attachmentsobject[] max 10 items2 fields
-
uploadIdstring required min length 1 -
typestring requiredOne of:IMAGEVIDEOAUDIOFILE
-
-
quickRepliesobject[] max 13 items3 fields
-
idstring required min length 1max length 36 -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
-
-
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
carouselobject1 field
-
cardsobject[] required min 1 itemsmax 10 items5 fields
-
idstring required min length 1max length 36 -
titlestring required min length 1max length 80 -
subtitlestring nullable max length 80 -
imageUploadIdstring nullable min length 1 -
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
-
-
type = SEND_PUBLIC_COMMENT_REPLY
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_PUBLIC_COMMENT_REPLY -
textstring required min length 1max length 1,000
type = LIKE_COMMENT
-
idstring min length 1max length 36 -
typestring requiredOne of:LIKE_COMMENT
type = ARCHIVE_CONVERSATION
-
idstring min length 1max length 36 -
typestring requiredOne of:ARCHIVE_CONVERSATION
type = OPEN_CONVERSATION
-
idstring min length 1max length 36 -
typestring requiredOne of:OPEN_CONVERSATION
-
-
-
publishedAtstring nullable date-time -
publishedByUserIdstring nullable -
createdAtstring required nullable date-time
-
-
-
totalnumber required
Errors: 400 Validation failed · 401 Missing or invalid API key · 403 Plan limit or permission · 404 Not found · 429 Rate limited · 500 Server error · 502 Network error
/api/v1/automations/{id} Get an automation flow
automation.getFlow · requires x-api-key
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
id required | path | string |
Example
curl -X GET "https://api.siaran.my/api/v1/automations/ID" \
-H "x-api-key: $SIAR_API_KEY" Response 200
12 top-level fields
-
idstring required -
teamIdstring required -
organizationIdstring nullable -
namestring required -
statusstring requiredOne of:DRAFTACTIVEPAUSEDARCHIVED -
platformScopestring requiredOne of:INSTAGRAMFACEBOOKBOTHTIKTOK -
createdByUserIdstring nullable -
createdAtstring required nullable date-time -
updatedAtstring required nullable date-time -
deletedAtstring nullable date-time -
draftVersionobject8 fields
-
idstring required -
flowIdstring required -
versionnumber required -
statusstring requiredOne of:DRAFTPUBLISHEDRETIRED -
definitionobject required2 fields
-
triggerobject required11 fields
-
keywordsstring[] max 100 itemseach: min length 1each: max length 200 -
matchModestring default "ANY"One of:ANYALL -
caseSensitiveboolean default false -
senderExternalIdsstring[] max 100 itemseach: min length 1each: max length 64 -
payloadsstring[] max 100 itemseach: min length 1each: max length 1,000 -
actionDelaySecondsinteger default 0 ≥ 0≤ 86400 -
idstring min length 1max length 36 -
typestring requiredOne of:COMMENT_CREATEDDM_RECEIVEDQUICK_REPLY_CLICKEDBUTTON_CLICKEDMANUAL_TEST -
platformstring requiredOne of:INSTAGRAMFACEBOOKTIKTOK -
socialAccountIdstring required -
postIdstring nullable
-
-
stepsobject | object | object | object | object | object | object[] requiredOne of 7 shapes
type = CONDITION
-
idstring min length 1max length 36 -
typestring requiredOne of:CONDITION -
conditionsobject[] required min 1 items5 fields
-
idstring min length 1max length 36 -
fieldstring requiredOne of:TEXTPAYLOADPLATFORMSENDER_ID -
operatorstring requiredOne of:CONTAINSEQUALSMATCHES_ANY -
valuestring required min length 1max length 1,000 -
caseSensitiveboolean default false
-
type = SEND_MESSAGE
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_MESSAGE -
messageobject required5 fields
-
textstring max length 1,000 -
attachmentsobject[] max 10 items2 fields
-
uploadIdstring required min length 1 -
typestring requiredOne of:IMAGEVIDEOAUDIOFILE
-
-
quickRepliesobject[] max 13 items3 fields
-
idstring required min length 1max length 36 -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
-
-
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
carouselobject1 field
-
cardsobject[] required min 1 itemsmax 10 items5 fields
-
idstring required min length 1max length 36 -
titlestring required min length 1max length 80 -
subtitlestring nullable max length 80 -
imageUploadIdstring nullable min length 1 -
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
-
-
type = SEND_PRIVATE_REPLY
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_PRIVATE_REPLY -
messageobject required5 fields
-
textstring max length 1,000 -
attachmentsobject[] max 10 items2 fields
-
uploadIdstring required min length 1 -
typestring requiredOne of:IMAGEVIDEOAUDIOFILE
-
-
quickRepliesobject[] max 13 items3 fields
-
idstring required min length 1max length 36 -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
-
-
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
carouselobject1 field
-
cardsobject[] required min 1 itemsmax 10 items5 fields
-
idstring required min length 1max length 36 -
titlestring required min length 1max length 80 -
subtitlestring nullable max length 80 -
imageUploadIdstring nullable min length 1 -
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
-
-
type = SEND_PUBLIC_COMMENT_REPLY
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_PUBLIC_COMMENT_REPLY -
textstring required min length 1max length 1,000
type = LIKE_COMMENT
-
idstring min length 1max length 36 -
typestring requiredOne of:LIKE_COMMENT
type = ARCHIVE_CONVERSATION
-
idstring min length 1max length 36 -
typestring requiredOne of:ARCHIVE_CONVERSATION
type = OPEN_CONVERSATION
-
idstring min length 1max length 36 -
typestring requiredOne of:OPEN_CONVERSATION
-
-
-
publishedAtstring nullable date-time -
publishedByUserIdstring nullable -
createdAtstring required nullable date-time
-
-
publishedVersionobject8 fields
-
idstring required -
flowIdstring required -
versionnumber required -
statusstring requiredOne of:DRAFTPUBLISHEDRETIRED -
definitionobject required2 fields
-
triggerobject required11 fields
-
keywordsstring[] max 100 itemseach: min length 1each: max length 200 -
matchModestring default "ANY"One of:ANYALL -
caseSensitiveboolean default false -
senderExternalIdsstring[] max 100 itemseach: min length 1each: max length 64 -
payloadsstring[] max 100 itemseach: min length 1each: max length 1,000 -
actionDelaySecondsinteger default 0 ≥ 0≤ 86400 -
idstring min length 1max length 36 -
typestring requiredOne of:COMMENT_CREATEDDM_RECEIVEDQUICK_REPLY_CLICKEDBUTTON_CLICKEDMANUAL_TEST -
platformstring requiredOne of:INSTAGRAMFACEBOOKTIKTOK -
socialAccountIdstring required -
postIdstring nullable
-
-
stepsobject | object | object | object | object | object | object[] requiredOne of 7 shapes
type = CONDITION
-
idstring min length 1max length 36 -
typestring requiredOne of:CONDITION -
conditionsobject[] required min 1 items5 fields
-
idstring min length 1max length 36 -
fieldstring requiredOne of:TEXTPAYLOADPLATFORMSENDER_ID -
operatorstring requiredOne of:CONTAINSEQUALSMATCHES_ANY -
valuestring required min length 1max length 1,000 -
caseSensitiveboolean default false
-
type = SEND_MESSAGE
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_MESSAGE -
messageobject required5 fields
-
textstring max length 1,000 -
attachmentsobject[] max 10 items2 fields
-
uploadIdstring required min length 1 -
typestring requiredOne of:IMAGEVIDEOAUDIOFILE
-
-
quickRepliesobject[] max 13 items3 fields
-
idstring required min length 1max length 36 -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
-
-
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
carouselobject1 field
-
cardsobject[] required min 1 itemsmax 10 items5 fields
-
idstring required min length 1max length 36 -
titlestring required min length 1max length 80 -
subtitlestring nullable max length 80 -
imageUploadIdstring nullable min length 1 -
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
-
-
type = SEND_PRIVATE_REPLY
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_PRIVATE_REPLY -
messageobject required5 fields
-
textstring max length 1,000 -
attachmentsobject[] max 10 items2 fields
-
uploadIdstring required min length 1 -
typestring requiredOne of:IMAGEVIDEOAUDIOFILE
-
-
quickRepliesobject[] max 13 items3 fields
-
idstring required min length 1max length 36 -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
-
-
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
carouselobject1 field
-
cardsobject[] required min 1 itemsmax 10 items5 fields
-
idstring required min length 1max length 36 -
titlestring required min length 1max length 80 -
subtitlestring nullable max length 80 -
imageUploadIdstring nullable min length 1 -
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
-
-
type = SEND_PUBLIC_COMMENT_REPLY
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_PUBLIC_COMMENT_REPLY -
textstring required min length 1max length 1,000
type = LIKE_COMMENT
-
idstring min length 1max length 36 -
typestring requiredOne of:LIKE_COMMENT
type = ARCHIVE_CONVERSATION
-
idstring min length 1max length 36 -
typestring requiredOne of:ARCHIVE_CONVERSATION
type = OPEN_CONVERSATION
-
idstring min length 1max length 36 -
typestring requiredOne of:OPEN_CONVERSATION
-
-
-
publishedAtstring nullable date-time -
publishedByUserIdstring nullable -
createdAtstring required nullable date-time
-
Errors: 400 Validation failed · 401 Missing or invalid API key · 403 Plan limit or permission · 404 Not found · 429 Rate limited · 500 Server error · 502 Network error
/api/v1/automations/{id} Update an automation flow
automation.updateFlow · requires x-api-key
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
id required | path | string |
Request body application/json
-
namestring min length 1max length 120 -
platformScopestringOne of:INSTAGRAMFACEBOOKBOTHTIKTOK -
definitionobject2 fields
-
triggerobject required11 fields
-
keywordsstring[] max 100 itemseach: min length 1each: max length 200 -
matchModestring default "ANY"One of:ANYALL -
caseSensitiveboolean default false -
senderExternalIdsstring[] max 100 itemseach: min length 1each: max length 64 -
payloadsstring[] max 100 itemseach: min length 1each: max length 1,000 -
actionDelaySecondsinteger default 0 ≥ 0≤ 86400 -
idstring min length 1max length 36 -
typestring requiredOne of:COMMENT_CREATEDDM_RECEIVEDQUICK_REPLY_CLICKEDBUTTON_CLICKEDMANUAL_TEST -
platformstring requiredOne of:INSTAGRAMFACEBOOKTIKTOK -
socialAccountIdstring required -
postIdstring nullable
-
-
stepsobject | object | object | object | object | object | object[] required min 1 itemsmax 100 itemsOne of 7 shapes
type = CONDITION
-
idstring min length 1max length 36 -
typestring requiredOne of:CONDITION -
conditionsobject[] required min 1 items5 fields
-
idstring min length 1max length 36 -
fieldstring requiredOne of:TEXTPAYLOADPLATFORMSENDER_ID -
operatorstring requiredOne of:CONTAINSEQUALSMATCHES_ANY -
valuestring required min length 1max length 1,000 -
caseSensitiveboolean default false
-
type = SEND_MESSAGE
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_MESSAGE -
messageobject required5 fields
-
textstring max length 1,000 -
attachmentsobject[] max 10 items2 fields
-
uploadIdstring required min length 1 -
typestring requiredOne of:IMAGEVIDEOAUDIOFILE
-
-
quickRepliesobject[] max 13 items3 fields
-
idstring required min length 1max length 36 -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
-
-
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
carouselobject1 field
-
cardsobject[] required min 1 itemsmax 10 items5 fields
-
idstring required min length 1max length 36 -
titlestring required min length 1max length 80 -
subtitlestring nullable max length 80 -
imageUploadIdstring nullable min length 1 -
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
-
-
type = SEND_PRIVATE_REPLY
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_PRIVATE_REPLY -
messageobject required5 fields
-
textstring max length 1,000 -
attachmentsobject[] max 10 items2 fields
-
uploadIdstring required min length 1 -
typestring requiredOne of:IMAGEVIDEOAUDIOFILE
-
-
quickRepliesobject[] max 13 items3 fields
-
idstring required min length 1max length 36 -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
-
-
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
carouselobject1 field
-
cardsobject[] required min 1 itemsmax 10 items5 fields
-
idstring required min length 1max length 36 -
titlestring required min length 1max length 80 -
subtitlestring nullable max length 80 -
imageUploadIdstring nullable min length 1 -
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
-
-
type = SEND_PUBLIC_COMMENT_REPLY
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_PUBLIC_COMMENT_REPLY -
textstring required min length 1max length 1,000
type = LIKE_COMMENT
-
idstring min length 1max length 36 -
typestring requiredOne of:LIKE_COMMENT
type = ARCHIVE_CONVERSATION
-
idstring min length 1max length 36 -
typestring requiredOne of:ARCHIVE_CONVERSATION
type = OPEN_CONVERSATION
-
idstring min length 1max length 36 -
typestring requiredOne of:OPEN_CONVERSATION
-
-
Example
curl -X PATCH "https://api.siaran.my/api/v1/automations/ID" \
-H "x-api-key: $SIAR_API_KEY" \
-H "content-type: application/json" \
-d '{
"name": "Example",
"platformScope": "INSTAGRAM",
"definition": {
"trigger": {
"type": "COMMENT_CREATED",
"platform": "INSTAGRAM",
"socialAccountId": "SOCIALACCOUNT_ID"
},
"steps": [
{
"type": "CONDITION",
"conditions": [
{
"field": "TEXT",
"operator": "CONTAINS",
"value": "string"
}
]
}
]
}
}' Response 200
12 top-level fields
-
idstring required -
teamIdstring required -
organizationIdstring nullable -
namestring required -
statusstring requiredOne of:DRAFTACTIVEPAUSEDARCHIVED -
platformScopestring requiredOne of:INSTAGRAMFACEBOOKBOTHTIKTOK -
createdByUserIdstring nullable -
createdAtstring required nullable date-time -
updatedAtstring required nullable date-time -
deletedAtstring nullable date-time -
draftVersionobject8 fields
-
idstring required -
flowIdstring required -
versionnumber required -
statusstring requiredOne of:DRAFTPUBLISHEDRETIRED -
definitionobject required2 fields
-
triggerobject required11 fields
-
keywordsstring[] max 100 itemseach: min length 1each: max length 200 -
matchModestring default "ANY"One of:ANYALL -
caseSensitiveboolean default false -
senderExternalIdsstring[] max 100 itemseach: min length 1each: max length 64 -
payloadsstring[] max 100 itemseach: min length 1each: max length 1,000 -
actionDelaySecondsinteger default 0 ≥ 0≤ 86400 -
idstring min length 1max length 36 -
typestring requiredOne of:COMMENT_CREATEDDM_RECEIVEDQUICK_REPLY_CLICKEDBUTTON_CLICKEDMANUAL_TEST -
platformstring requiredOne of:INSTAGRAMFACEBOOKTIKTOK -
socialAccountIdstring required -
postIdstring nullable
-
-
stepsobject | object | object | object | object | object | object[] requiredOne of 7 shapes
type = CONDITION
-
idstring min length 1max length 36 -
typestring requiredOne of:CONDITION -
conditionsobject[] required min 1 items5 fields
-
idstring min length 1max length 36 -
fieldstring requiredOne of:TEXTPAYLOADPLATFORMSENDER_ID -
operatorstring requiredOne of:CONTAINSEQUALSMATCHES_ANY -
valuestring required min length 1max length 1,000 -
caseSensitiveboolean default false
-
type = SEND_MESSAGE
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_MESSAGE -
messageobject required5 fields
-
textstring max length 1,000 -
attachmentsobject[] max 10 items2 fields
-
uploadIdstring required min length 1 -
typestring requiredOne of:IMAGEVIDEOAUDIOFILE
-
-
quickRepliesobject[] max 13 items3 fields
-
idstring required min length 1max length 36 -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
-
-
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
carouselobject1 field
-
cardsobject[] required min 1 itemsmax 10 items5 fields
-
idstring required min length 1max length 36 -
titlestring required min length 1max length 80 -
subtitlestring nullable max length 80 -
imageUploadIdstring nullable min length 1 -
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
-
-
type = SEND_PRIVATE_REPLY
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_PRIVATE_REPLY -
messageobject required5 fields
-
textstring max length 1,000 -
attachmentsobject[] max 10 items2 fields
-
uploadIdstring required min length 1 -
typestring requiredOne of:IMAGEVIDEOAUDIOFILE
-
-
quickRepliesobject[] max 13 items3 fields
-
idstring required min length 1max length 36 -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
-
-
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
carouselobject1 field
-
cardsobject[] required min 1 itemsmax 10 items5 fields
-
idstring required min length 1max length 36 -
titlestring required min length 1max length 80 -
subtitlestring nullable max length 80 -
imageUploadIdstring nullable min length 1 -
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
-
-
type = SEND_PUBLIC_COMMENT_REPLY
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_PUBLIC_COMMENT_REPLY -
textstring required min length 1max length 1,000
type = LIKE_COMMENT
-
idstring min length 1max length 36 -
typestring requiredOne of:LIKE_COMMENT
type = ARCHIVE_CONVERSATION
-
idstring min length 1max length 36 -
typestring requiredOne of:ARCHIVE_CONVERSATION
type = OPEN_CONVERSATION
-
idstring min length 1max length 36 -
typestring requiredOne of:OPEN_CONVERSATION
-
-
-
publishedAtstring nullable date-time -
publishedByUserIdstring nullable -
createdAtstring required nullable date-time
-
-
publishedVersionobject8 fields
-
idstring required -
flowIdstring required -
versionnumber required -
statusstring requiredOne of:DRAFTPUBLISHEDRETIRED -
definitionobject required2 fields
-
triggerobject required11 fields
-
keywordsstring[] max 100 itemseach: min length 1each: max length 200 -
matchModestring default "ANY"One of:ANYALL -
caseSensitiveboolean default false -
senderExternalIdsstring[] max 100 itemseach: min length 1each: max length 64 -
payloadsstring[] max 100 itemseach: min length 1each: max length 1,000 -
actionDelaySecondsinteger default 0 ≥ 0≤ 86400 -
idstring min length 1max length 36 -
typestring requiredOne of:COMMENT_CREATEDDM_RECEIVEDQUICK_REPLY_CLICKEDBUTTON_CLICKEDMANUAL_TEST -
platformstring requiredOne of:INSTAGRAMFACEBOOKTIKTOK -
socialAccountIdstring required -
postIdstring nullable
-
-
stepsobject | object | object | object | object | object | object[] requiredOne of 7 shapes
type = CONDITION
-
idstring min length 1max length 36 -
typestring requiredOne of:CONDITION -
conditionsobject[] required min 1 items5 fields
-
idstring min length 1max length 36 -
fieldstring requiredOne of:TEXTPAYLOADPLATFORMSENDER_ID -
operatorstring requiredOne of:CONTAINSEQUALSMATCHES_ANY -
valuestring required min length 1max length 1,000 -
caseSensitiveboolean default false
-
type = SEND_MESSAGE
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_MESSAGE -
messageobject required5 fields
-
textstring max length 1,000 -
attachmentsobject[] max 10 items2 fields
-
uploadIdstring required min length 1 -
typestring requiredOne of:IMAGEVIDEOAUDIOFILE
-
-
quickRepliesobject[] max 13 items3 fields
-
idstring required min length 1max length 36 -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
-
-
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
carouselobject1 field
-
cardsobject[] required min 1 itemsmax 10 items5 fields
-
idstring required min length 1max length 36 -
titlestring required min length 1max length 80 -
subtitlestring nullable max length 80 -
imageUploadIdstring nullable min length 1 -
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
-
-
type = SEND_PRIVATE_REPLY
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_PRIVATE_REPLY -
messageobject required5 fields
-
textstring max length 1,000 -
attachmentsobject[] max 10 items2 fields
-
uploadIdstring required min length 1 -
typestring requiredOne of:IMAGEVIDEOAUDIOFILE
-
-
quickRepliesobject[] max 13 items3 fields
-
idstring required min length 1max length 36 -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
-
-
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
carouselobject1 field
-
cardsobject[] required min 1 itemsmax 10 items5 fields
-
idstring required min length 1max length 36 -
titlestring required min length 1max length 80 -
subtitlestring nullable max length 80 -
imageUploadIdstring nullable min length 1 -
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
-
-
type = SEND_PUBLIC_COMMENT_REPLY
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_PUBLIC_COMMENT_REPLY -
textstring required min length 1max length 1,000
type = LIKE_COMMENT
-
idstring min length 1max length 36 -
typestring requiredOne of:LIKE_COMMENT
type = ARCHIVE_CONVERSATION
-
idstring min length 1max length 36 -
typestring requiredOne of:ARCHIVE_CONVERSATION
type = OPEN_CONVERSATION
-
idstring min length 1max length 36 -
typestring requiredOne of:OPEN_CONVERSATION
-
-
-
publishedAtstring nullable date-time -
publishedByUserIdstring nullable -
createdAtstring required nullable date-time
-
Errors: 400 Validation failed · 401 Missing or invalid API key · 403 Plan limit or permission · 404 Not found · 429 Rate limited · 500 Server error · 502 Network error
/api/v1/automations/{id} Delete an automation flow
automation.deleteFlow · requires x-api-key
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
id required | path | string |
Example
curl -X DELETE "https://api.siaran.my/api/v1/automations/ID" \
-H "x-api-key: $SIAR_API_KEY" Response 200
12 top-level fields
-
idstring required -
teamIdstring required -
organizationIdstring nullable -
namestring required -
statusstring requiredOne of:DRAFTACTIVEPAUSEDARCHIVED -
platformScopestring requiredOne of:INSTAGRAMFACEBOOKBOTHTIKTOK -
createdByUserIdstring nullable -
createdAtstring required nullable date-time -
updatedAtstring required nullable date-time -
deletedAtstring nullable date-time -
draftVersionobject8 fields
-
idstring required -
flowIdstring required -
versionnumber required -
statusstring requiredOne of:DRAFTPUBLISHEDRETIRED -
definitionobject required2 fields
-
triggerobject required11 fields
-
keywordsstring[] max 100 itemseach: min length 1each: max length 200 -
matchModestring default "ANY"One of:ANYALL -
caseSensitiveboolean default false -
senderExternalIdsstring[] max 100 itemseach: min length 1each: max length 64 -
payloadsstring[] max 100 itemseach: min length 1each: max length 1,000 -
actionDelaySecondsinteger default 0 ≥ 0≤ 86400 -
idstring min length 1max length 36 -
typestring requiredOne of:COMMENT_CREATEDDM_RECEIVEDQUICK_REPLY_CLICKEDBUTTON_CLICKEDMANUAL_TEST -
platformstring requiredOne of:INSTAGRAMFACEBOOKTIKTOK -
socialAccountIdstring required -
postIdstring nullable
-
-
stepsobject | object | object | object | object | object | object[] requiredOne of 7 shapes
type = CONDITION
-
idstring min length 1max length 36 -
typestring requiredOne of:CONDITION -
conditionsobject[] required min 1 items5 fields
-
idstring min length 1max length 36 -
fieldstring requiredOne of:TEXTPAYLOADPLATFORMSENDER_ID -
operatorstring requiredOne of:CONTAINSEQUALSMATCHES_ANY -
valuestring required min length 1max length 1,000 -
caseSensitiveboolean default false
-
type = SEND_MESSAGE
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_MESSAGE -
messageobject required5 fields
-
textstring max length 1,000 -
attachmentsobject[] max 10 items2 fields
-
uploadIdstring required min length 1 -
typestring requiredOne of:IMAGEVIDEOAUDIOFILE
-
-
quickRepliesobject[] max 13 items3 fields
-
idstring required min length 1max length 36 -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
-
-
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
carouselobject1 field
-
cardsobject[] required min 1 itemsmax 10 items5 fields
-
idstring required min length 1max length 36 -
titlestring required min length 1max length 80 -
subtitlestring nullable max length 80 -
imageUploadIdstring nullable min length 1 -
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
-
-
type = SEND_PRIVATE_REPLY
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_PRIVATE_REPLY -
messageobject required5 fields
-
textstring max length 1,000 -
attachmentsobject[] max 10 items2 fields
-
uploadIdstring required min length 1 -
typestring requiredOne of:IMAGEVIDEOAUDIOFILE
-
-
quickRepliesobject[] max 13 items3 fields
-
idstring required min length 1max length 36 -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
-
-
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
carouselobject1 field
-
cardsobject[] required min 1 itemsmax 10 items5 fields
-
idstring required min length 1max length 36 -
titlestring required min length 1max length 80 -
subtitlestring nullable max length 80 -
imageUploadIdstring nullable min length 1 -
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
-
-
type = SEND_PUBLIC_COMMENT_REPLY
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_PUBLIC_COMMENT_REPLY -
textstring required min length 1max length 1,000
type = LIKE_COMMENT
-
idstring min length 1max length 36 -
typestring requiredOne of:LIKE_COMMENT
type = ARCHIVE_CONVERSATION
-
idstring min length 1max length 36 -
typestring requiredOne of:ARCHIVE_CONVERSATION
type = OPEN_CONVERSATION
-
idstring min length 1max length 36 -
typestring requiredOne of:OPEN_CONVERSATION
-
-
-
publishedAtstring nullable date-time -
publishedByUserIdstring nullable -
createdAtstring required nullable date-time
-
-
publishedVersionobject8 fields
-
idstring required -
flowIdstring required -
versionnumber required -
statusstring requiredOne of:DRAFTPUBLISHEDRETIRED -
definitionobject required2 fields
-
triggerobject required11 fields
-
keywordsstring[] max 100 itemseach: min length 1each: max length 200 -
matchModestring default "ANY"One of:ANYALL -
caseSensitiveboolean default false -
senderExternalIdsstring[] max 100 itemseach: min length 1each: max length 64 -
payloadsstring[] max 100 itemseach: min length 1each: max length 1,000 -
actionDelaySecondsinteger default 0 ≥ 0≤ 86400 -
idstring min length 1max length 36 -
typestring requiredOne of:COMMENT_CREATEDDM_RECEIVEDQUICK_REPLY_CLICKEDBUTTON_CLICKEDMANUAL_TEST -
platformstring requiredOne of:INSTAGRAMFACEBOOKTIKTOK -
socialAccountIdstring required -
postIdstring nullable
-
-
stepsobject | object | object | object | object | object | object[] requiredOne of 7 shapes
type = CONDITION
-
idstring min length 1max length 36 -
typestring requiredOne of:CONDITION -
conditionsobject[] required min 1 items5 fields
-
idstring min length 1max length 36 -
fieldstring requiredOne of:TEXTPAYLOADPLATFORMSENDER_ID -
operatorstring requiredOne of:CONTAINSEQUALSMATCHES_ANY -
valuestring required min length 1max length 1,000 -
caseSensitiveboolean default false
-
type = SEND_MESSAGE
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_MESSAGE -
messageobject required5 fields
-
textstring max length 1,000 -
attachmentsobject[] max 10 items2 fields
-
uploadIdstring required min length 1 -
typestring requiredOne of:IMAGEVIDEOAUDIOFILE
-
-
quickRepliesobject[] max 13 items3 fields
-
idstring required min length 1max length 36 -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
-
-
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
carouselobject1 field
-
cardsobject[] required min 1 itemsmax 10 items5 fields
-
idstring required min length 1max length 36 -
titlestring required min length 1max length 80 -
subtitlestring nullable max length 80 -
imageUploadIdstring nullable min length 1 -
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
-
-
type = SEND_PRIVATE_REPLY
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_PRIVATE_REPLY -
messageobject required5 fields
-
textstring max length 1,000 -
attachmentsobject[] max 10 items2 fields
-
uploadIdstring required min length 1 -
typestring requiredOne of:IMAGEVIDEOAUDIOFILE
-
-
quickRepliesobject[] max 13 items3 fields
-
idstring required min length 1max length 36 -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
-
-
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
carouselobject1 field
-
cardsobject[] required min 1 itemsmax 10 items5 fields
-
idstring required min length 1max length 36 -
titlestring required min length 1max length 80 -
subtitlestring nullable max length 80 -
imageUploadIdstring nullable min length 1 -
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
-
-
type = SEND_PUBLIC_COMMENT_REPLY
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_PUBLIC_COMMENT_REPLY -
textstring required min length 1max length 1,000
type = LIKE_COMMENT
-
idstring min length 1max length 36 -
typestring requiredOne of:LIKE_COMMENT
type = ARCHIVE_CONVERSATION
-
idstring min length 1max length 36 -
typestring requiredOne of:ARCHIVE_CONVERSATION
type = OPEN_CONVERSATION
-
idstring min length 1max length 36 -
typestring requiredOne of:OPEN_CONVERSATION
-
-
-
publishedAtstring nullable date-time -
publishedByUserIdstring nullable -
createdAtstring required nullable date-time
-
Errors: 400 Validation failed · 401 Missing or invalid API key · 403 Plan limit or permission · 404 Not found · 429 Rate limited · 500 Server error · 502 Network error
/api/v1/automations/{id}/publish Publish an automation flow
automation.publishFlow · requires x-api-key
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
id required | path | string |
Request body application/json
-
definitionobject2 fields
-
triggerobject required11 fields
-
keywordsstring[] max 100 itemseach: min length 1each: max length 200 -
matchModestring default "ANY"One of:ANYALL -
caseSensitiveboolean default false -
senderExternalIdsstring[] max 100 itemseach: min length 1each: max length 64 -
payloadsstring[] max 100 itemseach: min length 1each: max length 1,000 -
actionDelaySecondsinteger default 0 ≥ 0≤ 86400 -
idstring min length 1max length 36 -
typestring requiredOne of:COMMENT_CREATEDDM_RECEIVEDQUICK_REPLY_CLICKEDBUTTON_CLICKEDMANUAL_TEST -
platformstring requiredOne of:INSTAGRAMFACEBOOKTIKTOK -
socialAccountIdstring required -
postIdstring nullable
-
-
stepsobject | object | object | object | object | object | object[] required min 1 itemsmax 100 itemsOne of 7 shapes
type = CONDITION
-
idstring min length 1max length 36 -
typestring requiredOne of:CONDITION -
conditionsobject[] required min 1 items5 fields
-
idstring min length 1max length 36 -
fieldstring requiredOne of:TEXTPAYLOADPLATFORMSENDER_ID -
operatorstring requiredOne of:CONTAINSEQUALSMATCHES_ANY -
valuestring required min length 1max length 1,000 -
caseSensitiveboolean default false
-
type = SEND_MESSAGE
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_MESSAGE -
messageobject required5 fields
-
textstring max length 1,000 -
attachmentsobject[] max 10 items2 fields
-
uploadIdstring required min length 1 -
typestring requiredOne of:IMAGEVIDEOAUDIOFILE
-
-
quickRepliesobject[] max 13 items3 fields
-
idstring required min length 1max length 36 -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
-
-
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
carouselobject1 field
-
cardsobject[] required min 1 itemsmax 10 items5 fields
-
idstring required min length 1max length 36 -
titlestring required min length 1max length 80 -
subtitlestring nullable max length 80 -
imageUploadIdstring nullable min length 1 -
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
-
-
type = SEND_PRIVATE_REPLY
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_PRIVATE_REPLY -
messageobject required5 fields
-
textstring max length 1,000 -
attachmentsobject[] max 10 items2 fields
-
uploadIdstring required min length 1 -
typestring requiredOne of:IMAGEVIDEOAUDIOFILE
-
-
quickRepliesobject[] max 13 items3 fields
-
idstring required min length 1max length 36 -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
-
-
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
carouselobject1 field
-
cardsobject[] required min 1 itemsmax 10 items5 fields
-
idstring required min length 1max length 36 -
titlestring required min length 1max length 80 -
subtitlestring nullable max length 80 -
imageUploadIdstring nullable min length 1 -
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
-
-
type = SEND_PUBLIC_COMMENT_REPLY
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_PUBLIC_COMMENT_REPLY -
textstring required min length 1max length 1,000
type = LIKE_COMMENT
-
idstring min length 1max length 36 -
typestring requiredOne of:LIKE_COMMENT
type = ARCHIVE_CONVERSATION
-
idstring min length 1max length 36 -
typestring requiredOne of:ARCHIVE_CONVERSATION
type = OPEN_CONVERSATION
-
idstring min length 1max length 36 -
typestring requiredOne of:OPEN_CONVERSATION
-
-
Example
curl -X POST "https://api.siaran.my/api/v1/automations/ID/publish" \
-H "x-api-key: $SIAR_API_KEY" \
-H "content-type: application/json" \
-d '{
"definition": {
"trigger": {
"type": "COMMENT_CREATED",
"platform": "INSTAGRAM",
"socialAccountId": "SOCIALACCOUNT_ID"
},
"steps": [
{
"type": "CONDITION",
"conditions": [
{
"field": "TEXT",
"operator": "CONTAINS",
"value": "string"
}
]
}
]
}
}' Response 200
12 top-level fields
-
idstring required -
teamIdstring required -
organizationIdstring nullable -
namestring required -
statusstring requiredOne of:DRAFTACTIVEPAUSEDARCHIVED -
platformScopestring requiredOne of:INSTAGRAMFACEBOOKBOTHTIKTOK -
createdByUserIdstring nullable -
createdAtstring required nullable date-time -
updatedAtstring required nullable date-time -
deletedAtstring nullable date-time -
draftVersionobject8 fields
-
idstring required -
flowIdstring required -
versionnumber required -
statusstring requiredOne of:DRAFTPUBLISHEDRETIRED -
definitionobject required2 fields
-
triggerobject required11 fields
-
keywordsstring[] max 100 itemseach: min length 1each: max length 200 -
matchModestring default "ANY"One of:ANYALL -
caseSensitiveboolean default false -
senderExternalIdsstring[] max 100 itemseach: min length 1each: max length 64 -
payloadsstring[] max 100 itemseach: min length 1each: max length 1,000 -
actionDelaySecondsinteger default 0 ≥ 0≤ 86400 -
idstring min length 1max length 36 -
typestring requiredOne of:COMMENT_CREATEDDM_RECEIVEDQUICK_REPLY_CLICKEDBUTTON_CLICKEDMANUAL_TEST -
platformstring requiredOne of:INSTAGRAMFACEBOOKTIKTOK -
socialAccountIdstring required -
postIdstring nullable
-
-
stepsobject | object | object | object | object | object | object[] requiredOne of 7 shapes
type = CONDITION
-
idstring min length 1max length 36 -
typestring requiredOne of:CONDITION -
conditionsobject[] required min 1 items5 fields
-
idstring min length 1max length 36 -
fieldstring requiredOne of:TEXTPAYLOADPLATFORMSENDER_ID -
operatorstring requiredOne of:CONTAINSEQUALSMATCHES_ANY -
valuestring required min length 1max length 1,000 -
caseSensitiveboolean default false
-
type = SEND_MESSAGE
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_MESSAGE -
messageobject required5 fields
-
textstring max length 1,000 -
attachmentsobject[] max 10 items2 fields
-
uploadIdstring required min length 1 -
typestring requiredOne of:IMAGEVIDEOAUDIOFILE
-
-
quickRepliesobject[] max 13 items3 fields
-
idstring required min length 1max length 36 -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
-
-
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
carouselobject1 field
-
cardsobject[] required min 1 itemsmax 10 items5 fields
-
idstring required min length 1max length 36 -
titlestring required min length 1max length 80 -
subtitlestring nullable max length 80 -
imageUploadIdstring nullable min length 1 -
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
-
-
type = SEND_PRIVATE_REPLY
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_PRIVATE_REPLY -
messageobject required5 fields
-
textstring max length 1,000 -
attachmentsobject[] max 10 items2 fields
-
uploadIdstring required min length 1 -
typestring requiredOne of:IMAGEVIDEOAUDIOFILE
-
-
quickRepliesobject[] max 13 items3 fields
-
idstring required min length 1max length 36 -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
-
-
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
carouselobject1 field
-
cardsobject[] required min 1 itemsmax 10 items5 fields
-
idstring required min length 1max length 36 -
titlestring required min length 1max length 80 -
subtitlestring nullable max length 80 -
imageUploadIdstring nullable min length 1 -
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
-
-
type = SEND_PUBLIC_COMMENT_REPLY
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_PUBLIC_COMMENT_REPLY -
textstring required min length 1max length 1,000
type = LIKE_COMMENT
-
idstring min length 1max length 36 -
typestring requiredOne of:LIKE_COMMENT
type = ARCHIVE_CONVERSATION
-
idstring min length 1max length 36 -
typestring requiredOne of:ARCHIVE_CONVERSATION
type = OPEN_CONVERSATION
-
idstring min length 1max length 36 -
typestring requiredOne of:OPEN_CONVERSATION
-
-
-
publishedAtstring nullable date-time -
publishedByUserIdstring nullable -
createdAtstring required nullable date-time
-
-
publishedVersionobject8 fields
-
idstring required -
flowIdstring required -
versionnumber required -
statusstring requiredOne of:DRAFTPUBLISHEDRETIRED -
definitionobject required2 fields
-
triggerobject required11 fields
-
keywordsstring[] max 100 itemseach: min length 1each: max length 200 -
matchModestring default "ANY"One of:ANYALL -
caseSensitiveboolean default false -
senderExternalIdsstring[] max 100 itemseach: min length 1each: max length 64 -
payloadsstring[] max 100 itemseach: min length 1each: max length 1,000 -
actionDelaySecondsinteger default 0 ≥ 0≤ 86400 -
idstring min length 1max length 36 -
typestring requiredOne of:COMMENT_CREATEDDM_RECEIVEDQUICK_REPLY_CLICKEDBUTTON_CLICKEDMANUAL_TEST -
platformstring requiredOne of:INSTAGRAMFACEBOOKTIKTOK -
socialAccountIdstring required -
postIdstring nullable
-
-
stepsobject | object | object | object | object | object | object[] requiredOne of 7 shapes
type = CONDITION
-
idstring min length 1max length 36 -
typestring requiredOne of:CONDITION -
conditionsobject[] required min 1 items5 fields
-
idstring min length 1max length 36 -
fieldstring requiredOne of:TEXTPAYLOADPLATFORMSENDER_ID -
operatorstring requiredOne of:CONTAINSEQUALSMATCHES_ANY -
valuestring required min length 1max length 1,000 -
caseSensitiveboolean default false
-
type = SEND_MESSAGE
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_MESSAGE -
messageobject required5 fields
-
textstring max length 1,000 -
attachmentsobject[] max 10 items2 fields
-
uploadIdstring required min length 1 -
typestring requiredOne of:IMAGEVIDEOAUDIOFILE
-
-
quickRepliesobject[] max 13 items3 fields
-
idstring required min length 1max length 36 -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
-
-
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
carouselobject1 field
-
cardsobject[] required min 1 itemsmax 10 items5 fields
-
idstring required min length 1max length 36 -
titlestring required min length 1max length 80 -
subtitlestring nullable max length 80 -
imageUploadIdstring nullable min length 1 -
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
-
-
type = SEND_PRIVATE_REPLY
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_PRIVATE_REPLY -
messageobject required5 fields
-
textstring max length 1,000 -
attachmentsobject[] max 10 items2 fields
-
uploadIdstring required min length 1 -
typestring requiredOne of:IMAGEVIDEOAUDIOFILE
-
-
quickRepliesobject[] max 13 items3 fields
-
idstring required min length 1max length 36 -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
-
-
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
carouselobject1 field
-
cardsobject[] required min 1 itemsmax 10 items5 fields
-
idstring required min length 1max length 36 -
titlestring required min length 1max length 80 -
subtitlestring nullable max length 80 -
imageUploadIdstring nullable min length 1 -
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
-
-
type = SEND_PUBLIC_COMMENT_REPLY
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_PUBLIC_COMMENT_REPLY -
textstring required min length 1max length 1,000
type = LIKE_COMMENT
-
idstring min length 1max length 36 -
typestring requiredOne of:LIKE_COMMENT
type = ARCHIVE_CONVERSATION
-
idstring min length 1max length 36 -
typestring requiredOne of:ARCHIVE_CONVERSATION
type = OPEN_CONVERSATION
-
idstring min length 1max length 36 -
typestring requiredOne of:OPEN_CONVERSATION
-
-
-
publishedAtstring nullable date-time -
publishedByUserIdstring nullable -
createdAtstring required nullable date-time
-
Errors: 400 Validation failed · 401 Missing or invalid API key · 403 Plan limit or permission · 404 Not found · 429 Rate limited · 500 Server error · 502 Network error
/api/v1/automations/{id}/pause Pause an automation flow
automation.pauseFlow · requires x-api-key
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
id required | path | string |
Example
curl -X POST "https://api.siaran.my/api/v1/automations/ID/pause" \
-H "x-api-key: $SIAR_API_KEY" Response 200
12 top-level fields
-
idstring required -
teamIdstring required -
organizationIdstring nullable -
namestring required -
statusstring requiredOne of:DRAFTACTIVEPAUSEDARCHIVED -
platformScopestring requiredOne of:INSTAGRAMFACEBOOKBOTHTIKTOK -
createdByUserIdstring nullable -
createdAtstring required nullable date-time -
updatedAtstring required nullable date-time -
deletedAtstring nullable date-time -
draftVersionobject8 fields
-
idstring required -
flowIdstring required -
versionnumber required -
statusstring requiredOne of:DRAFTPUBLISHEDRETIRED -
definitionobject required2 fields
-
triggerobject required11 fields
-
keywordsstring[] max 100 itemseach: min length 1each: max length 200 -
matchModestring default "ANY"One of:ANYALL -
caseSensitiveboolean default false -
senderExternalIdsstring[] max 100 itemseach: min length 1each: max length 64 -
payloadsstring[] max 100 itemseach: min length 1each: max length 1,000 -
actionDelaySecondsinteger default 0 ≥ 0≤ 86400 -
idstring min length 1max length 36 -
typestring requiredOne of:COMMENT_CREATEDDM_RECEIVEDQUICK_REPLY_CLICKEDBUTTON_CLICKEDMANUAL_TEST -
platformstring requiredOne of:INSTAGRAMFACEBOOKTIKTOK -
socialAccountIdstring required -
postIdstring nullable
-
-
stepsobject | object | object | object | object | object | object[] requiredOne of 7 shapes
type = CONDITION
-
idstring min length 1max length 36 -
typestring requiredOne of:CONDITION -
conditionsobject[] required min 1 items5 fields
-
idstring min length 1max length 36 -
fieldstring requiredOne of:TEXTPAYLOADPLATFORMSENDER_ID -
operatorstring requiredOne of:CONTAINSEQUALSMATCHES_ANY -
valuestring required min length 1max length 1,000 -
caseSensitiveboolean default false
-
type = SEND_MESSAGE
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_MESSAGE -
messageobject required5 fields
-
textstring max length 1,000 -
attachmentsobject[] max 10 items2 fields
-
uploadIdstring required min length 1 -
typestring requiredOne of:IMAGEVIDEOAUDIOFILE
-
-
quickRepliesobject[] max 13 items3 fields
-
idstring required min length 1max length 36 -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
-
-
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
carouselobject1 field
-
cardsobject[] required min 1 itemsmax 10 items5 fields
-
idstring required min length 1max length 36 -
titlestring required min length 1max length 80 -
subtitlestring nullable max length 80 -
imageUploadIdstring nullable min length 1 -
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
-
-
type = SEND_PRIVATE_REPLY
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_PRIVATE_REPLY -
messageobject required5 fields
-
textstring max length 1,000 -
attachmentsobject[] max 10 items2 fields
-
uploadIdstring required min length 1 -
typestring requiredOne of:IMAGEVIDEOAUDIOFILE
-
-
quickRepliesobject[] max 13 items3 fields
-
idstring required min length 1max length 36 -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
-
-
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
carouselobject1 field
-
cardsobject[] required min 1 itemsmax 10 items5 fields
-
idstring required min length 1max length 36 -
titlestring required min length 1max length 80 -
subtitlestring nullable max length 80 -
imageUploadIdstring nullable min length 1 -
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
-
-
type = SEND_PUBLIC_COMMENT_REPLY
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_PUBLIC_COMMENT_REPLY -
textstring required min length 1max length 1,000
type = LIKE_COMMENT
-
idstring min length 1max length 36 -
typestring requiredOne of:LIKE_COMMENT
type = ARCHIVE_CONVERSATION
-
idstring min length 1max length 36 -
typestring requiredOne of:ARCHIVE_CONVERSATION
type = OPEN_CONVERSATION
-
idstring min length 1max length 36 -
typestring requiredOne of:OPEN_CONVERSATION
-
-
-
publishedAtstring nullable date-time -
publishedByUserIdstring nullable -
createdAtstring required nullable date-time
-
-
publishedVersionobject8 fields
-
idstring required -
flowIdstring required -
versionnumber required -
statusstring requiredOne of:DRAFTPUBLISHEDRETIRED -
definitionobject required2 fields
-
triggerobject required11 fields
-
keywordsstring[] max 100 itemseach: min length 1each: max length 200 -
matchModestring default "ANY"One of:ANYALL -
caseSensitiveboolean default false -
senderExternalIdsstring[] max 100 itemseach: min length 1each: max length 64 -
payloadsstring[] max 100 itemseach: min length 1each: max length 1,000 -
actionDelaySecondsinteger default 0 ≥ 0≤ 86400 -
idstring min length 1max length 36 -
typestring requiredOne of:COMMENT_CREATEDDM_RECEIVEDQUICK_REPLY_CLICKEDBUTTON_CLICKEDMANUAL_TEST -
platformstring requiredOne of:INSTAGRAMFACEBOOKTIKTOK -
socialAccountIdstring required -
postIdstring nullable
-
-
stepsobject | object | object | object | object | object | object[] requiredOne of 7 shapes
type = CONDITION
-
idstring min length 1max length 36 -
typestring requiredOne of:CONDITION -
conditionsobject[] required min 1 items5 fields
-
idstring min length 1max length 36 -
fieldstring requiredOne of:TEXTPAYLOADPLATFORMSENDER_ID -
operatorstring requiredOne of:CONTAINSEQUALSMATCHES_ANY -
valuestring required min length 1max length 1,000 -
caseSensitiveboolean default false
-
type = SEND_MESSAGE
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_MESSAGE -
messageobject required5 fields
-
textstring max length 1,000 -
attachmentsobject[] max 10 items2 fields
-
uploadIdstring required min length 1 -
typestring requiredOne of:IMAGEVIDEOAUDIOFILE
-
-
quickRepliesobject[] max 13 items3 fields
-
idstring required min length 1max length 36 -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
-
-
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
carouselobject1 field
-
cardsobject[] required min 1 itemsmax 10 items5 fields
-
idstring required min length 1max length 36 -
titlestring required min length 1max length 80 -
subtitlestring nullable max length 80 -
imageUploadIdstring nullable min length 1 -
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
-
-
type = SEND_PRIVATE_REPLY
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_PRIVATE_REPLY -
messageobject required5 fields
-
textstring max length 1,000 -
attachmentsobject[] max 10 items2 fields
-
uploadIdstring required min length 1 -
typestring requiredOne of:IMAGEVIDEOAUDIOFILE
-
-
quickRepliesobject[] max 13 items3 fields
-
idstring required min length 1max length 36 -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
-
-
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
carouselobject1 field
-
cardsobject[] required min 1 itemsmax 10 items5 fields
-
idstring required min length 1max length 36 -
titlestring required min length 1max length 80 -
subtitlestring nullable max length 80 -
imageUploadIdstring nullable min length 1 -
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
-
-
type = SEND_PUBLIC_COMMENT_REPLY
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_PUBLIC_COMMENT_REPLY -
textstring required min length 1max length 1,000
type = LIKE_COMMENT
-
idstring min length 1max length 36 -
typestring requiredOne of:LIKE_COMMENT
type = ARCHIVE_CONVERSATION
-
idstring min length 1max length 36 -
typestring requiredOne of:ARCHIVE_CONVERSATION
type = OPEN_CONVERSATION
-
idstring min length 1max length 36 -
typestring requiredOne of:OPEN_CONVERSATION
-
-
-
publishedAtstring nullable date-time -
publishedByUserIdstring nullable -
createdAtstring required nullable date-time
-
Errors: 400 Validation failed · 401 Missing or invalid API key · 403 Plan limit or permission · 404 Not found · 429 Rate limited · 500 Server error · 502 Network error
/api/v1/automations/{id}/activate Activate an automation flow
automation.activateFlow · requires x-api-key
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
id required | path | string |
Example
curl -X POST "https://api.siaran.my/api/v1/automations/ID/activate" \
-H "x-api-key: $SIAR_API_KEY" Response 200
12 top-level fields
-
idstring required -
teamIdstring required -
organizationIdstring nullable -
namestring required -
statusstring requiredOne of:DRAFTACTIVEPAUSEDARCHIVED -
platformScopestring requiredOne of:INSTAGRAMFACEBOOKBOTHTIKTOK -
createdByUserIdstring nullable -
createdAtstring required nullable date-time -
updatedAtstring required nullable date-time -
deletedAtstring nullable date-time -
draftVersionobject8 fields
-
idstring required -
flowIdstring required -
versionnumber required -
statusstring requiredOne of:DRAFTPUBLISHEDRETIRED -
definitionobject required2 fields
-
triggerobject required11 fields
-
keywordsstring[] max 100 itemseach: min length 1each: max length 200 -
matchModestring default "ANY"One of:ANYALL -
caseSensitiveboolean default false -
senderExternalIdsstring[] max 100 itemseach: min length 1each: max length 64 -
payloadsstring[] max 100 itemseach: min length 1each: max length 1,000 -
actionDelaySecondsinteger default 0 ≥ 0≤ 86400 -
idstring min length 1max length 36 -
typestring requiredOne of:COMMENT_CREATEDDM_RECEIVEDQUICK_REPLY_CLICKEDBUTTON_CLICKEDMANUAL_TEST -
platformstring requiredOne of:INSTAGRAMFACEBOOKTIKTOK -
socialAccountIdstring required -
postIdstring nullable
-
-
stepsobject | object | object | object | object | object | object[] requiredOne of 7 shapes
type = CONDITION
-
idstring min length 1max length 36 -
typestring requiredOne of:CONDITION -
conditionsobject[] required min 1 items5 fields
-
idstring min length 1max length 36 -
fieldstring requiredOne of:TEXTPAYLOADPLATFORMSENDER_ID -
operatorstring requiredOne of:CONTAINSEQUALSMATCHES_ANY -
valuestring required min length 1max length 1,000 -
caseSensitiveboolean default false
-
type = SEND_MESSAGE
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_MESSAGE -
messageobject required5 fields
-
textstring max length 1,000 -
attachmentsobject[] max 10 items2 fields
-
uploadIdstring required min length 1 -
typestring requiredOne of:IMAGEVIDEOAUDIOFILE
-
-
quickRepliesobject[] max 13 items3 fields
-
idstring required min length 1max length 36 -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
-
-
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
carouselobject1 field
-
cardsobject[] required min 1 itemsmax 10 items5 fields
-
idstring required min length 1max length 36 -
titlestring required min length 1max length 80 -
subtitlestring nullable max length 80 -
imageUploadIdstring nullable min length 1 -
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
-
-
type = SEND_PRIVATE_REPLY
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_PRIVATE_REPLY -
messageobject required5 fields
-
textstring max length 1,000 -
attachmentsobject[] max 10 items2 fields
-
uploadIdstring required min length 1 -
typestring requiredOne of:IMAGEVIDEOAUDIOFILE
-
-
quickRepliesobject[] max 13 items3 fields
-
idstring required min length 1max length 36 -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
-
-
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
carouselobject1 field
-
cardsobject[] required min 1 itemsmax 10 items5 fields
-
idstring required min length 1max length 36 -
titlestring required min length 1max length 80 -
subtitlestring nullable max length 80 -
imageUploadIdstring nullable min length 1 -
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
-
-
type = SEND_PUBLIC_COMMENT_REPLY
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_PUBLIC_COMMENT_REPLY -
textstring required min length 1max length 1,000
type = LIKE_COMMENT
-
idstring min length 1max length 36 -
typestring requiredOne of:LIKE_COMMENT
type = ARCHIVE_CONVERSATION
-
idstring min length 1max length 36 -
typestring requiredOne of:ARCHIVE_CONVERSATION
type = OPEN_CONVERSATION
-
idstring min length 1max length 36 -
typestring requiredOne of:OPEN_CONVERSATION
-
-
-
publishedAtstring nullable date-time -
publishedByUserIdstring nullable -
createdAtstring required nullable date-time
-
-
publishedVersionobject8 fields
-
idstring required -
flowIdstring required -
versionnumber required -
statusstring requiredOne of:DRAFTPUBLISHEDRETIRED -
definitionobject required2 fields
-
triggerobject required11 fields
-
keywordsstring[] max 100 itemseach: min length 1each: max length 200 -
matchModestring default "ANY"One of:ANYALL -
caseSensitiveboolean default false -
senderExternalIdsstring[] max 100 itemseach: min length 1each: max length 64 -
payloadsstring[] max 100 itemseach: min length 1each: max length 1,000 -
actionDelaySecondsinteger default 0 ≥ 0≤ 86400 -
idstring min length 1max length 36 -
typestring requiredOne of:COMMENT_CREATEDDM_RECEIVEDQUICK_REPLY_CLICKEDBUTTON_CLICKEDMANUAL_TEST -
platformstring requiredOne of:INSTAGRAMFACEBOOKTIKTOK -
socialAccountIdstring required -
postIdstring nullable
-
-
stepsobject | object | object | object | object | object | object[] requiredOne of 7 shapes
type = CONDITION
-
idstring min length 1max length 36 -
typestring requiredOne of:CONDITION -
conditionsobject[] required min 1 items5 fields
-
idstring min length 1max length 36 -
fieldstring requiredOne of:TEXTPAYLOADPLATFORMSENDER_ID -
operatorstring requiredOne of:CONTAINSEQUALSMATCHES_ANY -
valuestring required min length 1max length 1,000 -
caseSensitiveboolean default false
-
type = SEND_MESSAGE
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_MESSAGE -
messageobject required5 fields
-
textstring max length 1,000 -
attachmentsobject[] max 10 items2 fields
-
uploadIdstring required min length 1 -
typestring requiredOne of:IMAGEVIDEOAUDIOFILE
-
-
quickRepliesobject[] max 13 items3 fields
-
idstring required min length 1max length 36 -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
-
-
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
carouselobject1 field
-
cardsobject[] required min 1 itemsmax 10 items5 fields
-
idstring required min length 1max length 36 -
titlestring required min length 1max length 80 -
subtitlestring nullable max length 80 -
imageUploadIdstring nullable min length 1 -
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
-
-
type = SEND_PRIVATE_REPLY
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_PRIVATE_REPLY -
messageobject required5 fields
-
textstring max length 1,000 -
attachmentsobject[] max 10 items2 fields
-
uploadIdstring required min length 1 -
typestring requiredOne of:IMAGEVIDEOAUDIOFILE
-
-
quickRepliesobject[] max 13 items3 fields
-
idstring required min length 1max length 36 -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
-
-
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
carouselobject1 field
-
cardsobject[] required min 1 itemsmax 10 items5 fields
-
idstring required min length 1max length 36 -
titlestring required min length 1max length 80 -
subtitlestring nullable max length 80 -
imageUploadIdstring nullable min length 1 -
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
-
-
type = SEND_PUBLIC_COMMENT_REPLY
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_PUBLIC_COMMENT_REPLY -
textstring required min length 1max length 1,000
type = LIKE_COMMENT
-
idstring min length 1max length 36 -
typestring requiredOne of:LIKE_COMMENT
type = ARCHIVE_CONVERSATION
-
idstring min length 1max length 36 -
typestring requiredOne of:ARCHIVE_CONVERSATION
type = OPEN_CONVERSATION
-
idstring min length 1max length 36 -
typestring requiredOne of:OPEN_CONVERSATION
-
-
-
publishedAtstring nullable date-time -
publishedByUserIdstring nullable -
createdAtstring required nullable date-time
-
Errors: 400 Validation failed · 401 Missing or invalid API key · 403 Plan limit or permission · 404 Not found · 429 Rate limited · 500 Server error · 502 Network error
/api/v1/automations/{id}/archive Archive an automation flow
automation.archiveFlow · requires x-api-key
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
id required | path | string |
Example
curl -X POST "https://api.siaran.my/api/v1/automations/ID/archive" \
-H "x-api-key: $SIAR_API_KEY" Response 200
12 top-level fields
-
idstring required -
teamIdstring required -
organizationIdstring nullable -
namestring required -
statusstring requiredOne of:DRAFTACTIVEPAUSEDARCHIVED -
platformScopestring requiredOne of:INSTAGRAMFACEBOOKBOTHTIKTOK -
createdByUserIdstring nullable -
createdAtstring required nullable date-time -
updatedAtstring required nullable date-time -
deletedAtstring nullable date-time -
draftVersionobject8 fields
-
idstring required -
flowIdstring required -
versionnumber required -
statusstring requiredOne of:DRAFTPUBLISHEDRETIRED -
definitionobject required2 fields
-
triggerobject required11 fields
-
keywordsstring[] max 100 itemseach: min length 1each: max length 200 -
matchModestring default "ANY"One of:ANYALL -
caseSensitiveboolean default false -
senderExternalIdsstring[] max 100 itemseach: min length 1each: max length 64 -
payloadsstring[] max 100 itemseach: min length 1each: max length 1,000 -
actionDelaySecondsinteger default 0 ≥ 0≤ 86400 -
idstring min length 1max length 36 -
typestring requiredOne of:COMMENT_CREATEDDM_RECEIVEDQUICK_REPLY_CLICKEDBUTTON_CLICKEDMANUAL_TEST -
platformstring requiredOne of:INSTAGRAMFACEBOOKTIKTOK -
socialAccountIdstring required -
postIdstring nullable
-
-
stepsobject | object | object | object | object | object | object[] requiredOne of 7 shapes
type = CONDITION
-
idstring min length 1max length 36 -
typestring requiredOne of:CONDITION -
conditionsobject[] required min 1 items5 fields
-
idstring min length 1max length 36 -
fieldstring requiredOne of:TEXTPAYLOADPLATFORMSENDER_ID -
operatorstring requiredOne of:CONTAINSEQUALSMATCHES_ANY -
valuestring required min length 1max length 1,000 -
caseSensitiveboolean default false
-
type = SEND_MESSAGE
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_MESSAGE -
messageobject required5 fields
-
textstring max length 1,000 -
attachmentsobject[] max 10 items2 fields
-
uploadIdstring required min length 1 -
typestring requiredOne of:IMAGEVIDEOAUDIOFILE
-
-
quickRepliesobject[] max 13 items3 fields
-
idstring required min length 1max length 36 -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
-
-
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
carouselobject1 field
-
cardsobject[] required min 1 itemsmax 10 items5 fields
-
idstring required min length 1max length 36 -
titlestring required min length 1max length 80 -
subtitlestring nullable max length 80 -
imageUploadIdstring nullable min length 1 -
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
-
-
type = SEND_PRIVATE_REPLY
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_PRIVATE_REPLY -
messageobject required5 fields
-
textstring max length 1,000 -
attachmentsobject[] max 10 items2 fields
-
uploadIdstring required min length 1 -
typestring requiredOne of:IMAGEVIDEOAUDIOFILE
-
-
quickRepliesobject[] max 13 items3 fields
-
idstring required min length 1max length 36 -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
-
-
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
carouselobject1 field
-
cardsobject[] required min 1 itemsmax 10 items5 fields
-
idstring required min length 1max length 36 -
titlestring required min length 1max length 80 -
subtitlestring nullable max length 80 -
imageUploadIdstring nullable min length 1 -
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
-
-
type = SEND_PUBLIC_COMMENT_REPLY
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_PUBLIC_COMMENT_REPLY -
textstring required min length 1max length 1,000
type = LIKE_COMMENT
-
idstring min length 1max length 36 -
typestring requiredOne of:LIKE_COMMENT
type = ARCHIVE_CONVERSATION
-
idstring min length 1max length 36 -
typestring requiredOne of:ARCHIVE_CONVERSATION
type = OPEN_CONVERSATION
-
idstring min length 1max length 36 -
typestring requiredOne of:OPEN_CONVERSATION
-
-
-
publishedAtstring nullable date-time -
publishedByUserIdstring nullable -
createdAtstring required nullable date-time
-
-
publishedVersionobject8 fields
-
idstring required -
flowIdstring required -
versionnumber required -
statusstring requiredOne of:DRAFTPUBLISHEDRETIRED -
definitionobject required2 fields
-
triggerobject required11 fields
-
keywordsstring[] max 100 itemseach: min length 1each: max length 200 -
matchModestring default "ANY"One of:ANYALL -
caseSensitiveboolean default false -
senderExternalIdsstring[] max 100 itemseach: min length 1each: max length 64 -
payloadsstring[] max 100 itemseach: min length 1each: max length 1,000 -
actionDelaySecondsinteger default 0 ≥ 0≤ 86400 -
idstring min length 1max length 36 -
typestring requiredOne of:COMMENT_CREATEDDM_RECEIVEDQUICK_REPLY_CLICKEDBUTTON_CLICKEDMANUAL_TEST -
platformstring requiredOne of:INSTAGRAMFACEBOOKTIKTOK -
socialAccountIdstring required -
postIdstring nullable
-
-
stepsobject | object | object | object | object | object | object[] requiredOne of 7 shapes
type = CONDITION
-
idstring min length 1max length 36 -
typestring requiredOne of:CONDITION -
conditionsobject[] required min 1 items5 fields
-
idstring min length 1max length 36 -
fieldstring requiredOne of:TEXTPAYLOADPLATFORMSENDER_ID -
operatorstring requiredOne of:CONTAINSEQUALSMATCHES_ANY -
valuestring required min length 1max length 1,000 -
caseSensitiveboolean default false
-
type = SEND_MESSAGE
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_MESSAGE -
messageobject required5 fields
-
textstring max length 1,000 -
attachmentsobject[] max 10 items2 fields
-
uploadIdstring required min length 1 -
typestring requiredOne of:IMAGEVIDEOAUDIOFILE
-
-
quickRepliesobject[] max 13 items3 fields
-
idstring required min length 1max length 36 -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
-
-
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
carouselobject1 field
-
cardsobject[] required min 1 itemsmax 10 items5 fields
-
idstring required min length 1max length 36 -
titlestring required min length 1max length 80 -
subtitlestring nullable max length 80 -
imageUploadIdstring nullable min length 1 -
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
-
-
type = SEND_PRIVATE_REPLY
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_PRIVATE_REPLY -
messageobject required5 fields
-
textstring max length 1,000 -
attachmentsobject[] max 10 items2 fields
-
uploadIdstring required min length 1 -
typestring requiredOne of:IMAGEVIDEOAUDIOFILE
-
-
quickRepliesobject[] max 13 items3 fields
-
idstring required min length 1max length 36 -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
-
-
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
carouselobject1 field
-
cardsobject[] required min 1 itemsmax 10 items5 fields
-
idstring required min length 1max length 36 -
titlestring required min length 1max length 80 -
subtitlestring nullable max length 80 -
imageUploadIdstring nullable min length 1 -
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
-
-
type = SEND_PUBLIC_COMMENT_REPLY
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_PUBLIC_COMMENT_REPLY -
textstring required min length 1max length 1,000
type = LIKE_COMMENT
-
idstring min length 1max length 36 -
typestring requiredOne of:LIKE_COMMENT
type = ARCHIVE_CONVERSATION
-
idstring min length 1max length 36 -
typestring requiredOne of:ARCHIVE_CONVERSATION
type = OPEN_CONVERSATION
-
idstring min length 1max length 36 -
typestring requiredOne of:OPEN_CONVERSATION
-
-
-
publishedAtstring nullable date-time -
publishedByUserIdstring nullable -
createdAtstring required nullable date-time
-
Errors: 400 Validation failed · 401 Missing or invalid API key · 403 Plan limit or permission · 404 Not found · 429 Rate limited · 500 Server error · 502 Network error
/api/v1/automations/{id}/executions Get automation flow executions
automation.getFlowExecutions · requires x-api-key
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
id required | path | string | |
teamId required | query | string | |
flowVersionId | query | string | |
triggerId | query | string | |
socialAccountId | query | string | |
platform | query | string | One of INSTAGRAM, FACEBOOK, TIKTOK |
status | query | string | One of QUEUED, RUNNING, COMPLETED, FAILED, CANCELED, SKIPPED |
conversationId | query | string | |
fetchedCommentId | query | string | |
offset | query | integer | default 0 · nullable |
limit | query | integer | default 10 · nullable |
cursor | query | string | nullable |
Example
curl -X GET "https://api.siaran.my/api/v1/automations/ID/executions?teamId=TEAM_ID" \
-H "x-api-key: $SIAR_API_KEY" Response 200
3 top-level fields
-
itemsobject[] required29 fields
-
idstring required -
teamIdstring required -
organizationIdstring nullable -
flowIdstring required -
flowVersionIdstring required -
triggerIdstring nullable -
platformstring requiredOne of:INSTAGRAMFACEBOOKTIKTOK -
socialAccountIdstring required -
conversationIdstring nullable -
conversationMessageIdstring nullable -
fetchedCommentIdstring nullable -
senderExternalIdstring nullable -
currentStepIdstring nullable -
statusstring requiredOne of:QUEUEDRUNNINGCOMPLETEDFAILEDCANCELEDSKIPPED -
idempotencyKeystring required -
inputobject default {}11 fields
-
typestring nullableOne of:COMMENT_CREATEDDM_RECEIVEDQUICK_REPLY_CLICKEDBUTTON_CLICKEDMANUAL_TEST -
platformstring nullableOne of:INSTAGRAMFACEBOOKTIKTOK -
socialAccountIdstring nullable -
postIdstring nullable -
conversationIdstring nullable -
conversationMessageIdstring nullable -
fetchedCommentIdstring nullable -
senderExternalIdstring nullable -
externalMessageIdstring nullable -
textstring nullable -
payloadstring nullable
-
-
outputobject default {} -
errorobject nullable3 fields
-
codestring nullable -
messagestring nullable -
retryableboolean nullable
-
-
startedAtstring nullable date-time -
completedAtstring nullable date-time -
createdAtstring required nullable date-time -
updatedAtstring required nullable date-time -
flowobject12 fields
-
idstring required -
teamIdstring required -
organizationIdstring nullable -
namestring required -
statusstring requiredOne of:DRAFTACTIVEPAUSEDARCHIVED -
platformScopestring requiredOne of:INSTAGRAMFACEBOOKBOTHTIKTOK -
createdByUserIdstring nullable -
createdAtstring required nullable date-time -
updatedAtstring required nullable date-time -
deletedAtstring nullable date-time -
draftVersionobject8 fields
-
idstring required -
flowIdstring required -
versionnumber required -
statusstring requiredOne of:DRAFTPUBLISHEDRETIRED -
definitionobject required2 fields
-
triggerobject required11 fields
-
keywordsstring[] max 100 itemseach: min length 1each: max length 200 -
matchModestring default "ANY"One of:ANYALL -
caseSensitiveboolean default false -
senderExternalIdsstring[] max 100 itemseach: min length 1each: max length 64 -
payloadsstring[] max 100 itemseach: min length 1each: max length 1,000 -
actionDelaySecondsinteger default 0 ≥ 0≤ 86400 -
idstring min length 1max length 36 -
typestring requiredOne of:COMMENT_CREATEDDM_RECEIVEDQUICK_REPLY_CLICKEDBUTTON_CLICKEDMANUAL_TEST -
platformstring requiredOne of:INSTAGRAMFACEBOOKTIKTOK -
socialAccountIdstring required -
postIdstring nullable
-
-
stepsobject | object | object | object | object | object | object[] requiredOne of 7 shapes
type = CONDITION
-
idstring min length 1max length 36 -
typestring requiredOne of:CONDITION -
conditionsobject[] required min 1 items5 fields
-
idstring min length 1max length 36 -
fieldstring requiredOne of:TEXTPAYLOADPLATFORMSENDER_ID -
operatorstring requiredOne of:CONTAINSEQUALSMATCHES_ANY -
valuestring required min length 1max length 1,000 -
caseSensitiveboolean default false
-
type = SEND_MESSAGE
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_MESSAGE -
messageobject required5 fields
-
textstring max length 1,000 -
attachmentsobject[] max 10 items2 fields
-
uploadIdstring required min length 1 -
typestring requiredOne of:IMAGEVIDEOAUDIOFILE
-
-
quickRepliesobject[] max 13 items3 fields
-
idstring required min length 1max length 36 -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
-
-
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
carouselobject1 field
-
cardsobject[] required min 1 itemsmax 10 items5 fields
-
idstring required min length 1max length 36 -
titlestring required min length 1max length 80 -
subtitlestring nullable max length 80 -
imageUploadIdstring nullable min length 1 -
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
type = URL
type = PHONE
-
-
-
type = SEND_PRIVATE_REPLY
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_PRIVATE_REPLY -
messageobject required5 fields
-
textstring max length 1,000 -
attachmentsobject[] max 10 items2 fields
-
uploadIdstring required min length 1 -
typestring requiredOne of:IMAGEVIDEOAUDIOFILE
-
-
quickRepliesobject[] max 13 items3 fields
-
idstring required min length 1max length 36 -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
-
-
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
carouselobject1 field
-
cardsobject[] required min 1 itemsmax 10 items5 fields
-
idstring required min length 1max length 36 -
titlestring required min length 1max length 80 -
subtitlestring nullable max length 80 -
imageUploadIdstring nullable min length 1 -
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
type = URL
type = PHONE
-
-
-
type = SEND_PUBLIC_COMMENT_REPLY
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_PUBLIC_COMMENT_REPLY -
textstring required min length 1max length 1,000
type = LIKE_COMMENT
-
idstring min length 1max length 36 -
typestring requiredOne of:LIKE_COMMENT
type = ARCHIVE_CONVERSATION
-
idstring min length 1max length 36 -
typestring requiredOne of:ARCHIVE_CONVERSATION
type = OPEN_CONVERSATION
-
idstring min length 1max length 36 -
typestring requiredOne of:OPEN_CONVERSATION
-
-
-
publishedAtstring nullable date-time -
publishedByUserIdstring nullable -
createdAtstring required nullable date-time
-
-
publishedVersionobject8 fields
-
idstring required -
flowIdstring required -
versionnumber required -
statusstring requiredOne of:DRAFTPUBLISHEDRETIRED -
definitionobject required2 fields
-
triggerobject required11 fields
-
keywordsstring[] max 100 itemseach: min length 1each: max length 200 -
matchModestring default "ANY"One of:ANYALL -
caseSensitiveboolean default false -
senderExternalIdsstring[] max 100 itemseach: min length 1each: max length 64 -
payloadsstring[] max 100 itemseach: min length 1each: max length 1,000 -
actionDelaySecondsinteger default 0 ≥ 0≤ 86400 -
idstring min length 1max length 36 -
typestring requiredOne of:COMMENT_CREATEDDM_RECEIVEDQUICK_REPLY_CLICKEDBUTTON_CLICKEDMANUAL_TEST -
platformstring requiredOne of:INSTAGRAMFACEBOOKTIKTOK -
socialAccountIdstring required -
postIdstring nullable
-
-
stepsobject | object | object | object | object | object | object[] requiredOne of 7 shapes
type = CONDITION
-
idstring min length 1max length 36 -
typestring requiredOne of:CONDITION -
conditionsobject[] required min 1 items5 fields
-
idstring min length 1max length 36 -
fieldstring requiredOne of:TEXTPAYLOADPLATFORMSENDER_ID -
operatorstring requiredOne of:CONTAINSEQUALSMATCHES_ANY -
valuestring required min length 1max length 1,000 -
caseSensitiveboolean default false
-
type = SEND_MESSAGE
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_MESSAGE -
messageobject required5 fields
-
textstring max length 1,000 -
attachmentsobject[] max 10 items2 fields
-
uploadIdstring required min length 1 -
typestring requiredOne of:IMAGEVIDEOAUDIOFILE
-
-
quickRepliesobject[] max 13 items3 fields
-
idstring required min length 1max length 36 -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
-
-
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
carouselobject1 field
-
cardsobject[] required min 1 itemsmax 10 items5 fields
-
idstring required min length 1max length 36 -
titlestring required min length 1max length 80 -
subtitlestring nullable max length 80 -
imageUploadIdstring nullable min length 1 -
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
type = URL
type = PHONE
-
-
-
type = SEND_PRIVATE_REPLY
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_PRIVATE_REPLY -
messageobject required5 fields
-
textstring max length 1,000 -
attachmentsobject[] max 10 items2 fields
-
uploadIdstring required min length 1 -
typestring requiredOne of:IMAGEVIDEOAUDIOFILE
-
-
quickRepliesobject[] max 13 items3 fields
-
idstring required min length 1max length 36 -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
-
-
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
carouselobject1 field
-
cardsobject[] required min 1 itemsmax 10 items5 fields
-
idstring required min length 1max length 36 -
titlestring required min length 1max length 80 -
subtitlestring nullable max length 80 -
imageUploadIdstring nullable min length 1 -
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
type = URL
type = PHONE
-
-
-
type = SEND_PUBLIC_COMMENT_REPLY
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_PUBLIC_COMMENT_REPLY -
textstring required min length 1max length 1,000
type = LIKE_COMMENT
-
idstring min length 1max length 36 -
typestring requiredOne of:LIKE_COMMENT
type = ARCHIVE_CONVERSATION
-
idstring min length 1max length 36 -
typestring requiredOne of:ARCHIVE_CONVERSATION
type = OPEN_CONVERSATION
-
idstring min length 1max length 36 -
typestring requiredOne of:OPEN_CONVERSATION
-
-
-
publishedAtstring nullable date-time -
publishedByUserIdstring nullable -
createdAtstring required nullable date-time
-
-
-
flowVersionobject8 fields
-
idstring required -
flowIdstring required -
versionnumber required -
statusstring requiredOne of:DRAFTPUBLISHEDRETIRED -
definitionobject required2 fields
-
triggerobject required11 fields
-
keywordsstring[] max 100 itemseach: min length 1each: max length 200 -
matchModestring default "ANY"One of:ANYALL -
caseSensitiveboolean default false -
senderExternalIdsstring[] max 100 itemseach: min length 1each: max length 64 -
payloadsstring[] max 100 itemseach: min length 1each: max length 1,000 -
actionDelaySecondsinteger default 0 ≥ 0≤ 86400 -
idstring min length 1max length 36 -
typestring requiredOne of:COMMENT_CREATEDDM_RECEIVEDQUICK_REPLY_CLICKEDBUTTON_CLICKEDMANUAL_TEST -
platformstring requiredOne of:INSTAGRAMFACEBOOKTIKTOK -
socialAccountIdstring required -
postIdstring nullable
-
-
stepsobject | object | object | object | object | object | object[] requiredOne of 7 shapes
type = CONDITION
-
idstring min length 1max length 36 -
typestring requiredOne of:CONDITION -
conditionsobject[] required min 1 items5 fields
-
idstring min length 1max length 36 -
fieldstring requiredOne of:TEXTPAYLOADPLATFORMSENDER_ID -
operatorstring requiredOne of:CONTAINSEQUALSMATCHES_ANY -
valuestring required min length 1max length 1,000 -
caseSensitiveboolean default false
-
type = SEND_MESSAGE
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_MESSAGE -
messageobject required5 fields
-
textstring max length 1,000 -
attachmentsobject[] max 10 items2 fields
-
uploadIdstring required min length 1 -
typestring requiredOne of:IMAGEVIDEOAUDIOFILE
-
-
quickRepliesobject[] max 13 items3 fields
-
idstring required min length 1max length 36 -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
-
-
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
carouselobject1 field
-
cardsobject[] required min 1 itemsmax 10 items5 fields
-
idstring required min length 1max length 36 -
titlestring required min length 1max length 80 -
subtitlestring nullable max length 80 -
imageUploadIdstring nullable min length 1 -
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
-
-
type = SEND_PRIVATE_REPLY
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_PRIVATE_REPLY -
messageobject required5 fields
-
textstring max length 1,000 -
attachmentsobject[] max 10 items2 fields
-
uploadIdstring required min length 1 -
typestring requiredOne of:IMAGEVIDEOAUDIOFILE
-
-
quickRepliesobject[] max 13 items3 fields
-
idstring required min length 1max length 36 -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
-
-
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
carouselobject1 field
-
cardsobject[] required min 1 itemsmax 10 items5 fields
-
idstring required min length 1max length 36 -
titlestring required min length 1max length 80 -
subtitlestring nullable max length 80 -
imageUploadIdstring nullable min length 1 -
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
-
-
type = SEND_PUBLIC_COMMENT_REPLY
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_PUBLIC_COMMENT_REPLY -
textstring required min length 1max length 1,000
type = LIKE_COMMENT
-
idstring min length 1max length 36 -
typestring requiredOne of:LIKE_COMMENT
type = ARCHIVE_CONVERSATION
-
idstring min length 1max length 36 -
typestring requiredOne of:ARCHIVE_CONVERSATION
type = OPEN_CONVERSATION
-
idstring min length 1max length 36 -
typestring requiredOne of:OPEN_CONVERSATION
-
-
-
publishedAtstring nullable date-time -
publishedByUserIdstring nullable -
createdAtstring required nullable date-time
-
-
stepsobject[]12 fields
-
idstring required -
executionIdstring required -
stepIdstring nullable -
statusstring requiredOne of:PENDINGRUNNINGCOMPLETEDFAILEDSKIPPED -
attemptCountnumber required -
inputobject default {}11 fields
-
typestring nullableOne of:COMMENT_CREATEDDM_RECEIVEDQUICK_REPLY_CLICKEDBUTTON_CLICKEDMANUAL_TEST -
platformstring nullableOne of:INSTAGRAMFACEBOOKTIKTOK -
socialAccountIdstring nullable -
postIdstring nullable -
conversationIdstring nullable -
conversationMessageIdstring nullable -
fetchedCommentIdstring nullable -
senderExternalIdstring nullable -
externalMessageIdstring nullable -
textstring nullable -
payloadstring nullable
-
-
outputobject default {} -
errorobject nullable3 fields
-
codestring nullable -
messagestring nullable -
retryableboolean nullable
-
-
startedAtstring nullable date-time -
completedAtstring nullable date-time -
createdAtstring required nullable date-time -
updatedAtstring required nullable date-time
-
-
conversationobject nullable20 fields
-
idstring required -
teamIdstring required -
socialAccountIdstring required -
platformstring requiredOne of:INSTAGRAMFACEBOOK -
externalConversationIdstring nullable -
externalParticipantIdstring required -
participantUsernamestring nullable -
participantDisplayNamestring nullable -
participantAvatarUrlstring nullable -
statusstring requiredOne of:OPENARCHIVED -
lastMessageAtstring nullable date-time -
lastActivityAtstring required nullable date-time -
lastMessagePreviewstring nullable -
lastReadAtstring nullable date-time -
unreadCountnumber required -
platformSeenAtstring nullable date-time -
createdAtstring required nullable date-time -
updatedAtstring required nullable date-time -
platformDataobject default {}3 fields
-
canReplyboolean nullable -
lastInboundAtstring nullable date-time -
providerStateSyncobject nullable5 fields
-
actionstring requiredOne of:ARCHIVEOPEN -
statusstring requiredOne of:SYNCEDSYNC_FAILEDUNSUPPORTED -
reasonstring nullable -
errorstring nullable -
syncedAtstring nullable date-time
-
-
-
socialAccountobject26 fields
-
idstring required -
typestring requiredOne of:TIKTOKYOUTUBEINSTAGRAMFACEBOOKTWITTERTHREADSLINKEDINPINTERESTREDDITMASTODONDISCORDSLACKBLUESKYGOOGLE_BUSINESSSNAPCHAT -
teamIdstring required -
usernamestring nullable -
displayNamestring nullable -
biostring nullable -
avatarUrlstring nullable -
externalIdstring nullable -
providerPageIdstring nullable -
userUsernamestring nullable -
userDisplayNamestring nullable -
userEmailstring nullable -
userIdstring nullable -
channelsobject[] nullable7 fields
-
idstring required -
namestring nullable -
usernamestring nullable -
addressstring nullable -
avatarUrlstring nullable -
webhookobject nullable4 fields
-
idstring nullable -
namestring nullable -
avatarstring nullable -
urlstring nullable
-
-
metadataobject nullable5 fields
-
allowImagesboolean nullable -
allowVideosboolean nullable -
allowGalleriesboolean nullable -
linkFlairEnabledboolean nullable -
facebookPageIdstring nullable
-
-
-
mastodonServerIdstring nullable -
instagramConnectionMethodstring nullableOne of:FACEBOOKINSTAGRAM -
twitterSubTypestring nullableOne of:nonebasicpremiumpremium_plus -
isTiktokBusinessAccountboolean nullable -
disconnectedCheckTryAtstring nullable date-time -
deleteOnstring nullable date-time -
messagingStatusstring default "DISABLED"One of:DISABLEDENABLEDDISABLE_PENDING -
messagingStatusUpdatedAtstring nullable date-time -
messagingLastErrorstring nullable -
createdAtstring required nullable date-time -
updatedAtstring required nullable date-time -
deletedAtstring nullable date-time
-
-
-
conversationMessageobject nullable20 fields
-
idstring required -
conversationIdstring required -
teamIdstring required -
socialAccountIdstring required -
platformstring requiredOne of:INSTAGRAMFACEBOOK -
directionstring requiredOne of:INBOUNDOUTBOUND -
statusstring requiredOne of:PENDINGSENTDELIVEREDSEENFAILED -
sourcestring requiredOne of:PRIVATE_REPLYDMWEBHOOKAPIECHO -
externalMessageIdstring nullable -
textstring nullable -
attachmentsobject[] default []8 fields
-
typestring requiredOne of:IMAGEVIDEOAUDIOFILEPOSTUNKNOWN -
urlstring nullable -
externalIdstring nullable -
mimeTypestring nullable -
namestring nullable -
captionTrackUrlstring nullable -
captionLanguagestring nullable -
captionLabelstring nullable
-
-
sentAtstring nullable date-time -
failedAtstring nullable date-time -
errorstring nullable -
seenAtstring nullable date-time -
replyToobject nullable3 fields
-
externalMessageIdstring nullable -
isSelfReplyboolean nullable -
messageIdstring nullable
-
-
privateReplyContextobject nullable10 fields
-
fetchedCommentIdstring required -
externalCommentIdstring nullable -
textstring nullable -
authorNamestring nullable -
authorAvatarUrlstring nullable -
publishedAtstring nullable date-time -
postIdstring nullable -
externalPostIdstring nullable -
postPermalinkstring nullable -
postThumbnailUrlstring nullable
-
-
createdAtstring required nullable date-time -
updatedAtstring required nullable date-time -
platformDataobject default {}12 fields
-
replyToobject nullable2 fields
-
externalMessageIdstring nullable -
isSelfReplyboolean nullable
-
-
reactionsobject[]4 fields
-
senderIdstring required -
reactionstring nullable -
emojistring nullable -
reactedAtstring nullable date-time
-
-
quickRepliesobject[]3 fields
-
idstring min length 1max length 36 -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
-
-
buttonsobject | object | object[]One of 3 shapes
type = POSTBACK
-
idstring min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
carouselobject nullable1 field
-
cardsobject[] required min 1 itemsmax 10 items5 fields
-
idstring min length 1max length 36 -
titlestring required min length 1max length 80 -
subtitlestring nullable max length 80 -
imageUrlstring nullable uri -
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
-
-
isEchoboolean nullable -
isEditedboolean nullable -
editedAtstring nullable date-time -
isPostbackboolean nullable -
postbackPayloadstring nullable -
isUnsentboolean nullable -
unsentAtstring nullable date-time
-
-
-
fetchedCommentobject nullable23 fields
-
idstring required -
teamIdstring required -
organizationIdstring nullable -
postIdstring nullable -
importedPostIdstring nullable -
socialAccountIdstring required -
importIdstring required -
platformstring requiredOne of:FACEBOOKINSTAGRAMLINKEDINYOUTUBETIKTOKREDDITTHREADSMASTODONBLUESKYTWITTER -
externalIdstring required -
externalParentIdstring nullable -
externalPostIdstring nullable -
authorNamestring nullable -
authorExternalIdstring nullable -
authorProfileUrlstring nullable -
authorAvatarUrlstring nullable -
textstring nullable -
likesCountnumber required -
repliesCountnumber required -
platformDataobject default {}23 fields
-
canDeleteboolean nullable -
canHideboolean nullable -
canLikeboolean nullable -
canModerateboolean nullable -
hiddenboolean nullable -
likedByMeboolean nullable -
likedByAutomationboolean nullable -
reactionsCountnumber nullable -
reactionTypestring nullableOne of:LIKELOVEWOWHAHASADANGRY -
ownerboolean nullable -
hideStatusstring nullable -
moderationStatusstring nullable -
approvalStatusstring nullable -
statusstring nullable -
attachmentTypestring nullable -
attachmentUrlstring nullable -
cidstring nullable -
originstring nullableOne of:platformbundle -
sourcestring nullable -
mediaProductTypestring nullable -
bundleCommentIdstring nullable -
displayStatestring nullableOne of:activethread_deletedplatform_missing -
disabledReasonstring nullable
-
-
publishedAtstring nullable date-time -
createdAtstring required nullable date-time -
updatedAtstring required nullable date-time -
deletedAtstring nullable date-time
-
-
socialAccountobject26 fields
-
idstring required -
typestring requiredOne of:TIKTOKYOUTUBEINSTAGRAMFACEBOOKTWITTERTHREADSLINKEDINPINTERESTREDDITMASTODONDISCORDSLACKBLUESKYGOOGLE_BUSINESSSNAPCHAT -
teamIdstring required -
usernamestring nullable -
displayNamestring nullable -
biostring nullable -
avatarUrlstring nullable -
externalIdstring nullable -
providerPageIdstring nullable -
userUsernamestring nullable -
userDisplayNamestring nullable -
userEmailstring nullable -
userIdstring nullable -
channelsobject[] nullable7 fields
-
idstring required -
namestring nullable -
usernamestring nullable -
addressstring nullable -
avatarUrlstring nullable -
webhookobject nullable4 fields
-
idstring nullable -
namestring nullable -
avatarstring nullable -
urlstring nullable
-
-
metadataobject nullable5 fields
-
allowImagesboolean nullable -
allowVideosboolean nullable -
allowGalleriesboolean nullable -
linkFlairEnabledboolean nullable -
facebookPageIdstring nullable
-
-
-
mastodonServerIdstring nullable -
instagramConnectionMethodstring nullableOne of:FACEBOOKINSTAGRAM -
twitterSubTypestring nullableOne of:nonebasicpremiumpremium_plus -
isTiktokBusinessAccountboolean nullable -
disconnectedCheckTryAtstring nullable date-time -
deleteOnstring nullable date-time -
messagingStatusstring default "DISABLED"One of:DISABLEDENABLEDDISABLE_PENDING -
messagingStatusUpdatedAtstring nullable date-time -
messagingLastErrorstring nullable -
createdAtstring required nullable date-time -
updatedAtstring required nullable date-time -
deletedAtstring nullable date-time
-
-
-
totalnumber -
nextCursorstring nullable
Errors: 400 Validation failed · 401 Missing or invalid API key · 403 Plan limit or permission · 404 Not found · 429 Rate limited · 500 Server error · 502 Network error
/api/v1/automation-executions/{id} Get an automation execution
automation.getExecution · requires x-api-key
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
id required | path | string |
Example
curl -X GET "https://api.siaran.my/api/v1/automation-executions/ID" \
-H "x-api-key: $SIAR_API_KEY" Response 200
29 top-level fields
-
idstring required -
teamIdstring required -
organizationIdstring nullable -
flowIdstring required -
flowVersionIdstring required -
triggerIdstring nullable -
platformstring requiredOne of:INSTAGRAMFACEBOOKTIKTOK -
socialAccountIdstring required -
conversationIdstring nullable -
conversationMessageIdstring nullable -
fetchedCommentIdstring nullable -
senderExternalIdstring nullable -
currentStepIdstring nullable -
statusstring requiredOne of:QUEUEDRUNNINGCOMPLETEDFAILEDCANCELEDSKIPPED -
idempotencyKeystring required -
inputobject default {}11 fields
-
typestring nullableOne of:COMMENT_CREATEDDM_RECEIVEDQUICK_REPLY_CLICKEDBUTTON_CLICKEDMANUAL_TEST -
platformstring nullableOne of:INSTAGRAMFACEBOOKTIKTOK -
socialAccountIdstring nullable -
postIdstring nullable -
conversationIdstring nullable -
conversationMessageIdstring nullable -
fetchedCommentIdstring nullable -
senderExternalIdstring nullable -
externalMessageIdstring nullable -
textstring nullable -
payloadstring nullable
-
-
outputobject default {} -
errorobject nullable3 fields
-
codestring nullable -
messagestring nullable -
retryableboolean nullable
-
-
startedAtstring nullable date-time -
completedAtstring nullable date-time -
createdAtstring required nullable date-time -
updatedAtstring required nullable date-time -
flowobject12 fields
-
idstring required -
teamIdstring required -
organizationIdstring nullable -
namestring required -
statusstring requiredOne of:DRAFTACTIVEPAUSEDARCHIVED -
platformScopestring requiredOne of:INSTAGRAMFACEBOOKBOTHTIKTOK -
createdByUserIdstring nullable -
createdAtstring required nullable date-time -
updatedAtstring required nullable date-time -
deletedAtstring nullable date-time -
draftVersionobject8 fields
-
idstring required -
flowIdstring required -
versionnumber required -
statusstring requiredOne of:DRAFTPUBLISHEDRETIRED -
definitionobject required2 fields
-
triggerobject required11 fields
-
keywordsstring[] max 100 itemseach: min length 1each: max length 200 -
matchModestring default "ANY"One of:ANYALL -
caseSensitiveboolean default false -
senderExternalIdsstring[] max 100 itemseach: min length 1each: max length 64 -
payloadsstring[] max 100 itemseach: min length 1each: max length 1,000 -
actionDelaySecondsinteger default 0 ≥ 0≤ 86400 -
idstring min length 1max length 36 -
typestring requiredOne of:COMMENT_CREATEDDM_RECEIVEDQUICK_REPLY_CLICKEDBUTTON_CLICKEDMANUAL_TEST -
platformstring requiredOne of:INSTAGRAMFACEBOOKTIKTOK -
socialAccountIdstring required -
postIdstring nullable
-
-
stepsobject | object | object | object | object | object | object[] requiredOne of 7 shapes
type = CONDITION
-
idstring min length 1max length 36 -
typestring requiredOne of:CONDITION -
conditionsobject[] required min 1 items5 fields
-
idstring min length 1max length 36 -
fieldstring requiredOne of:TEXTPAYLOADPLATFORMSENDER_ID -
operatorstring requiredOne of:CONTAINSEQUALSMATCHES_ANY -
valuestring required min length 1max length 1,000 -
caseSensitiveboolean default false
-
type = SEND_MESSAGE
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_MESSAGE -
messageobject required5 fields
-
textstring max length 1,000 -
attachmentsobject[] max 10 items2 fields
-
uploadIdstring required min length 1 -
typestring requiredOne of:IMAGEVIDEOAUDIOFILE
-
-
quickRepliesobject[] max 13 items3 fields
-
idstring required min length 1max length 36 -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
-
-
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
carouselobject1 field
-
cardsobject[] required min 1 itemsmax 10 items5 fields
-
idstring required min length 1max length 36 -
titlestring required min length 1max length 80 -
subtitlestring nullable max length 80 -
imageUploadIdstring nullable min length 1 -
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
-
-
type = SEND_PRIVATE_REPLY
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_PRIVATE_REPLY -
messageobject required5 fields
-
textstring max length 1,000 -
attachmentsobject[] max 10 items2 fields
-
uploadIdstring required min length 1 -
typestring requiredOne of:IMAGEVIDEOAUDIOFILE
-
-
quickRepliesobject[] max 13 items3 fields
-
idstring required min length 1max length 36 -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
-
-
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
carouselobject1 field
-
cardsobject[] required min 1 itemsmax 10 items5 fields
-
idstring required min length 1max length 36 -
titlestring required min length 1max length 80 -
subtitlestring nullable max length 80 -
imageUploadIdstring nullable min length 1 -
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
-
-
type = SEND_PUBLIC_COMMENT_REPLY
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_PUBLIC_COMMENT_REPLY -
textstring required min length 1max length 1,000
type = LIKE_COMMENT
-
idstring min length 1max length 36 -
typestring requiredOne of:LIKE_COMMENT
type = ARCHIVE_CONVERSATION
-
idstring min length 1max length 36 -
typestring requiredOne of:ARCHIVE_CONVERSATION
type = OPEN_CONVERSATION
-
idstring min length 1max length 36 -
typestring requiredOne of:OPEN_CONVERSATION
-
-
-
publishedAtstring nullable date-time -
publishedByUserIdstring nullable -
createdAtstring required nullable date-time
-
-
publishedVersionobject8 fields
-
idstring required -
flowIdstring required -
versionnumber required -
statusstring requiredOne of:DRAFTPUBLISHEDRETIRED -
definitionobject required2 fields
-
triggerobject required11 fields
-
keywordsstring[] max 100 itemseach: min length 1each: max length 200 -
matchModestring default "ANY"One of:ANYALL -
caseSensitiveboolean default false -
senderExternalIdsstring[] max 100 itemseach: min length 1each: max length 64 -
payloadsstring[] max 100 itemseach: min length 1each: max length 1,000 -
actionDelaySecondsinteger default 0 ≥ 0≤ 86400 -
idstring min length 1max length 36 -
typestring requiredOne of:COMMENT_CREATEDDM_RECEIVEDQUICK_REPLY_CLICKEDBUTTON_CLICKEDMANUAL_TEST -
platformstring requiredOne of:INSTAGRAMFACEBOOKTIKTOK -
socialAccountIdstring required -
postIdstring nullable
-
-
stepsobject | object | object | object | object | object | object[] requiredOne of 7 shapes
type = CONDITION
-
idstring min length 1max length 36 -
typestring requiredOne of:CONDITION -
conditionsobject[] required min 1 items5 fields
-
idstring min length 1max length 36 -
fieldstring requiredOne of:TEXTPAYLOADPLATFORMSENDER_ID -
operatorstring requiredOne of:CONTAINSEQUALSMATCHES_ANY -
valuestring required min length 1max length 1,000 -
caseSensitiveboolean default false
-
type = SEND_MESSAGE
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_MESSAGE -
messageobject required5 fields
-
textstring max length 1,000 -
attachmentsobject[] max 10 items2 fields
-
uploadIdstring required min length 1 -
typestring requiredOne of:IMAGEVIDEOAUDIOFILE
-
-
quickRepliesobject[] max 13 items3 fields
-
idstring required min length 1max length 36 -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
-
-
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
carouselobject1 field
-
cardsobject[] required min 1 itemsmax 10 items5 fields
-
idstring required min length 1max length 36 -
titlestring required min length 1max length 80 -
subtitlestring nullable max length 80 -
imageUploadIdstring nullable min length 1 -
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
-
-
type = SEND_PRIVATE_REPLY
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_PRIVATE_REPLY -
messageobject required5 fields
-
textstring max length 1,000 -
attachmentsobject[] max 10 items2 fields
-
uploadIdstring required min length 1 -
typestring requiredOne of:IMAGEVIDEOAUDIOFILE
-
-
quickRepliesobject[] max 13 items3 fields
-
idstring required min length 1max length 36 -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
-
-
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
carouselobject1 field
-
cardsobject[] required min 1 itemsmax 10 items5 fields
-
idstring required min length 1max length 36 -
titlestring required min length 1max length 80 -
subtitlestring nullable max length 80 -
imageUploadIdstring nullable min length 1 -
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
-
-
type = SEND_PUBLIC_COMMENT_REPLY
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_PUBLIC_COMMENT_REPLY -
textstring required min length 1max length 1,000
type = LIKE_COMMENT
-
idstring min length 1max length 36 -
typestring requiredOne of:LIKE_COMMENT
type = ARCHIVE_CONVERSATION
-
idstring min length 1max length 36 -
typestring requiredOne of:ARCHIVE_CONVERSATION
type = OPEN_CONVERSATION
-
idstring min length 1max length 36 -
typestring requiredOne of:OPEN_CONVERSATION
-
-
-
publishedAtstring nullable date-time -
publishedByUserIdstring nullable -
createdAtstring required nullable date-time
-
-
-
flowVersionobject8 fields
-
idstring required -
flowIdstring required -
versionnumber required -
statusstring requiredOne of:DRAFTPUBLISHEDRETIRED -
definitionobject required2 fields
-
triggerobject required11 fields
-
keywordsstring[] max 100 itemseach: min length 1each: max length 200 -
matchModestring default "ANY"One of:ANYALL -
caseSensitiveboolean default false -
senderExternalIdsstring[] max 100 itemseach: min length 1each: max length 64 -
payloadsstring[] max 100 itemseach: min length 1each: max length 1,000 -
actionDelaySecondsinteger default 0 ≥ 0≤ 86400 -
idstring min length 1max length 36 -
typestring requiredOne of:COMMENT_CREATEDDM_RECEIVEDQUICK_REPLY_CLICKEDBUTTON_CLICKEDMANUAL_TEST -
platformstring requiredOne of:INSTAGRAMFACEBOOKTIKTOK -
socialAccountIdstring required -
postIdstring nullable
-
-
stepsobject | object | object | object | object | object | object[] requiredOne of 7 shapes
type = CONDITION
-
idstring min length 1max length 36 -
typestring requiredOne of:CONDITION -
conditionsobject[] required min 1 items5 fields
-
idstring min length 1max length 36 -
fieldstring requiredOne of:TEXTPAYLOADPLATFORMSENDER_ID -
operatorstring requiredOne of:CONTAINSEQUALSMATCHES_ANY -
valuestring required min length 1max length 1,000 -
caseSensitiveboolean default false
-
type = SEND_MESSAGE
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_MESSAGE -
messageobject required5 fields
-
textstring max length 1,000 -
attachmentsobject[] max 10 items2 fields
-
uploadIdstring required min length 1 -
typestring requiredOne of:IMAGEVIDEOAUDIOFILE
-
-
quickRepliesobject[] max 13 items3 fields
-
idstring required min length 1max length 36 -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
-
-
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
carouselobject1 field
-
cardsobject[] required min 1 itemsmax 10 items5 fields
-
idstring required min length 1max length 36 -
titlestring required min length 1max length 80 -
subtitlestring nullable max length 80 -
imageUploadIdstring nullable min length 1 -
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
-
-
type = SEND_PRIVATE_REPLY
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_PRIVATE_REPLY -
messageobject required5 fields
-
textstring max length 1,000 -
attachmentsobject[] max 10 items2 fields
-
uploadIdstring required min length 1 -
typestring requiredOne of:IMAGEVIDEOAUDIOFILE
-
-
quickRepliesobject[] max 13 items3 fields
-
idstring required min length 1max length 36 -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
-
-
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
carouselobject1 field
-
cardsobject[] required min 1 itemsmax 10 items5 fields
-
idstring required min length 1max length 36 -
titlestring required min length 1max length 80 -
subtitlestring nullable max length 80 -
imageUploadIdstring nullable min length 1 -
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
-
-
type = SEND_PUBLIC_COMMENT_REPLY
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_PUBLIC_COMMENT_REPLY -
textstring required min length 1max length 1,000
type = LIKE_COMMENT
-
idstring min length 1max length 36 -
typestring requiredOne of:LIKE_COMMENT
type = ARCHIVE_CONVERSATION
-
idstring min length 1max length 36 -
typestring requiredOne of:ARCHIVE_CONVERSATION
type = OPEN_CONVERSATION
-
idstring min length 1max length 36 -
typestring requiredOne of:OPEN_CONVERSATION
-
-
-
publishedAtstring nullable date-time -
publishedByUserIdstring nullable -
createdAtstring required nullable date-time
-
-
stepsobject[]12 fields
-
idstring required -
executionIdstring required -
stepIdstring nullable -
statusstring requiredOne of:PENDINGRUNNINGCOMPLETEDFAILEDSKIPPED -
attemptCountnumber required -
inputobject default {}11 fields
-
typestring nullableOne of:COMMENT_CREATEDDM_RECEIVEDQUICK_REPLY_CLICKEDBUTTON_CLICKEDMANUAL_TEST -
platformstring nullableOne of:INSTAGRAMFACEBOOKTIKTOK -
socialAccountIdstring nullable -
postIdstring nullable -
conversationIdstring nullable -
conversationMessageIdstring nullable -
fetchedCommentIdstring nullable -
senderExternalIdstring nullable -
externalMessageIdstring nullable -
textstring nullable -
payloadstring nullable
-
-
outputobject default {} -
errorobject nullable3 fields
-
codestring nullable -
messagestring nullable -
retryableboolean nullable
-
-
startedAtstring nullable date-time -
completedAtstring nullable date-time -
createdAtstring required nullable date-time -
updatedAtstring required nullable date-time
-
-
conversationobject nullable20 fields
-
idstring required -
teamIdstring required -
socialAccountIdstring required -
platformstring requiredOne of:INSTAGRAMFACEBOOK -
externalConversationIdstring nullable -
externalParticipantIdstring required -
participantUsernamestring nullable -
participantDisplayNamestring nullable -
participantAvatarUrlstring nullable -
statusstring requiredOne of:OPENARCHIVED -
lastMessageAtstring nullable date-time -
lastActivityAtstring required nullable date-time -
lastMessagePreviewstring nullable -
lastReadAtstring nullable date-time -
unreadCountnumber required -
platformSeenAtstring nullable date-time -
createdAtstring required nullable date-time -
updatedAtstring required nullable date-time -
platformDataobject default {}3 fields
-
canReplyboolean nullable -
lastInboundAtstring nullable date-time -
providerStateSyncobject nullable5 fields
-
actionstring requiredOne of:ARCHIVEOPEN -
statusstring requiredOne of:SYNCEDSYNC_FAILEDUNSUPPORTED -
reasonstring nullable -
errorstring nullable -
syncedAtstring nullable date-time
-
-
-
socialAccountobject26 fields
-
idstring required -
typestring requiredOne of:TIKTOKYOUTUBEINSTAGRAMFACEBOOKTWITTERTHREADSLINKEDINPINTERESTREDDITMASTODONDISCORDSLACKBLUESKYGOOGLE_BUSINESSSNAPCHAT -
teamIdstring required -
usernamestring nullable -
displayNamestring nullable -
biostring nullable -
avatarUrlstring nullable -
externalIdstring nullable -
providerPageIdstring nullable -
userUsernamestring nullable -
userDisplayNamestring nullable -
userEmailstring nullable -
userIdstring nullable -
channelsobject[] nullable7 fields
-
idstring required -
namestring nullable -
usernamestring nullable -
addressstring nullable -
avatarUrlstring nullable -
webhookobject nullable4 fields
-
idstring nullable -
namestring nullable -
avatarstring nullable -
urlstring nullable
-
-
metadataobject nullable5 fields
-
allowImagesboolean nullable -
allowVideosboolean nullable -
allowGalleriesboolean nullable -
linkFlairEnabledboolean nullable -
facebookPageIdstring nullable
-
-
-
mastodonServerIdstring nullable -
instagramConnectionMethodstring nullableOne of:FACEBOOKINSTAGRAM -
twitterSubTypestring nullableOne of:nonebasicpremiumpremium_plus -
isTiktokBusinessAccountboolean nullable -
disconnectedCheckTryAtstring nullable date-time -
deleteOnstring nullable date-time -
messagingStatusstring default "DISABLED"One of:DISABLEDENABLEDDISABLE_PENDING -
messagingStatusUpdatedAtstring nullable date-time -
messagingLastErrorstring nullable -
createdAtstring required nullable date-time -
updatedAtstring required nullable date-time -
deletedAtstring nullable date-time
-
-
-
conversationMessageobject nullable20 fields
-
idstring required -
conversationIdstring required -
teamIdstring required -
socialAccountIdstring required -
platformstring requiredOne of:INSTAGRAMFACEBOOK -
directionstring requiredOne of:INBOUNDOUTBOUND -
statusstring requiredOne of:PENDINGSENTDELIVEREDSEENFAILED -
sourcestring requiredOne of:PRIVATE_REPLYDMWEBHOOKAPIECHO -
externalMessageIdstring nullable -
textstring nullable -
attachmentsobject[] default []8 fields
-
typestring requiredOne of:IMAGEVIDEOAUDIOFILEPOSTUNKNOWN -
urlstring nullable -
externalIdstring nullable -
mimeTypestring nullable -
namestring nullable -
captionTrackUrlstring nullable -
captionLanguagestring nullable -
captionLabelstring nullable
-
-
sentAtstring nullable date-time -
failedAtstring nullable date-time -
errorstring nullable -
seenAtstring nullable date-time -
replyToobject nullable3 fields
-
externalMessageIdstring nullable -
isSelfReplyboolean nullable -
messageIdstring nullable
-
-
privateReplyContextobject nullable10 fields
-
fetchedCommentIdstring required -
externalCommentIdstring nullable -
textstring nullable -
authorNamestring nullable -
authorAvatarUrlstring nullable -
publishedAtstring nullable date-time -
postIdstring nullable -
externalPostIdstring nullable -
postPermalinkstring nullable -
postThumbnailUrlstring nullable
-
-
createdAtstring required nullable date-time -
updatedAtstring required nullable date-time -
platformDataobject default {}12 fields
-
replyToobject nullable2 fields
-
externalMessageIdstring nullable -
isSelfReplyboolean nullable
-
-
reactionsobject[]4 fields
-
senderIdstring required -
reactionstring nullable -
emojistring nullable -
reactedAtstring nullable date-time
-
-
quickRepliesobject[]3 fields
-
idstring min length 1max length 36 -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
-
-
buttonsobject | object | object[]One of 3 shapes
type = POSTBACK
-
idstring min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
carouselobject nullable1 field
-
cardsobject[] required min 1 itemsmax 10 items5 fields
-
idstring min length 1max length 36 -
titlestring required min length 1max length 80 -
subtitlestring nullable max length 80 -
imageUrlstring nullable uri -
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
-
-
isEchoboolean nullable -
isEditedboolean nullable -
editedAtstring nullable date-time -
isPostbackboolean nullable -
postbackPayloadstring nullable -
isUnsentboolean nullable -
unsentAtstring nullable date-time
-
-
-
fetchedCommentobject nullable23 fields
-
idstring required -
teamIdstring required -
organizationIdstring nullable -
postIdstring nullable -
importedPostIdstring nullable -
socialAccountIdstring required -
importIdstring required -
platformstring requiredOne of:FACEBOOKINSTAGRAMLINKEDINYOUTUBETIKTOKREDDITTHREADSMASTODONBLUESKYTWITTER -
externalIdstring required -
externalParentIdstring nullable -
externalPostIdstring nullable -
authorNamestring nullable -
authorExternalIdstring nullable -
authorProfileUrlstring nullable -
authorAvatarUrlstring nullable -
textstring nullable -
likesCountnumber required -
repliesCountnumber required -
platformDataobject default {}23 fields
-
canDeleteboolean nullable -
canHideboolean nullable -
canLikeboolean nullable -
canModerateboolean nullable -
hiddenboolean nullable -
likedByMeboolean nullable -
likedByAutomationboolean nullable -
reactionsCountnumber nullable -
reactionTypestring nullableOne of:LIKELOVEWOWHAHASADANGRY -
ownerboolean nullable -
hideStatusstring nullable -
moderationStatusstring nullable -
approvalStatusstring nullable -
statusstring nullable -
attachmentTypestring nullable -
attachmentUrlstring nullable -
cidstring nullable -
originstring nullableOne of:platformbundle -
sourcestring nullable -
mediaProductTypestring nullable -
bundleCommentIdstring nullable -
displayStatestring nullableOne of:activethread_deletedplatform_missing -
disabledReasonstring nullable
-
-
publishedAtstring nullable date-time -
createdAtstring required nullable date-time -
updatedAtstring required nullable date-time -
deletedAtstring nullable date-time
-
-
socialAccountobject26 fields
-
idstring required -
typestring requiredOne of:TIKTOKYOUTUBEINSTAGRAMFACEBOOKTWITTERTHREADSLINKEDINPINTERESTREDDITMASTODONDISCORDSLACKBLUESKYGOOGLE_BUSINESSSNAPCHAT -
teamIdstring required -
usernamestring nullable -
displayNamestring nullable -
biostring nullable -
avatarUrlstring nullable -
externalIdstring nullable -
providerPageIdstring nullable -
userUsernamestring nullable -
userDisplayNamestring nullable -
userEmailstring nullable -
userIdstring nullable -
channelsobject[] nullable7 fields
-
idstring required -
namestring nullable -
usernamestring nullable -
addressstring nullable -
avatarUrlstring nullable -
webhookobject nullable4 fields
-
idstring nullable -
namestring nullable -
avatarstring nullable -
urlstring nullable
-
-
metadataobject nullable5 fields
-
allowImagesboolean nullable -
allowVideosboolean nullable -
allowGalleriesboolean nullable -
linkFlairEnabledboolean nullable -
facebookPageIdstring nullable
-
-
-
mastodonServerIdstring nullable -
instagramConnectionMethodstring nullableOne of:FACEBOOKINSTAGRAM -
twitterSubTypestring nullableOne of:nonebasicpremiumpremium_plus -
isTiktokBusinessAccountboolean nullable -
disconnectedCheckTryAtstring nullable date-time -
deleteOnstring nullable date-time -
messagingStatusstring default "DISABLED"One of:DISABLEDENABLEDDISABLE_PENDING -
messagingStatusUpdatedAtstring nullable date-time -
messagingLastErrorstring nullable -
createdAtstring required nullable date-time -
updatedAtstring required nullable date-time -
deletedAtstring nullable date-time
-
Errors: 400 Validation failed · 401 Missing or invalid API key · 403 Plan limit or permission · 404 Not found · 429 Rate limited · 500 Server error · 502 Network error
/api/v1/automations/{id}/test Run an automation flow test
automation.testFlow · requires x-api-key
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
id required | path | string |
Request body application/json
-
inputobject default {}11 fields
-
typestring nullableOne of:COMMENT_CREATEDDM_RECEIVEDQUICK_REPLY_CLICKEDBUTTON_CLICKEDMANUAL_TEST -
platformstring nullableOne of:INSTAGRAMFACEBOOKTIKTOK -
socialAccountIdstring nullable -
postIdstring nullable -
conversationIdstring nullable -
conversationMessageIdstring nullable -
fetchedCommentIdstring nullable -
senderExternalIdstring nullable -
externalMessageIdstring nullable -
textstring nullable -
payloadstring nullable
-
Example
curl -X POST "https://api.siaran.my/api/v1/automations/ID/test" \
-H "x-api-key: $SIAR_API_KEY" \
-H "content-type: application/json" \
-d '{
"input": {}
}' Response 200
29 top-level fields
-
idstring required -
teamIdstring required -
organizationIdstring nullable -
flowIdstring required -
flowVersionIdstring required -
triggerIdstring nullable -
platformstring requiredOne of:INSTAGRAMFACEBOOKTIKTOK -
socialAccountIdstring required -
conversationIdstring nullable -
conversationMessageIdstring nullable -
fetchedCommentIdstring nullable -
senderExternalIdstring nullable -
currentStepIdstring nullable -
statusstring requiredOne of:QUEUEDRUNNINGCOMPLETEDFAILEDCANCELEDSKIPPED -
idempotencyKeystring required -
inputobject default {}11 fields
-
typestring nullableOne of:COMMENT_CREATEDDM_RECEIVEDQUICK_REPLY_CLICKEDBUTTON_CLICKEDMANUAL_TEST -
platformstring nullableOne of:INSTAGRAMFACEBOOKTIKTOK -
socialAccountIdstring nullable -
postIdstring nullable -
conversationIdstring nullable -
conversationMessageIdstring nullable -
fetchedCommentIdstring nullable -
senderExternalIdstring nullable -
externalMessageIdstring nullable -
textstring nullable -
payloadstring nullable
-
-
outputobject default {} -
errorobject nullable3 fields
-
codestring nullable -
messagestring nullable -
retryableboolean nullable
-
-
startedAtstring nullable date-time -
completedAtstring nullable date-time -
createdAtstring required nullable date-time -
updatedAtstring required nullable date-time -
flowobject12 fields
-
idstring required -
teamIdstring required -
organizationIdstring nullable -
namestring required -
statusstring requiredOne of:DRAFTACTIVEPAUSEDARCHIVED -
platformScopestring requiredOne of:INSTAGRAMFACEBOOKBOTHTIKTOK -
createdByUserIdstring nullable -
createdAtstring required nullable date-time -
updatedAtstring required nullable date-time -
deletedAtstring nullable date-time -
draftVersionobject8 fields
-
idstring required -
flowIdstring required -
versionnumber required -
statusstring requiredOne of:DRAFTPUBLISHEDRETIRED -
definitionobject required2 fields
-
triggerobject required11 fields
-
keywordsstring[] max 100 itemseach: min length 1each: max length 200 -
matchModestring default "ANY"One of:ANYALL -
caseSensitiveboolean default false -
senderExternalIdsstring[] max 100 itemseach: min length 1each: max length 64 -
payloadsstring[] max 100 itemseach: min length 1each: max length 1,000 -
actionDelaySecondsinteger default 0 ≥ 0≤ 86400 -
idstring min length 1max length 36 -
typestring requiredOne of:COMMENT_CREATEDDM_RECEIVEDQUICK_REPLY_CLICKEDBUTTON_CLICKEDMANUAL_TEST -
platformstring requiredOne of:INSTAGRAMFACEBOOKTIKTOK -
socialAccountIdstring required -
postIdstring nullable
-
-
stepsobject | object | object | object | object | object | object[] requiredOne of 7 shapes
type = CONDITION
-
idstring min length 1max length 36 -
typestring requiredOne of:CONDITION -
conditionsobject[] required min 1 items5 fields
-
idstring min length 1max length 36 -
fieldstring requiredOne of:TEXTPAYLOADPLATFORMSENDER_ID -
operatorstring requiredOne of:CONTAINSEQUALSMATCHES_ANY -
valuestring required min length 1max length 1,000 -
caseSensitiveboolean default false
-
type = SEND_MESSAGE
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_MESSAGE -
messageobject required5 fields
-
textstring max length 1,000 -
attachmentsobject[] max 10 items2 fields
-
uploadIdstring required min length 1 -
typestring requiredOne of:IMAGEVIDEOAUDIOFILE
-
-
quickRepliesobject[] max 13 items3 fields
-
idstring required min length 1max length 36 -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
-
-
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
carouselobject1 field
-
cardsobject[] required min 1 itemsmax 10 items5 fields
-
idstring required min length 1max length 36 -
titlestring required min length 1max length 80 -
subtitlestring nullable max length 80 -
imageUploadIdstring nullable min length 1 -
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
-
-
type = SEND_PRIVATE_REPLY
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_PRIVATE_REPLY -
messageobject required5 fields
-
textstring max length 1,000 -
attachmentsobject[] max 10 items2 fields
-
uploadIdstring required min length 1 -
typestring requiredOne of:IMAGEVIDEOAUDIOFILE
-
-
quickRepliesobject[] max 13 items3 fields
-
idstring required min length 1max length 36 -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
-
-
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
carouselobject1 field
-
cardsobject[] required min 1 itemsmax 10 items5 fields
-
idstring required min length 1max length 36 -
titlestring required min length 1max length 80 -
subtitlestring nullable max length 80 -
imageUploadIdstring nullable min length 1 -
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
-
-
type = SEND_PUBLIC_COMMENT_REPLY
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_PUBLIC_COMMENT_REPLY -
textstring required min length 1max length 1,000
type = LIKE_COMMENT
-
idstring min length 1max length 36 -
typestring requiredOne of:LIKE_COMMENT
type = ARCHIVE_CONVERSATION
-
idstring min length 1max length 36 -
typestring requiredOne of:ARCHIVE_CONVERSATION
type = OPEN_CONVERSATION
-
idstring min length 1max length 36 -
typestring requiredOne of:OPEN_CONVERSATION
-
-
-
publishedAtstring nullable date-time -
publishedByUserIdstring nullable -
createdAtstring required nullable date-time
-
-
publishedVersionobject8 fields
-
idstring required -
flowIdstring required -
versionnumber required -
statusstring requiredOne of:DRAFTPUBLISHEDRETIRED -
definitionobject required2 fields
-
triggerobject required11 fields
-
keywordsstring[] max 100 itemseach: min length 1each: max length 200 -
matchModestring default "ANY"One of:ANYALL -
caseSensitiveboolean default false -
senderExternalIdsstring[] max 100 itemseach: min length 1each: max length 64 -
payloadsstring[] max 100 itemseach: min length 1each: max length 1,000 -
actionDelaySecondsinteger default 0 ≥ 0≤ 86400 -
idstring min length 1max length 36 -
typestring requiredOne of:COMMENT_CREATEDDM_RECEIVEDQUICK_REPLY_CLICKEDBUTTON_CLICKEDMANUAL_TEST -
platformstring requiredOne of:INSTAGRAMFACEBOOKTIKTOK -
socialAccountIdstring required -
postIdstring nullable
-
-
stepsobject | object | object | object | object | object | object[] requiredOne of 7 shapes
type = CONDITION
-
idstring min length 1max length 36 -
typestring requiredOne of:CONDITION -
conditionsobject[] required min 1 items5 fields
-
idstring min length 1max length 36 -
fieldstring requiredOne of:TEXTPAYLOADPLATFORMSENDER_ID -
operatorstring requiredOne of:CONTAINSEQUALSMATCHES_ANY -
valuestring required min length 1max length 1,000 -
caseSensitiveboolean default false
-
type = SEND_MESSAGE
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_MESSAGE -
messageobject required5 fields
-
textstring max length 1,000 -
attachmentsobject[] max 10 items2 fields
-
uploadIdstring required min length 1 -
typestring requiredOne of:IMAGEVIDEOAUDIOFILE
-
-
quickRepliesobject[] max 13 items3 fields
-
idstring required min length 1max length 36 -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
-
-
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
carouselobject1 field
-
cardsobject[] required min 1 itemsmax 10 items5 fields
-
idstring required min length 1max length 36 -
titlestring required min length 1max length 80 -
subtitlestring nullable max length 80 -
imageUploadIdstring nullable min length 1 -
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
-
-
type = SEND_PRIVATE_REPLY
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_PRIVATE_REPLY -
messageobject required5 fields
-
textstring max length 1,000 -
attachmentsobject[] max 10 items2 fields
-
uploadIdstring required min length 1 -
typestring requiredOne of:IMAGEVIDEOAUDIOFILE
-
-
quickRepliesobject[] max 13 items3 fields
-
idstring required min length 1max length 36 -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
-
-
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
carouselobject1 field
-
cardsobject[] required min 1 itemsmax 10 items5 fields
-
idstring required min length 1max length 36 -
titlestring required min length 1max length 80 -
subtitlestring nullable max length 80 -
imageUploadIdstring nullable min length 1 -
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
-
-
type = SEND_PUBLIC_COMMENT_REPLY
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_PUBLIC_COMMENT_REPLY -
textstring required min length 1max length 1,000
type = LIKE_COMMENT
-
idstring min length 1max length 36 -
typestring requiredOne of:LIKE_COMMENT
type = ARCHIVE_CONVERSATION
-
idstring min length 1max length 36 -
typestring requiredOne of:ARCHIVE_CONVERSATION
type = OPEN_CONVERSATION
-
idstring min length 1max length 36 -
typestring requiredOne of:OPEN_CONVERSATION
-
-
-
publishedAtstring nullable date-time -
publishedByUserIdstring nullable -
createdAtstring required nullable date-time
-
-
-
flowVersionobject8 fields
-
idstring required -
flowIdstring required -
versionnumber required -
statusstring requiredOne of:DRAFTPUBLISHEDRETIRED -
definitionobject required2 fields
-
triggerobject required11 fields
-
keywordsstring[] max 100 itemseach: min length 1each: max length 200 -
matchModestring default "ANY"One of:ANYALL -
caseSensitiveboolean default false -
senderExternalIdsstring[] max 100 itemseach: min length 1each: max length 64 -
payloadsstring[] max 100 itemseach: min length 1each: max length 1,000 -
actionDelaySecondsinteger default 0 ≥ 0≤ 86400 -
idstring min length 1max length 36 -
typestring requiredOne of:COMMENT_CREATEDDM_RECEIVEDQUICK_REPLY_CLICKEDBUTTON_CLICKEDMANUAL_TEST -
platformstring requiredOne of:INSTAGRAMFACEBOOKTIKTOK -
socialAccountIdstring required -
postIdstring nullable
-
-
stepsobject | object | object | object | object | object | object[] requiredOne of 7 shapes
type = CONDITION
-
idstring min length 1max length 36 -
typestring requiredOne of:CONDITION -
conditionsobject[] required min 1 items5 fields
-
idstring min length 1max length 36 -
fieldstring requiredOne of:TEXTPAYLOADPLATFORMSENDER_ID -
operatorstring requiredOne of:CONTAINSEQUALSMATCHES_ANY -
valuestring required min length 1max length 1,000 -
caseSensitiveboolean default false
-
type = SEND_MESSAGE
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_MESSAGE -
messageobject required5 fields
-
textstring max length 1,000 -
attachmentsobject[] max 10 items2 fields
-
uploadIdstring required min length 1 -
typestring requiredOne of:IMAGEVIDEOAUDIOFILE
-
-
quickRepliesobject[] max 13 items3 fields
-
idstring required min length 1max length 36 -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
-
-
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
carouselobject1 field
-
cardsobject[] required min 1 itemsmax 10 items5 fields
-
idstring required min length 1max length 36 -
titlestring required min length 1max length 80 -
subtitlestring nullable max length 80 -
imageUploadIdstring nullable min length 1 -
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
-
-
type = SEND_PRIVATE_REPLY
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_PRIVATE_REPLY -
messageobject required5 fields
-
textstring max length 1,000 -
attachmentsobject[] max 10 items2 fields
-
uploadIdstring required min length 1 -
typestring requiredOne of:IMAGEVIDEOAUDIOFILE
-
-
quickRepliesobject[] max 13 items3 fields
-
idstring required min length 1max length 36 -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
-
-
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
carouselobject1 field
-
cardsobject[] required min 1 itemsmax 10 items5 fields
-
idstring required min length 1max length 36 -
titlestring required min length 1max length 80 -
subtitlestring nullable max length 80 -
imageUploadIdstring nullable min length 1 -
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
-
-
type = SEND_PUBLIC_COMMENT_REPLY
-
idstring min length 1max length 36 -
typestring requiredOne of:SEND_PUBLIC_COMMENT_REPLY -
textstring required min length 1max length 1,000
type = LIKE_COMMENT
-
idstring min length 1max length 36 -
typestring requiredOne of:LIKE_COMMENT
type = ARCHIVE_CONVERSATION
-
idstring min length 1max length 36 -
typestring requiredOne of:ARCHIVE_CONVERSATION
type = OPEN_CONVERSATION
-
idstring min length 1max length 36 -
typestring requiredOne of:OPEN_CONVERSATION
-
-
-
publishedAtstring nullable date-time -
publishedByUserIdstring nullable -
createdAtstring required nullable date-time
-
-
stepsobject[]12 fields
-
idstring required -
executionIdstring required -
stepIdstring nullable -
statusstring requiredOne of:PENDINGRUNNINGCOMPLETEDFAILEDSKIPPED -
attemptCountnumber required -
inputobject default {}11 fields
-
typestring nullableOne of:COMMENT_CREATEDDM_RECEIVEDQUICK_REPLY_CLICKEDBUTTON_CLICKEDMANUAL_TEST -
platformstring nullableOne of:INSTAGRAMFACEBOOKTIKTOK -
socialAccountIdstring nullable -
postIdstring nullable -
conversationIdstring nullable -
conversationMessageIdstring nullable -
fetchedCommentIdstring nullable -
senderExternalIdstring nullable -
externalMessageIdstring nullable -
textstring nullable -
payloadstring nullable
-
-
outputobject default {} -
errorobject nullable3 fields
-
codestring nullable -
messagestring nullable -
retryableboolean nullable
-
-
startedAtstring nullable date-time -
completedAtstring nullable date-time -
createdAtstring required nullable date-time -
updatedAtstring required nullable date-time
-
-
conversationobject nullable20 fields
-
idstring required -
teamIdstring required -
socialAccountIdstring required -
platformstring requiredOne of:INSTAGRAMFACEBOOK -
externalConversationIdstring nullable -
externalParticipantIdstring required -
participantUsernamestring nullable -
participantDisplayNamestring nullable -
participantAvatarUrlstring nullable -
statusstring requiredOne of:OPENARCHIVED -
lastMessageAtstring nullable date-time -
lastActivityAtstring required nullable date-time -
lastMessagePreviewstring nullable -
lastReadAtstring nullable date-time -
unreadCountnumber required -
platformSeenAtstring nullable date-time -
createdAtstring required nullable date-time -
updatedAtstring required nullable date-time -
platformDataobject default {}3 fields
-
canReplyboolean nullable -
lastInboundAtstring nullable date-time -
providerStateSyncobject nullable5 fields
-
actionstring requiredOne of:ARCHIVEOPEN -
statusstring requiredOne of:SYNCEDSYNC_FAILEDUNSUPPORTED -
reasonstring nullable -
errorstring nullable -
syncedAtstring nullable date-time
-
-
-
socialAccountobject26 fields
-
idstring required -
typestring requiredOne of:TIKTOKYOUTUBEINSTAGRAMFACEBOOKTWITTERTHREADSLINKEDINPINTERESTREDDITMASTODONDISCORDSLACKBLUESKYGOOGLE_BUSINESSSNAPCHAT -
teamIdstring required -
usernamestring nullable -
displayNamestring nullable -
biostring nullable -
avatarUrlstring nullable -
externalIdstring nullable -
providerPageIdstring nullable -
userUsernamestring nullable -
userDisplayNamestring nullable -
userEmailstring nullable -
userIdstring nullable -
channelsobject[] nullable7 fields
-
idstring required -
namestring nullable -
usernamestring nullable -
addressstring nullable -
avatarUrlstring nullable -
webhookobject nullable4 fields
-
idstring nullable -
namestring nullable -
avatarstring nullable -
urlstring nullable
-
-
metadataobject nullable5 fields
-
allowImagesboolean nullable -
allowVideosboolean nullable -
allowGalleriesboolean nullable -
linkFlairEnabledboolean nullable -
facebookPageIdstring nullable
-
-
-
mastodonServerIdstring nullable -
instagramConnectionMethodstring nullableOne of:FACEBOOKINSTAGRAM -
twitterSubTypestring nullableOne of:nonebasicpremiumpremium_plus -
isTiktokBusinessAccountboolean nullable -
disconnectedCheckTryAtstring nullable date-time -
deleteOnstring nullable date-time -
messagingStatusstring default "DISABLED"One of:DISABLEDENABLEDDISABLE_PENDING -
messagingStatusUpdatedAtstring nullable date-time -
messagingLastErrorstring nullable -
createdAtstring required nullable date-time -
updatedAtstring required nullable date-time -
deletedAtstring nullable date-time
-
-
-
conversationMessageobject nullable20 fields
-
idstring required -
conversationIdstring required -
teamIdstring required -
socialAccountIdstring required -
platformstring requiredOne of:INSTAGRAMFACEBOOK -
directionstring requiredOne of:INBOUNDOUTBOUND -
statusstring requiredOne of:PENDINGSENTDELIVEREDSEENFAILED -
sourcestring requiredOne of:PRIVATE_REPLYDMWEBHOOKAPIECHO -
externalMessageIdstring nullable -
textstring nullable -
attachmentsobject[] default []8 fields
-
typestring requiredOne of:IMAGEVIDEOAUDIOFILEPOSTUNKNOWN -
urlstring nullable -
externalIdstring nullable -
mimeTypestring nullable -
namestring nullable -
captionTrackUrlstring nullable -
captionLanguagestring nullable -
captionLabelstring nullable
-
-
sentAtstring nullable date-time -
failedAtstring nullable date-time -
errorstring nullable -
seenAtstring nullable date-time -
replyToobject nullable3 fields
-
externalMessageIdstring nullable -
isSelfReplyboolean nullable -
messageIdstring nullable
-
-
privateReplyContextobject nullable10 fields
-
fetchedCommentIdstring required -
externalCommentIdstring nullable -
textstring nullable -
authorNamestring nullable -
authorAvatarUrlstring nullable -
publishedAtstring nullable date-time -
postIdstring nullable -
externalPostIdstring nullable -
postPermalinkstring nullable -
postThumbnailUrlstring nullable
-
-
createdAtstring required nullable date-time -
updatedAtstring required nullable date-time -
platformDataobject default {}12 fields
-
replyToobject nullable2 fields
-
externalMessageIdstring nullable -
isSelfReplyboolean nullable
-
-
reactionsobject[]4 fields
-
senderIdstring required -
reactionstring nullable -
emojistring nullable -
reactedAtstring nullable date-time
-
-
quickRepliesobject[]3 fields
-
idstring min length 1max length 36 -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
-
-
buttonsobject | object | object[]One of 3 shapes
type = POSTBACK
-
idstring min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
carouselobject nullable1 field
-
cardsobject[] required min 1 itemsmax 10 items5 fields
-
idstring min length 1max length 36 -
titlestring required min length 1max length 80 -
subtitlestring nullable max length 80 -
imageUrlstring nullable uri -
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
-
-
isEchoboolean nullable -
isEditedboolean nullable -
editedAtstring nullable date-time -
isPostbackboolean nullable -
postbackPayloadstring nullable -
isUnsentboolean nullable -
unsentAtstring nullable date-time
-
-
-
fetchedCommentobject nullable23 fields
-
idstring required -
teamIdstring required -
organizationIdstring nullable -
postIdstring nullable -
importedPostIdstring nullable -
socialAccountIdstring required -
importIdstring required -
platformstring requiredOne of:FACEBOOKINSTAGRAMLINKEDINYOUTUBETIKTOKREDDITTHREADSMASTODONBLUESKYTWITTER -
externalIdstring required -
externalParentIdstring nullable -
externalPostIdstring nullable -
authorNamestring nullable -
authorExternalIdstring nullable -
authorProfileUrlstring nullable -
authorAvatarUrlstring nullable -
textstring nullable -
likesCountnumber required -
repliesCountnumber required -
platformDataobject default {}23 fields
-
canDeleteboolean nullable -
canHideboolean nullable -
canLikeboolean nullable -
canModerateboolean nullable -
hiddenboolean nullable -
likedByMeboolean nullable -
likedByAutomationboolean nullable -
reactionsCountnumber nullable -
reactionTypestring nullableOne of:LIKELOVEWOWHAHASADANGRY -
ownerboolean nullable -
hideStatusstring nullable -
moderationStatusstring nullable -
approvalStatusstring nullable -
statusstring nullable -
attachmentTypestring nullable -
attachmentUrlstring nullable -
cidstring nullable -
originstring nullableOne of:platformbundle -
sourcestring nullable -
mediaProductTypestring nullable -
bundleCommentIdstring nullable -
displayStatestring nullableOne of:activethread_deletedplatform_missing -
disabledReasonstring nullable
-
-
publishedAtstring nullable date-time -
createdAtstring required nullable date-time -
updatedAtstring required nullable date-time -
deletedAtstring nullable date-time
-
-
socialAccountobject26 fields
-
idstring required -
typestring requiredOne of:TIKTOKYOUTUBEINSTAGRAMFACEBOOKTWITTERTHREADSLINKEDINPINTERESTREDDITMASTODONDISCORDSLACKBLUESKYGOOGLE_BUSINESSSNAPCHAT -
teamIdstring required -
usernamestring nullable -
displayNamestring nullable -
biostring nullable -
avatarUrlstring nullable -
externalIdstring nullable -
providerPageIdstring nullable -
userUsernamestring nullable -
userDisplayNamestring nullable -
userEmailstring nullable -
userIdstring nullable -
channelsobject[] nullable7 fields
-
idstring required -
namestring nullable -
usernamestring nullable -
addressstring nullable -
avatarUrlstring nullable -
webhookobject nullable4 fields
-
idstring nullable -
namestring nullable -
avatarstring nullable -
urlstring nullable
-
-
metadataobject nullable5 fields
-
allowImagesboolean nullable -
allowVideosboolean nullable -
allowGalleriesboolean nullable -
linkFlairEnabledboolean nullable -
facebookPageIdstring nullable
-
-
-
mastodonServerIdstring nullable -
instagramConnectionMethodstring nullableOne of:FACEBOOKINSTAGRAM -
twitterSubTypestring nullableOne of:nonebasicpremiumpremium_plus -
isTiktokBusinessAccountboolean nullable -
disconnectedCheckTryAtstring nullable date-time -
deleteOnstring nullable date-time -
messagingStatusstring default "DISABLED"One of:DISABLEDENABLEDDISABLE_PENDING -
messagingStatusUpdatedAtstring nullable date-time -
messagingLastErrorstring nullable -
createdAtstring required nullable date-time -
updatedAtstring required nullable date-time -
deletedAtstring nullable date-time
-
Errors: 400 Validation failed · 401 Missing or invalid API key · 403 Plan limit or permission · 404 Not found · 429 Rate limited · 500 Server error · 502 Network error · 503 Unavailable
/api/v1/automation-provider-settings Get automation provider settings
automation.getProviderSettings · requires x-api-key
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
teamId required | query | string | |
platform | query | string | One of INSTAGRAM, FACEBOOK, TIKTOK |
socialAccountId | query | string | |
type | query | string | One of FACEBOOK_PERSISTENT_MENU, INSTAGRAM_ICE_BREAKERS |
status | query | string | One of DRAFT, SYNCED, SYNC_FAILED, DISABLED |
offset | query | number | default 0 · nullable |
limit | query | number | default 10 · nullable |
Example
curl -X GET "https://api.siaran.my/api/v1/automation-provider-settings?teamId=TEAM_ID" \
-H "x-api-key: $SIAR_API_KEY" Response 200
2 top-level fields
-
itemsobject[] required14 fields
-
idstring required -
teamIdstring required -
organizationIdstring nullable -
platformstring requiredOne of:INSTAGRAMFACEBOOKTIKTOK -
socialAccountIdstring required -
typestring requiredOne of:FACEBOOK_PERSISTENT_MENUINSTAGRAM_ICE_BREAKERS -
statusstring requiredOne of:DRAFTSYNCEDSYNC_FAILEDDISABLED -
configobject | object default {}One of 2 shapes
Variant 1
-
getStartedPayloadstring min length 1max length 1,000 -
composerInputDisabledboolean -
itemsobject | object[] max 3 itemsOne of 2 shapes
type = POSTBACK
-
titlestring required min length 1 -
typestring requiredOne of:POSTBACK -
payloadstring required min length 1max length 1,000 -
urlstring
type = URL
-
titlestring required min length 1 -
typestring requiredOne of:URL -
payloadstring -
urlstring required uri
-
Variant 2
-
iceBreakersobject[] max 4 items2 fields
-
questionstring required min length 1 -
payloadstring required min length 1max length 1,000
-
-
-
providerResponseobject nullable -
lastSyncedAtstring nullable date-time -
lastSyncErrorobject nullable3 fields
-
codestring nullable -
messagestring nullable -
retryableboolean nullable
-
-
createdAtstring required nullable date-time -
updatedAtstring required nullable date-time -
socialAccountobject26 fields
-
idstring required -
typestring requiredOne of:TIKTOKYOUTUBEINSTAGRAMFACEBOOKTWITTERTHREADSLINKEDINPINTERESTREDDITMASTODONDISCORDSLACKBLUESKYGOOGLE_BUSINESSSNAPCHAT -
teamIdstring required -
usernamestring nullable -
displayNamestring nullable -
biostring nullable -
avatarUrlstring nullable -
externalIdstring nullable -
providerPageIdstring nullable -
userUsernamestring nullable -
userDisplayNamestring nullable -
userEmailstring nullable -
userIdstring nullable -
channelsobject[] nullable7 fields
-
idstring required -
namestring nullable -
usernamestring nullable -
addressstring nullable -
avatarUrlstring nullable -
webhookobject nullable4 fields
-
idstring nullable -
namestring nullable -
avatarstring nullable -
urlstring nullable
-
-
metadataobject nullable5 fields
-
allowImagesboolean nullable -
allowVideosboolean nullable -
allowGalleriesboolean nullable -
linkFlairEnabledboolean nullable -
facebookPageIdstring nullable
-
-
-
mastodonServerIdstring nullable -
instagramConnectionMethodstring nullableOne of:FACEBOOKINSTAGRAM -
twitterSubTypestring nullableOne of:nonebasicpremiumpremium_plus -
isTiktokBusinessAccountboolean nullable -
disconnectedCheckTryAtstring nullable date-time -
deleteOnstring nullable date-time -
messagingStatusstring default "DISABLED"One of:DISABLEDENABLEDDISABLE_PENDING -
messagingStatusUpdatedAtstring nullable date-time -
messagingLastErrorstring nullable -
createdAtstring required nullable date-time -
updatedAtstring required nullable date-time -
deletedAtstring nullable date-time
-
-
-
totalnumber required
Errors: 400 Validation failed · 401 Missing or invalid API key · 403 Plan limit or permission · 404 Not found · 429 Rate limited · 500 Server error · 502 Network error
/api/v1/automation-provider-settings/{socialAccountId}/{type} Create or update automation provider settings
automation.upsertProviderSetting · requires x-api-key
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
socialAccountId required | path | string | |
type required | path | string | One of FACEBOOK_PERSISTENT_MENU, INSTAGRAM_ICE_BREAKERS |
Request body application/json
-
teamIdstring required -
platformstring requiredOne of:INSTAGRAMFACEBOOKTIKTOK -
configobject | object default {}One of 2 shapes
Variant 1
-
getStartedPayloadstring min length 1max length 1,000 -
composerInputDisabledboolean -
itemsobject | object[] max 3 itemsOne of 2 shapes
type = POSTBACK
-
titlestring required min length 1 -
typestring requiredOne of:POSTBACK -
payloadstring required min length 1max length 1,000 -
urlstring
type = URL
-
titlestring required min length 1 -
typestring requiredOne of:URL -
payloadstring -
urlstring required uri
-
Variant 2
-
iceBreakersobject[] max 4 items2 fields
-
questionstring required min length 1 -
payloadstring required min length 1max length 1,000
-
-
-
statusstring default "DRAFT"One of:DRAFTDISABLED
Example
curl -X PUT "https://api.siaran.my/api/v1/automation-provider-settings/SOCIALACCOUNTID/TYPE" \
-H "x-api-key: $SIAR_API_KEY" \
-H "content-type: application/json" \
-d '{
"teamId": "TEAM_ID",
"platform": "INSTAGRAM"
}' Response 200
14 top-level fields
-
idstring required -
teamIdstring required -
organizationIdstring nullable -
platformstring requiredOne of:INSTAGRAMFACEBOOKTIKTOK -
socialAccountIdstring required -
typestring requiredOne of:FACEBOOK_PERSISTENT_MENUINSTAGRAM_ICE_BREAKERS -
statusstring requiredOne of:DRAFTSYNCEDSYNC_FAILEDDISABLED -
configobject | object default {}One of 2 shapes
Variant 1
-
getStartedPayloadstring min length 1max length 1,000 -
composerInputDisabledboolean -
itemsobject | object[] max 3 itemsOne of 2 shapes
type = POSTBACK
-
titlestring required min length 1 -
typestring requiredOne of:POSTBACK -
payloadstring required min length 1max length 1,000 -
urlstring
type = URL
-
titlestring required min length 1 -
typestring requiredOne of:URL -
payloadstring -
urlstring required uri
-
Variant 2
-
iceBreakersobject[] max 4 items2 fields
-
questionstring required min length 1 -
payloadstring required min length 1max length 1,000
-
-
-
providerResponseobject nullable -
lastSyncedAtstring nullable date-time -
lastSyncErrorobject nullable3 fields
-
codestring nullable -
messagestring nullable -
retryableboolean nullable
-
-
createdAtstring required nullable date-time -
updatedAtstring required nullable date-time -
socialAccountobject26 fields
-
idstring required -
typestring requiredOne of:TIKTOKYOUTUBEINSTAGRAMFACEBOOKTWITTERTHREADSLINKEDINPINTERESTREDDITMASTODONDISCORDSLACKBLUESKYGOOGLE_BUSINESSSNAPCHAT -
teamIdstring required -
usernamestring nullable -
displayNamestring nullable -
biostring nullable -
avatarUrlstring nullable -
externalIdstring nullable -
providerPageIdstring nullable -
userUsernamestring nullable -
userDisplayNamestring nullable -
userEmailstring nullable -
userIdstring nullable -
channelsobject[] nullable7 fields
-
idstring required -
namestring nullable -
usernamestring nullable -
addressstring nullable -
avatarUrlstring nullable -
webhookobject nullable4 fields
-
idstring nullable -
namestring nullable -
avatarstring nullable -
urlstring nullable
-
-
metadataobject nullable5 fields
-
allowImagesboolean nullable -
allowVideosboolean nullable -
allowGalleriesboolean nullable -
linkFlairEnabledboolean nullable -
facebookPageIdstring nullable
-
-
-
mastodonServerIdstring nullable -
instagramConnectionMethodstring nullableOne of:FACEBOOKINSTAGRAM -
twitterSubTypestring nullableOne of:nonebasicpremiumpremium_plus -
isTiktokBusinessAccountboolean nullable -
disconnectedCheckTryAtstring nullable date-time -
deleteOnstring nullable date-time -
messagingStatusstring default "DISABLED"One of:DISABLEDENABLEDDISABLE_PENDING -
messagingStatusUpdatedAtstring nullable date-time -
messagingLastErrorstring nullable -
createdAtstring required nullable date-time -
updatedAtstring required nullable date-time -
deletedAtstring nullable date-time
-
Errors: 400 Validation failed · 401 Missing or invalid API key · 403 Plan limit or permission · 404 Not found · 429 Rate limited · 500 Server error · 502 Network error
/api/v1/automation-provider-settings/{id}/sync Sync automation provider settings
automation.syncProviderSetting · requires x-api-key
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
id required | path | string |
Example
curl -X POST "https://api.siaran.my/api/v1/automation-provider-settings/ID/sync" \
-H "x-api-key: $SIAR_API_KEY" Response 200
14 top-level fields
-
idstring required -
teamIdstring required -
organizationIdstring nullable -
platformstring requiredOne of:INSTAGRAMFACEBOOKTIKTOK -
socialAccountIdstring required -
typestring requiredOne of:FACEBOOK_PERSISTENT_MENUINSTAGRAM_ICE_BREAKERS -
statusstring requiredOne of:DRAFTSYNCEDSYNC_FAILEDDISABLED -
configobject | object default {}One of 2 shapes
Variant 1
-
getStartedPayloadstring min length 1max length 1,000 -
composerInputDisabledboolean -
itemsobject | object[] max 3 itemsOne of 2 shapes
type = POSTBACK
-
titlestring required min length 1 -
typestring requiredOne of:POSTBACK -
payloadstring required min length 1max length 1,000 -
urlstring
type = URL
-
titlestring required min length 1 -
typestring requiredOne of:URL -
payloadstring -
urlstring required uri
-
Variant 2
-
iceBreakersobject[] max 4 items2 fields
-
questionstring required min length 1 -
payloadstring required min length 1max length 1,000
-
-
-
providerResponseobject nullable -
lastSyncedAtstring nullable date-time -
lastSyncErrorobject nullable3 fields
-
codestring nullable -
messagestring nullable -
retryableboolean nullable
-
-
createdAtstring required nullable date-time -
updatedAtstring required nullable date-time -
socialAccountobject26 fields
-
idstring required -
typestring requiredOne of:TIKTOKYOUTUBEINSTAGRAMFACEBOOKTWITTERTHREADSLINKEDINPINTERESTREDDITMASTODONDISCORDSLACKBLUESKYGOOGLE_BUSINESSSNAPCHAT -
teamIdstring required -
usernamestring nullable -
displayNamestring nullable -
biostring nullable -
avatarUrlstring nullable -
externalIdstring nullable -
providerPageIdstring nullable -
userUsernamestring nullable -
userDisplayNamestring nullable -
userEmailstring nullable -
userIdstring nullable -
channelsobject[] nullable7 fields
-
idstring required -
namestring nullable -
usernamestring nullable -
addressstring nullable -
avatarUrlstring nullable -
webhookobject nullable4 fields
-
idstring nullable -
namestring nullable -
avatarstring nullable -
urlstring nullable
-
-
metadataobject nullable5 fields
-
allowImagesboolean nullable -
allowVideosboolean nullable -
allowGalleriesboolean nullable -
linkFlairEnabledboolean nullable -
facebookPageIdstring nullable
-
-
-
mastodonServerIdstring nullable -
instagramConnectionMethodstring nullableOne of:FACEBOOKINSTAGRAM -
twitterSubTypestring nullableOne of:nonebasicpremiumpremium_plus -
isTiktokBusinessAccountboolean nullable -
disconnectedCheckTryAtstring nullable date-time -
deleteOnstring nullable date-time -
messagingStatusstring default "DISABLED"One of:DISABLEDENABLEDDISABLE_PENDING -
messagingStatusUpdatedAtstring nullable date-time -
messagingLastErrorstring nullable -
createdAtstring required nullable date-time -
updatedAtstring required nullable date-time -
deletedAtstring nullable date-time
-
Errors: 400 Validation failed · 401 Missing or invalid API key · 403 Plan limit or permission · 404 Not found · 429 Rate limited · 500 Server error · 502 Network error
/api/v1/automation-rich-messages/conversations/{conversationId} Send a rich automation message to a conversation
automation.sendRichMessage · requires x-api-key
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
conversationId required | path | string |
Request body application/json
-
teamIdstring -
messageobject required5 fields
-
textstring max length 1,000 -
attachmentsobject[] max 10 items2 fields
-
uploadIdstring required min length 1 -
typestring requiredOne of:IMAGEVIDEOAUDIOFILE
-
-
quickRepliesobject[] max 13 items3 fields
-
idstring required min length 1max length 36 -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
-
-
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
carouselobject1 field
-
cardsobject[] required min 1 itemsmax 10 items5 fields
-
idstring required min length 1max length 36 -
titlestring required min length 1max length 80 -
subtitlestring nullable max length 80 -
imageUploadIdstring nullable min length 1 -
buttonsobject | object | object[] max 3 itemsOne of 3 shapes
type = POSTBACK
-
idstring required min length 1max length 36 -
typestring requiredOne of:POSTBACK -
labelstring required min length 1max length 20 -
payloadstring required min length 1max length 1,000
type = URL
-
idstring required min length 1max length 36 -
typestring requiredOne of:URL -
labelstring required min length 1max length 20 -
urlstring required uri
type = PHONE
-
idstring required min length 1max length 36 -
typestring requiredOne of:PHONE -
labelstring required min length 1max length 20 -
phoneNumberstring required min length 3max length 30
-
-
-
-
Example
curl -X POST "https://api.siaran.my/api/v1/automation-rich-messages/conversations/CONVERSATIONID" \
-H "x-api-key: $SIAR_API_KEY" \
-H "content-type: application/json" \
-d '{
"message": {}
}' Response 200
3 top-level fields
-
conversationIdstring required -
messageIdstring nullable -
externalMessageIdstring nullable
Errors: 400 Validation failed · 401 Missing or invalid API key · 403 Plan limit or permission · 404 Not found · 429 Rate limited · 500 Server error · 502 Network error · 503 Unavailable