forked from nxtele/http-api-document
-
Notifications
You must be signed in to change notification settings - Fork 1
Callbot API taskCallback
henryou edited this page Sep 13, 2024
·
3 revisions
v1.0.0
Base URLs:
To authenticate, please refer to the documentation https://github.com/nxtele/http-api-document/wiki/Callbot-API-authorization
POST /api/v3/taskCallback
Body Request Parameters
{
"callbackType": 1,
"userTaskID": "string",
"taskID": "string",
"sceneID": "string",
"taskStatus": 1,
"createTs": 0,
"taskStat": {
"answerOrderCount": 0,
"finishOrderCount": 0,
"totalOrderCount": 0,
"finishRate": 0,
"totalAnswerCall": 0,
"totalCall": 0,
"answerRate": 0
}
}| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| requestID | header | string | Yes | Unique request ID |
| uuid | header | string | Yes | UUID provided by the callee |
| createTs | header | string | Yes | Request timestamp (in seconds) |
| sign | header | string | Yes | Signature(Signature algorithm can be found in the backend -> Developer section) |
| body | body | object | No | |
| » callbackType | body | integer | Yes | Callback type |
| » userTaskID | body | string | Yes | Caller's task ID |
| » taskID | body | string | Yes | Callee's task ID |
| » sceneID | body | string | Yes | Script template ID |
| » taskStatus | body | integer | Yes | Task status |
| » createTs | body | integer | Yes | Task creation timestamp |
| » taskStat | body | object | Yes | |
| »» answerOrderCount | body | integer | Yes | Answered order count |
| »» finishOrderCount | body | integer | Yes | Completed order count |
| »» totalOrderCount | body | integer | Yes | Total order count |
| »» finishRate | body | number(float) | Yes | Task completion rate, Rounded to 2 decimal places, calculated as finishOrderCount/totalOrderCount |
| »» totalAnswerCall | body | integer | Yes | Total answered call count |
| »» totalCall | body | integer | Yes | Total call count |
| »» answerRate | body | number(float) | Yes | Rounded to 2 decimal places, calculated as totalAnswerCall/totalCall |
| Attribute | Value | |
|---|---|---|
| » callbackType | 1 | Task callback |
| » callbackType | 2 | Order callback |
| » callbackType | 3 | Call callback |
| taskStatus | 1 | Task pending |
| taskStatus | 2 | Task in progress |
| taskStatus | 3 | Task completed |
| taskStatus | 4 | Task finished (failed) |
| taskStatus | 5 | Task paused |
Response Example
200 Response
{
"retCode": 0,
"retMsg": "string",
"responseID": "string"
}| Status Code | Status Code Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Success | Inline |
Status Code 200
| Name | Type | Required | Constraints | Description |
|---|---|---|---|---|
| » retCode | integer | true | none | Response code, 0 for success, others for failure |
| » retMsg | string | true | none | Response message |
| » responseID | string | true | none | Random unique ID used for request tracking, needed to provide the responseID for troubleshooting |
Introduction
- Send Message
- Mark Incoming Message as Read
- Upload Media File
- Get Media File
- Delete Media File
- Webhook
- Query Number Information
- Query Message Template
- Create Message Template
- Edit Message Template
- Delete Message Template
- Upload Template Example File
- Embedded Page Login
- Create Client Application
- List of Phone Numbers for Client Application
- Get Verification Code
- Verify Verification Code
- Create Local Client
Short message
Voice
Call Center(NXLink)
- Web Iframe
- Manual Dial Record
- Manual Dial Record Query By orderId
- List Agent Information
- List Agent Status
- List Queue
- List Agents In Queue
- List Agent Efficiency
- Update Queue Agents
- Create AutoDial Task
- Webhook - Manual Dial
Call Center(Callbot)
- Callbot API Summary
- Callbot API Authorization
- Callbot API Ping
- Create Auto Dial Task
- Add Contact List To Task
- Create Task And Add Contact
- Start Or Pause Task
- Update Task Parameters
- Get List Task
- List Call
- List Task Orders
- Stop Order
- Get Call Detail By Order
- Webhook - By Call
- Webhook - By Order
- Webhook - Task Status
Flash Call
Short links
邮件验证码
DID号码
通用
号码检测