forked from nxtele/http-api-document
-
Notifications
You must be signed in to change notification settings - Fork 1
WebCall CDR Webbook
henryou edited this page Dec 12, 2022
·
1 revision
NXCLOUD callback push API
NXCLOUD will try to push the CDR to the customer's http(s) address after each call ends, and the customer can configure their own callback address in the NCLOUD console. NXCLOUD will retry the push every minute within 1 hour at most. If it fails 5 times, it will not re-push.
application/json
Params
| field | required | type | desc |
|---|---|---|---|
| sessionid | Yes | string | NXCLOUD sessionid,globally unique |
| sipid | Yes | string | webcall sipid, don't care |
| code | Yes | string | country code. e.g. 852 62 1 |
| username | Yes | string | webcall user name |
| mobile_name | Yes | string | webcall nick name |
| duration | Yes | string | - |
| phone | Yes | string | origin callee |
| start_time | Yes | string | - |
| end_time | Yes | string | - |
| orderid | Yes | string | Passed in when the call is initiated |
| show_phone | Yes | string | display number |
| record_url | Yes | number | The remote address of the recording file of the call |
| answer_time | Yes | string | call answered time |
| direction | Yes | string | 0: inbound 1: outbound |
| effective_called_number | Yes | string | called after formatted |
| hangup_cause | Yes | string | reason of hangup |
Example
{
"show_phone": "6298881888",
"direction": 0,
"end_time": "1555484089",
"record": 1,
"answer_time": "1555484086",
"sipid": "1049002",
"code": "86",
"start_time": "1555484075",
"duration": 3,
"phone": "4444",
"username": "6298881888",
"mobile_name": "first mobile",
"orderid": "1001233",
"record_url": "https://as01.nxcloud.com/record/bf1b9043-cb9f-048f-cc97-0f939dc94609",
"hangup_cause": "NORMAL_CLEARING",
"sessionid": "bf1b9043-cb9f-048f-cc97-0f939dc94609"
}HTTP 200 OK means customer success receive this push request. NXCLOUD would not re-push this record.
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
AI Agent(NXLink)
- AI Agent Task List
- Query Call Records
- Append Contacts to an Existing Task
- Delete Contacts
- Call Record Callback
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号码
通用
号码检测