GetContactFlow
Retrieves a specified contact flow.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID. |
ccc-test |
| ContactFlowId |
string |
Yes |
The contact flow ID. |
274601be-a6d5-4429-bcef-32b51d031c6e |
| DraftId |
string |
Yes |
The draft ID, which is the ID of the editable draft version corresponding to the current contact flow. |
566399d7-5558-447c-a72f-9be2768b6a82 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
string |
The response code. |
OK |
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
| Message |
string |
The response message. |
None |
| RequestId |
string |
The request ID. |
2263B273-AC1B-44EB-BA98-87F2322C6780 |
| Data |
object |
The data. |
|
| Type |
string |
The flow type. Valid values:
|
MAIN_FLOW |
| Definition |
string |
The IVR content. |
{"activities":[{"type":"INCOMING_CALL","id":"e98f0d47","name":"Start","properties":{"position":{"x":263,"y":164}},"events":[{"event":"complete","next":"2d3ad2c2","edgeId":"41f7dbd0"}],"nodeIndex":0},{"type":"HANGUP","id":"bd4f37e2","name":"Hang up","properties":{"position":{"x":765,"y":185}},"events":[{"event":"complete","next":null}],"nodeIndex":999},{"type":"PLAY_SAY","id":"2d3ad2c2","name":"Play audio","properties":{"say":"Hello, welcome to Cloud Call Center.","audioResourceId":"","position":{"x":485.5,"y":153.5},"audioType":"tts","audioInterrupt":false},"events":[{"event":"complete","next":"bd4f37e2","edgeId":"e1af4f1f"}],"nodeIndex":1}],"description":""} |
| DraftId |
string |
The draft ID, which is the ID of the editable draft version corresponding to the current contact flow. |
566399d7-5558-447c-a72f-9be2768b6a82 |
| Description |
string |
The version description. |
1.0 |
| UpdatedTime |
string |
The time of the last modification. The format is YYYY-MM-DD HH:mm:ss.S. |
2021-07-14 10:48:43.0 |
| Editor |
string |
The logon name of the agent currently editing this draft. |
editor-xxx |
| Published |
boolean |
Specifies whether the contact flow is published. Valid values:
|
False |
| InstanceId |
string |
The instance ID. |
ccc-test |
| Name |
string |
The IVR name. |
Greeting |
| ContactFlowId |
string |
The contact flow ID. |
274601be-a6d5-4429-bcef-32b51d031c6e |
| CreatedTime |
string |
The time when the contact flow draft was created. The format is YYYY-MM-DD HH:mm:ss.S. |
2021-07-14 10:48:43.0 |
Examples
Success response
JSON format
{
"Code": "OK",
"HttpStatusCode": 200,
"Message": "无",
"RequestId": "2263B273-AC1B-44EB-BA98-87F2322C6780",
"Data": {
"Type": "MAIN_FLOW",
"Definition": "{\"activities\":[{\"type\":\"INCOMING_CALL\",\"id\":\"e98f0d47\",\"name\":\"开始\",\"properties\":{\"position\":{\"x\":263,\"y\":164}},\"events\":[{\"event\":\"complete\",\"next\":\"2d3ad2c2\",\"edgeId\":\"41f7dbd0\"}],\"nodeIndex\":0},{\"type\":\"HANGUP\",\"id\":\"bd4f37e2\",\"name\":\"挂机\",\"properties\":{\"position\":{\"x\":765,\"y\":185}},\"events\":[{\"event\":\"complete\",\"next\":null}],\"nodeIndex\":999},{\"type\":\"PLAY_SAY\",\"id\":\"2d3ad2c2\",\"name\":\"放音\",\"properties\":{\"say\":\"您好,欢迎来到云联络中心。\",\"audioResourceId\":\"\",\"position\":{\"x\":485.5,\"y\":153.5},\"audioType\":\"tts\",\"audioInterrupt\":false},\"events\":[{\"event\":\"complete\",\"next\":\"bd4f37e2\",\"edgeId\":\"e1af4f1f\"}],\"nodeIndex\":1}],\"description\":\"\"}",
"DraftId": "566399d7-5558-447c-a72f-9be2768b6a82\n",
"Description": "1.0\n",
"UpdatedTime": "2021-07-14 10:48:43.0",
"Editor": "editor-xxx",
"Published": true,
"InstanceId": "ccc-test",
"Name": "欢迎语",
"ContactFlowId": "274601be-a6d5-4429-bcef-32b51d031c6e\n",
"CreatedTime": "2021-07-14 10:48:43.0"
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 404 | NotExists.InstanceId | The specified instance %s does not exist. | The specified call center instance does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.