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"
          }
        ]
      }
    ]
  }
}'

응답 예시

{}