Webhook

Outbound task finished

POST/taskend

リクエスト

リクエストボディ

event_namestring必須

事件名称

event_dataobject必須

事件数据

task_idinteger必須

Outbound task ID

task_start_atstring必須

Task start time

task_progressobject必須

Task progress

total_numinteger必須

Total number of phone numbers

called_numinteger必須

Number of phone numbers dialed (including retries)

called_answered_numinteger必須

Number of answered calls

called_un_answered_numinteger必須

Number of unanswered calls

pending_numinteger必須

Number of phone numbers not yet dialed

task_overviewobject[]必須

Statistics of data collection conclusions for the task

[].questionstring必須

Question

[].totalinteger必須

Count

[].optionboolean必須

Whether the question is an enum-type question

[].resultsobject[]必須

Result statistics

[].resultstring必須

Conclusion

[].totalinteger必須

Conclusion count

[].percentstring必須

Share (%)

レスポンス

200 OK

フィールドなし

サンプルコード

curl -X POST 'https://openapi.voicefox.ai/taskend' \
  -H 'Authorization: Bearer <YOUR_TOKEN>' \
  -H 'Content-Type: application/json' \
  -d '{
  "event_name": "事件名称",
  "event_data": {
    "task_id": 0,
    "task_start_at": "string",
    "task_progress": {
      "total_num": 0,
      "called_num": 0,
      "called_answered_num": 0,
      "called_un_answered_num": 0,
      "pending_num": 0
    },
    "task_overview": [
      {
        "question": "string",
        "total": 0,
        "option": false,
        "results": [
          {
            "result": "string",
            "total": 0,
            "percent": "string"
          }
        ]
      }
    ]
  }
}'

レスポンス例

{}