promptCall PBX API

promptCall pbx api

proptCall PBX API  allows you to access to all basic promptCall PBX functions.

Benefits :

  • Increase security by authentication with API Key and API Secret.
  • API response that supports JSON format.
  • More detailed Response Messages.
Ex. success : {“success”:true , “msg”:” Import success. Success X row , Fail Y row ” }

unsuccess : {“success”:false , “msg”:” Error massage …”}

  • Flexible use : Depends on user requirement

Format :

  • The endpoint is the url you request for

Endpoint : https:///pbxws.php

  • Method for the request you’re making.

Get : This request is used to get a resource from a server. If you perform a `GET` request, the server looks for the data you requested and sends it back to you

Post : This request is used to create a new resource on a server. If you perform a `POST` request, the server creates a new entry in the database and tells you whether the creation is successful

  • Response Data : JSON Format

Authentication : measures in place to ensure you perform actions only when you’re authorized to do

Three option to authentication

  1. Include http header

Authorization: Basic     *token = base64encode of

2. Include in query string

https://protollcall-url/pbxws.php?token=>

3. Include in post data (JSON)

{‘token ‘: ‘‘,……}

Request Data :

Two option to request data

1. Include in query string

 /pbxws.php/dial?tel=086xxxxxxx&……

2. Include in post data (JSON)

 Example: {‘tel’: ‘086xxxxxxx’, ‘ext’: ‘yyyy’}

Action services

Dial

originates an outbound call and connects it to a specified extension (if package callcanter please use Callcenter Dial)

Endpoint : /pbxws.php/dial

Request data

Name

Value

ext

Extension of IPPhone or Softphone

tel

Tel Number for outbound call

Response data

Name

Value

success

true,false

msg

Message of error detail

Callcenter Dial

originates an outbound call and connects it to a specified agent (Package Callcenter only)

Endpoint : /pbxws.php/dialqm

Request data

Name

Value

agent

Agent ID

tel

Tel Number for outbound call

Response data

Name

Value

success

true,false

msg

Message of error detail

Call Detail Report

Get Call Detail report

Endpoint : /pbxws.php/cdrapi

Request data

Name

Value

numRecords

Max row return

startTime

Datetime of calldate start filter (yyyy-mm-dd hh:mm:ss)

endTime

Datetime of calldate end  filter (yyyy-mm-dd hh:mm:ss)

Response data

Name

Value

success

true,false

value

Array of cdr object

Voice record

Get voice record file by 3 filter option

–  Filename

–   Uniqueid

–   Src, Dst, Calldate

Endpoint : /pbxws.php/recapi

Request data

Name

Value

filename

Filename of voice file

uniqueid

Uniqueid of cdr

src

Src of cdr

dst

Dst of cdr

calldate

Calldate of cdr (yyyy-mm-dd hh:mm:ss)

Response success  data

Return output file (Content-type: application/octet-stream)

 

Response unsuccess data

Name

Value

success

false

msg

Message of error detail

เราใช้คุกกี้เพื่อพัฒนาประสิทธิภาพ และประสบการณ์ที่ดีในการใช้เว็บไซต์ของคุณ คุณสามารถศึกษารายละเอียดได้ที่ Privacy Notice และสามารถจัดการความเป็นส่วนตัวเองได้ของคุณได้เองโดยคลิกที่ ตั้งค่า

Privacy Preferences

คุณสามารถเลือกการตั้งค่าคุกกี้โดยเปิด/ปิด คุกกี้ในแต่ละประเภทได้ตามความต้องการ ยกเว้น คุกกี้ที่จำเป็น

Allow All
Manage Consent Preferences
  • คุกกี้ที่จำเป็น
    Always Active

    ประเภทของคุกกี้มีความจำเป็นสำหรับการทำงานของเว็บไซต์ เพื่อให้คุณสามารถใช้ได้อย่างเป็นปกติ และเข้าชมเว็บไซต์ คุณไม่สามารถปิดการทำงานของคุกกี้นี้ในระบบเว็บไซต์ของเราได้
    Cookies Details

Save