API Documentation
API Endpoint
https://{{account}}.omnidesk.io/api/v2Omnidesk API
The Omnidesk API provides all functionality available in the user interface and more. Specific functionality can be enabled and disabled on API key level.
Formfield ¶
Index ¶
Get formsGET/formfield
This method will fetch the forms
- query
#^[0-9a-zA-Z ]+$#(required) Example: 1- itemStart
#^[0-9]+$#(required) Example: 1- itemLimit
#^[0-9]+$#(required) Example: 1
Headers
Content-Type: application/jsonBody
{
"status": "error",
"message": "This form does not exist."
}Headers
Content-Type: application/jsonBody
{
"type": "result",
"message": "Form field created"
}Create new form fieldPOST/formfield
This method will create a new form field
- form_id
#^[0-9]+$#(required) Example: 1- title
#^[a-zA-Z0-9]+$#(required) Example: 1- input_type
#^[a-z]+$#(required) Example: 1- required
#^[0,1]$#(required) Example: 1
Item ¶
Get formfieldGET/formfield/[id]
This will get the meta data of a formfield
Headers
Content-Type: application/jsonBody
{
"status": "error",
"message": "This form does not exist."
}Headers
Content-Type: application/jsonBody
{
"type": "result",
"message": "Form updated"
}Edit form fieldPUT/formfield/[id]
This will edit formfields
- form_id
#^[0-9]+$#(required) Example: 1- title
#^[a-zA-Z0-9 ]+$#(required) Example: 1- input_type
#^[a-z]+$#(required) Example: 1- required
#^[0,1]$#(required) Example: 1
Headers
Content-Type: application/jsonBody
{
"type": "result",
"message": "Form deleted"
}Delete formfieldDELETE/formfield/[id]
This will delete the formfield.
File ¶
DownloadFile ¶
Headers
Content-Type: application/jsonBody
{
"status": "error",
"message": "Could not retreive a file with this ID."
}Recording ¶
Index ¶
Get recordingsGET/recording
Get a list of available recordings
- query
#^[0-9a-zA-Z ]+$#(required) Example: 1- itemStart
#^[0-9]+$#(required) Example: 1- itemLimit
#^[0-9]+$#(required) Example: 1
Nps ¶
ContactHistory ¶
Headers
Content-Type: application/jsonBody
{
"status": "error",
"message": "Maximum allowed range is 31 days."
}Get contact historyGET/nps/contacthistory
Get the contact history of a brand
- brandID
#^([0-9]*)$#(required) Example: 1- start
#^(\d{4})-(\d{2})-(\d{2}) (\d{2}):(\d{2}):(\d{2})$#(required) Example: 1- end
#^(\d{4})-(\d{2})-(\d{2}) (\d{2}):(\d{2}):(\d{2})$#(required) Example: 1
Formfieldoption ¶
Index ¶
Get formsGET/formfieldoption
This method will fetch the forms
- query
#^[0-9a-zA-Z ]+$#(required) Example: 1- itemStart
#^[0-9]+$#(required) Example: 1- itemLimit
#^[0-9]+$#(required) Example: 1
Headers
Content-Type: application/jsonBody
{
"status": "error",
"message": "The form field set as condition does not exist."
}Headers
Content-Type: application/jsonBody
{
"status": "error",
"message": "This form field does not exist."
}Headers
Content-Type: application/jsonBody
{
"type": "result",
"message": "Form field option has been created."
}Create form field optionPOST/formfieldoption
This will create a new form field option
- form_field_id
#^[0-9]+$#(required) Example: 1- title
#^[0-9a-zA-Z ]+$#(required) Example: 1- condition
#^[0-9]+$#(required) Example: 1
Item ¶
Get form field optionGET/formfieldoption/[id]
This will get the meta data of a form field option
Headers
Content-Type: application/jsonBody
{
"status": "error",
"message": "This form field does not exist."
}Headers
Content-Type: application/jsonBody
{
"type": "result",
"message": "Form updated"
}Edit form field optionPUT/formfieldoption/[id]
This will edit the form field option
- form_field_id
#^[0-9]+$#(required) Example: 1- title
#^[0-9a-zA-Z ]+$#(required) Example: 1- condition
#^[0-9]+$#(required) Example: 1
Headers
Content-Type: application/jsonBody
{
"type": "result",
"message": "Form field option deleted"
}Delete formfield optionDELETE/formfieldoption/[id]
This will delete the formfield.
Telephone ¶
ItemFile ¶
Get sound fileGET/telephone/file/[id]
Get info of one telephone file
- id
#^([0-9]+)$#(required) Example: 1
ItemFileDownloadHEAD ¶
Freeswitch uses HEAD instead of GETGET/telephone/filedownloadhead/[id]
ItemFileDownload ¶
Get sound fileGET/telephone/filedownload/[id]
Get info of one telephone file
- id
#^([0-9]+)$#(required) Example: 1
ItemFile ¶
Update sound filePUT/telephone/file/[id]
Update settings for a sound file
- id
#^([0-9]+)$#(required) Example: 1- label
string(required) Example: 1
Delete a sound fileDELETE/telephone/file/[id]
Deletes a sound file
- id
#^([0-9]+)$#(required) Example: 1- fileID
string(required) Example: 1
TelephoneFileActiveTimes ¶
Sound file active timesGET/telephone/telephonefileactivetimes
Get the active times of a sounds file
- dayID
string(required) Example: 1
Create new active timesPOST/telephone/telephonefileactivetimes
Creates new active times for a sound file
- telephone_file_id
string(required) Example: 1- day
string(required) Example: 1- active_time_from
string(required) Example: 1- active_time_to
string(required) Example: 1
Update active timesPUT/telephone/telephonefileactivetimes
Update active times for a sound file
- id
string(required) Example: 1- day
string(required) Example: 1- active_time_from
string(required) Example: 1- active_time_to
string(required) Example: 1
Delete active timesDELETE/telephone/telephonefileactivetimes
Delete active times for a sound file
- dayID
string(required) Example: 1
NewInboundCall ¶
Headers
Content-Type: application/jsonBody
{
"status": "error",
"message": "Could not find flow for telephone number. Hint: + should be urlencoded %2B."
}Telephone APIPOST/telephone/newinboundcall
Register call asap and get instructions for ivr and sound files
- callID
#^([-a-zA-Z0-9]+)$#(required) Example: 1- pbxID
#^([-a-zA-Z0-9]+)$#(required) Example: 1- pbxIP
#^([.0-9]+)$#(required) Example: 1- telephoneNumberCalling
#^([+0-9]+)$#(required) Example: 1- telephoneNumberCalled
#^([+0-9]+)$#(required) Example: 1
CallCreateTicket ¶
Headers
Content-Type: application/jsonBody
{
"type": "result",
"message": "message created"
}Headers
Content-Type: application/jsonBody
{
"status": "error",
"message": "Agent id not set."
}Headers
Content-Type: application/jsonBody
{
"status": "error",
"message": "Agent id not set."
}Headers
Content-Type: application/jsonBody
{
"type": "result",
"message": "ok"
}Telephone APIPOST/telephone/callcreateticket
- variables
string(required) Example: 1- accountCallID
#^([0-9]+)$#(required) Example: 1- type
#^([-a-zA-Z0-9]+)$#(required) Example: 1- agentID
#^([-a-zA-Z0-9]+)$#(required) Example: 1- pbxResponse
string(required) Example: 1- customerCallID
#^([-a-zA-Z0-9]+)$#(required) Example: 1- status
#^failed|in-progress|completed$#(required) Example: 1- code
string(required) Example: 1- callID
#^([-a-zA-Z0-9]+)$#(required) Example: 1- telephoneNumberCalling
#^([+0-9]+)$#(required) Example: 1- telephoneNumberCalled
#^([+0-9]+)$#(required) Example: 1- pbxID
#^([-a-zA-Z0-9]+)$#(required) Example: 1- pbxIP
#^([.0-9]+)$#(required) Example: 1
CreateWarmTransferInbound ¶
Headers
Content-Type: application/jsonBody
{
"type": "result",
"message": "ok"
}Headers
Content-Type: application/jsonBody
{
"type": "result",
"message": "ok"
}Headers
Content-Type: application/jsonBody
{
"type": "result",
"message": "ok"
}Create warm transferPOST/telephone/createwarmtransferinbound
Creates a warm transfer for the given customer call
- phoneNumberToTransferTo
#^([+0-9]+)$#(required) Example: 1- internalCallIDCustomer
#^([0-9]+)$#(required) Example: 1
Schedule ¶
Index ¶
Get schedulesGET/schedule
This method will fetch the schedules
- query
#^[0-9a-zA-Z ]+$#(required) Example: 1- itemStart
#^[0-9]+$#(required) Example: 1- itemLimit
#^[0-9]+$#(required) Example: 1
Headers
Content-Type: application/jsonBody
{
"status": "error",
"message": "This username already exists in the system."
}Headers
Content-Type: application/jsonBody
{
"type": "result",
"message": "Schedule created."
}Create schedulePOST/schedule
This will create a new schedule
- name
#^[0-9a-zA-Z ]+$#(required) Example: 1- days
string(required) Example: 1- exceptions
string(required) Example: 1
Item ¶
Get scheduleGET/schedule/[id]
Get schedule data
Headers
Content-Type: application/jsonBody
{
"type": "result",
"message": "Schedule updated"
}Edit schedulePUT/schedule/[id]
This will edit schedule data
- name
#^[0-9a-zA-Z ]+$#(required) Example: 1- days
string(required) Example: 1- exceptions
string(required) Example: 1
Headers
Content-Type: application/jsonBody
{
"type": "result",
"message": "Schedule deleted"
}Delete scheduleDELETE/schedule/[id]
This will delete the schedule.
View ¶
MyViewCounts ¶
Get counts of viewsGET/view/myviewcounts
This method will fetch number of messages in the views
Index ¶
Get viewsGET/view
This method will fetch the views
- query
#^[0-9a-zA-Z ]+$#(required) Example: 1- itemStart
#^[0-9]+$#(required) Example: 1- itemLimit
#^[0-9]+$#(required) Example: 1
Headers
Content-Type: application/jsonBody
{
"status": "error",
"message": "No conditions were set."
}Headers
Content-Type: application/jsonBody
{
"status": "error",
"message": "Not all condition fields were set."
}Create viewPOST/view
This will create a new view
- title
#^[0-9a-zA-Z ]+$#(required) Example: 1- primary_sorting: 1 (required,#^[a-z_]+$#)
string(required)- primary_sorting_order
#asc|desc#(required) Example: 1- secondary_sorting: 1 (required,#^[a-z_]+$#)
string(required)- secondary_sorting_order
#asc|desc#(required) Example: 1- columns
#^[a-z_]+$#(required) Example: 1
Item ¶
Headers
Content-Type: application/jsonBody
{
"status": "error",
"message": "No conditions were set."
}Headers
Content-Type: application/jsonBody
{
"status": "error",
"message": "Not all condition fields were set."
}Headers
Content-Type: application/jsonBody
{
"status": "error",
"message": "View does not exist."
}Update viewPUT/view/[id]
This will update the view.
- title
#^[0-9a-zA-Z ]+$#(required) Example: 1- primary_sorting: 1 (#^[a-z_]+$#)
string(required)- primary_sorting_order
#asc|desc#(required) Example: 1- secondary_sorting: 1 (#^[a-z_]+$#)
string(required)- secondary_sorting_order
#asc|desc#(required) Example: 1- columns
#^[a-z_]+$#(required) Example: 1
Get viewGET/view/[id]
This will get the view.
Headers
Content-Type: application/jsonBody
{
"type": "result",
"message": "View deleted"
}Delete viewDELETE/view/[id]
This will delete the view.
Macro ¶
Index ¶
Get macrosGET/macro
This method will fetch the macros
- query
#^[0-9a-zA-Z ]+$#(required) Example: 1- itemStart
#^[0-9]+$#(required) Example: 1- itemLimit
#^[0-9]+$#(required) Example: 1
Headers
Content-Type: application/jsonBody
{
"status": "error",
"message": "No action specified."
}Create macroPOST/macro
This will create a new macro
- name
#^[0-9a-zA-Z-:>+()\/Γ« ]+$#(required) Example: 1
Item ¶
Headers
Content-Type: application/jsonBody
{
"status": "error",
"message": "No action specified."
}Update macroPUT/macro/[id]
This method will update the macro
- name
#^[0-9a-zA-Z-:>+()\/Γ« ]+$#(required) Example: 1- formID
string(required) Example: 1
Get macroGET/macro/[id]
This method will fetch the macro
Headers
Content-Type: application/jsonBody
{
"type": "result",
"message": "Macro deleted"
}Delete macroDELETE/macro/[id]
This will delete the macro.
Cron ¶
Index ¶
Get cronsGET/cron
This method will fetch the crons
- query
#^[0-9a-zA-Z ]+$#(required) Example: 1- itemStart
#^[0-9]+$#(required) Example: 1- itemLimit
#^[0-9]+$#(required) Example: 1
Headers
Content-Type: application/jsonBody
{
"status": "error",
"message": "No conditions specified."
}Headers
Content-Type: application/jsonBody
{
"status": "error",
"message": "No action specified."
}Headers
Content-Type: application/jsonBody
{
"status": "error",
"message": "Not all condition fields were set."
}Headers
Content-Type: application/jsonBody
{
"status": "error",
"message": "Not all action fields were set."
}Create cronPOST/cron
This will create a new cron
- name
#^[0-9a-zA-Z-:>+()\/Γ« ]+$#(required) Example: 1
Item ¶
Headers
Content-Type: application/jsonBody
{
"status": "error",
"message": "No conditions specified."
}Headers
Content-Type: application/jsonBody
{
"status": "error",
"message": "No action specified."
}Headers
Content-Type: application/jsonBody
{
"status": "error",
"message": "Not all condition fields were set."
}Headers
Content-Type: application/jsonBody
{
"status": "error",
"message": "Not all action fields were set."
}Update macroPUT/cron/[id]
This method will update the macro
- name
#^[0-9a-zA-Z-:>+()\/Γ« ]+$#(required) Example: 1
Get cronGET/cron/[id]
This method will fetch the cron
Headers
Content-Type: application/jsonBody
{
"type": "result",
"message": "Cron deleted"
}Delete cronDELETE/cron/[id]
This will delete the cron
Sla ¶
Item ¶
Get slaGET/sla/[id]
This will get the sla.
Index ¶
Headers
Content-Type: application/jsonBody
{
"status": "error",
"message": "No conditions were set."
}Headers
Content-Type: application/jsonBody
{
"status": "error",
"message": "Not all condition fields were set."
}Create sla policyPOST/sla
This will create a new sla policy
- title
#^[0-9a-zA-Z ]+$#(required) Example: 1- priority
#^[0-9]+$#(required) Example: 1- low_first_reply_time
#^[0-9]+$#(required) Example: 1- medium_first_reply_time
#^[0-9]+$#(required) Example: 1- high_first_reply_time
#^[0-9]+$#(required) Example: 1- urgent_first_reply_time
#^[0-9]+$#(required) Example: 1- low_next_reply_time
#^[0-9]+$#(required) Example: 1- medium_next_reply_time
#^[0-9]+$#(required) Example: 1- high_next_reply_time
#^[0-9]+$#(required) Example: 1- urgent_next_reply_time
#^[0-9]+$#(required) Example: 1- low_customer_wait_time
#^[0-9]+$#(required) Example: 1- medium_customer_wait_time
#^[0-9]+$#(required) Example: 1- high_customer_wait_time
#^[0-9]+$#(required) Example: 1- urgent_customer_wait_time
#^[0-9]+$#(required) Example: 1- low_user_work_time
#^[0-9]+$#(required) Example: 1- medium_user_work_time
#^[0-9]+$#(required) Example: 1- high_user_work_time
#^[0-9]+$#(required) Example: 1- urgent_user_work_time
#^[0-9]+$#(required) Example: 1- timing_type: 1 (required,#calendar_hours|business_hours#)
string(required)
Item ¶
Headers
Content-Type: application/jsonBody
{
"status": "error",
"message": "No conditions were set."
}Headers
Content-Type: application/jsonBody
{
"status": "error",
"message": "Not all condition fields were set."
}Headers
Content-Type: application/jsonBody
{
"status": "error",
"message": "Sla policy does not exist."
}Update viewPUT/sla/[id]
This will update the view.
- title
#^[0-9a-zA-Z ]+$#(required) Example: 1- priority
#^[0-9]+$#(required) Example: 1- low_first_reply_time
#^[0-9]+$#(required) Example: 1- medium_first_reply_time
#^[0-9]+$#(required) Example: 1- high_first_reply_time
#^[0-9]+$#(required) Example: 1- urgent_first_reply_time
#^[0-9]+$#(required) Example: 1- low_next_reply_time
#^[0-9]+$#(required) Example: 1- medium_next_reply_time
#^[0-9]+$#(required) Example: 1- high_next_reply_time
#^[0-9]+$#(required) Example: 1- urgent_next_reply_time
#^[0-9]+$#(required) Example: 1- low_customer_wait_time
#^[0-9]+$#(required) Example: 1- medium_customer_wait_time
#^[0-9]+$#(required) Example: 1- high_customer_wait_time
#^[0-9]+$#(required) Example: 1- urgent_customer_wait_time
#^[0-9]+$#(required) Example: 1- low_user_work_time
#^[0-9]+$#(required) Example: 1- medium_user_work_time
#^[0-9]+$#(required) Example: 1- high_user_work_time
#^[0-9]+$#(required) Example: 1- urgent_user_work_time
#^[0-9]+$#(required) Example: 1- timing_type: 1 (required,#calendar_hours|business_hours#)
string(required)- scheduleID
#^[0-9]+$#(required) Example: 1
Headers
Content-Type: application/jsonBody
{
"type": "result",
"message": "Sla deleted"
}Delete slaDELETE/sla/[id]
This will delete the sla.
Traffic ¶
Index ¶
Get traffic dataGET/traffic
Some explanation about traffic data here.
WaitTime ¶
Get wait times for a given campaignGET/traffic/waittime
- campaign
string(required) Example: 1
NumUsersAvailable ¶
Get number of users available for a given campaignGET/traffic/numusersavailable
- campaign
string(required) Example: 1
Privacy ¶
Dashboard ¶
Privacy settingsGET/privacy/dashboard
Get data on current privacy data in the system
Item ¶
Privacy settingsGET/privacy/[id]
Update privacy policy data removal for brand and channel
- id
string(required) Example: 1
Index ¶
Headers
Content-Type: application/jsonBody
{
"type": "result",
"message": "Privacy setting updated."
}Privacy settingsPUT/privacy
Update privacy policy data removal for brand and channel
Trigger ¶
Get triggers [GET]
This method will fetch the triggers
-
Parameters
- query: 1 (#^[0-9a-zA-Z ]+$#)
- itemStart: 1 (#^[0-9]+$#)
- itemLimit: 1 (#^[0-9]+$#)
Create trigger [POST]
This will create a new trigger
-
Parameters
- name: 1 (required,#^[0-9a-zA-Z-:>+()/Γ« ]+$#)
- type: 1 (required,#on_create|on_update|on_createandupdate#)
-
Response 400 (application/json)
- Headers
- Body {βstatusβ:βerrorβ,βmessageβ:βNo conditions specified.β}
-
Response 400 (application/json)
- Headers
- Body {βstatusβ:βerrorβ,βmessageβ:βNo action specified.β}
-
Response 400 (application/json)
- Headers
- Body {βstatusβ:βerrorβ,βmessageβ:βNot all condition fields were set.β}
-
Response 400 (application/json)
- Headers
- Body {βstatusβ:βerrorβ,βmessageβ:βNot all action fields were set.β}
Item ¶
Headers
Content-Type: application/jsonBody
{
"status": "error",
"message": "No conditions specified."
}Headers
Content-Type: application/jsonBody
{
"status": "error",
"message": "No action specified."
}Headers
Content-Type: application/jsonBody
{
"status": "error",
"message": "Not all condition fields were set."
}Headers
Content-Type: application/jsonBody
{
"status": "error",
"message": "Not all action fields were set."
}Update triggerPUT/trigger/[id]
This method will update the trigger
- name
#^[0-9a-zA-Z-:>+()\/Γ« ]+$#(required) Example: 1- type
#on_create|on_update|on_createandupdate#(required) Example: 1
Get triggerGET/trigger/[id]
This method will fetch the trigger
Headers
Content-Type: application/jsonBody
{
"type": "result",
"message": "Trigger deleted"
}Delete triggerDELETE/trigger/[id]
This will delete the trigger
Form ¶
Index ¶
Get formsGET/form
This method will fetch the forms
- query
#^[0-9a-zA-Z ]+$#(required) Example: 1- itemStart
#^[0-9]+$#(required) Example: 1- itemLimit
#^[0-9]+$#(required) Example: 1
Headers
Content-Type: application/jsonBody
{
"status": "error",
"message": "This brand does not exist."
}Headers
Content-Type: application/jsonBody
{
"type": "result",
"message": "User created and invitation sent to email."
}Create userPOST/form
This will create a new user
- brand_id
#^[0-9]+$#(required) Example: 1- title
#^[a-zA-Z0-9 ]+$#(required) Example: 1
Item ¶
Get formGET/form/[id]
This will get the meta data of a form
Headers
Content-Type: application/jsonBody
{
"type": "result",
"message": "Form updated"
}Edit formPUT/form/[id]
This will edit forms
- brand_id
#^[0-9]+$#(required) Example: 1- title
#^[a-zA-Z0-9 ]+$#(required) Example: 1
Headers
Content-Type: application/jsonBody
{
"type": "result",
"message": "Form deleted"
}Delete formDELETE/form/[id]
This will delete the form.
Campaign ¶
Index ¶
Get campaignsGET/campaign
This method will fetch the campaigns
- query
#^[0-9a-zA-Z ]+$#(required) Example: 1- itemStart
#^[0-9]+$#(required) Example: 1- itemLimit
#^[0-9]+$#(required) Example: 1
Twitter ¶
Account ¶
AccountsGET/twitter/account
Get twitter accounts
- query
#^[0-9a-zA-Z ]+$#(required) Example: 1- itemStart
#^[0-9]+$#(required) Example: 1- itemLimit
#^[0-9]+$#(required) Example: 1
ItemAccount ¶
Get Twitter accountGET/twitter/account/[id]
Get Twitter account
- id
#^(+[0-9]+)$#(required) Example: 1
Headers
Content-Type: application/jsonBody
{
"type": "result",
"message": "Twitter account updated."
}Save Twitter accountPUT/twitter/account/[id]
Save Twitter account
- id
#^([0-9]+)$#(required) Example: 1- brand_id
#^([0-9])+$#(required) Example: 1- title
string(required) Example: 1- import_public_messages
#^[0,1]$#(required) Example: 1- import_private_messages
#^[0,1]$#(required) Example: 1
Headers
Content-Type: application/jsonBody
{
"type": "result",
"message": "Twitter account deleted."
}Delete Twitter accountDELETE/twitter/account/[id]
Delete Twitter account
- id
#^([0-9]+)$#(required) Example: 1
Account ¶
Headers
Content-Type: application/jsonBody
{
"type": "result",
"message": "Account url created"
}Create Twitter accountPOST/twitter/account
Create Twitter account
- brand_id
#^([0-9])+$#(required) Example: 1- title
string(required) Example: 1- import_public_messages
#^[0,1]$#(required) Example: 1- import_private_messages
#^[0,1]$#(required) Example: 1
Userstatus ¶
Index ¶
Get user statusesGET/userstatus
This method will fetch the user statuses
- query
#^[0-9a-zA-Z ]+$#(required) Example: 1- itemStart
#^[0-9]+$#(required) Example: 1- itemLimit
#^[0-9]+$#(required) Example: 1
Item ¶
Get userstatusGET/userstatus/[id]
This will get a userstatus
- id
#^([0-9]+)$#(required) Example: 1
Index ¶
Headers
Content-Type: application/jsonBody
{
"type": "result",
"message": "User status added."
}Create userstatusPOST/userstatus
This will create a new userstatus
- name
#^[0-9a-zA-Z ]+$#(required) Example: 1- warning_time_seconds
#^([0-9]+)$#(required) Example: 1
Item ¶
Headers
Content-Type: application/jsonBody
{
"type": "result",
"message": "User status updated."
}Save userstatusPUT/userstatus/[id]
This will save a userstatus
- id
#^([0-9]+)$#(required) Example: 1- name
#^[0-9a-zA-Z ]+$#(required) Example: 1- warning_time_seconds
#^([0-9]+)$#(required) Example: 1
Headers
Content-Type: application/jsonBody
{
"type": "result",
"message": "User status deleted."
}Delete userstatusDELETE/userstatus/[id]
This will delete a userstatus
- id
#^([0-9]+)$#(required) Example: 1
User ¶
Index ¶
Get usersGET/user
This method will fetch the users
- query
#^[0-9a-zA-Z ]+$#(required) Example: 1- itemStart
#^[0-9]+$#(required) Example: 1- itemLimit
#^[0-9]+$#(required) Example: 1
Headers
Content-Type: application/jsonBody
{
"status": "error",
"message": "This email address already exists in the system."
}Headers
Content-Type: application/jsonBody
{
"status": "error",
"message": "This username already exists in the system."
}Headers
Content-Type: application/jsonBody
{
"type": "result",
"message": "User created and invitation sent to email."
}Create userPOST/user
This will create a new user
- firstname
#^[a-zA-Z ]+$#(required) Example: 1- lastname
#^[a-zA-Z ]+$#(required) Example: 1- name
#^[a-zA-Z0-9.-]+$#(required) Example: 1/^(?!(?:(?:\x22?\x5C[\x00-\x7E]\x22?)|(?:\x22?[^\x5C\x22]\x22?)){255,})(?!(?:(?:\x22?\x5C[\x00-\x7E]\x22?)|(?:\x22?[^\x5C\x22]\x22?)){65,}@)(?:(?:[\x21\x23-\x27\x2A\x2B\x2D\x2F-\x39\x3D\x3F\x5E-\x7E]+)|(?:\x22(?:[\x01-\x08\x0B\x0C\x0E-\x1F\x21\x23-\x5B\x5D-\x7F]|(?:\x5C[\x00-\x7F]))*\x22))(?:\.(?:(?:[\x21\x23-\x27\x2A\x2B\x2D\x2F-\x39\x3D\x3F\x5E-\x7E]+)|(?:\x22(?:[\x01-\x08\x0B\x0C\x0E-\x1F\x21\x23-\x5B\x5D-\x7F]|(?:\x5C[\x00-\x7F]))*\x22)))*@(?:(?:(?!.*[^.]{64,})(?:(?:(?:xn--)?[a-z0-9]+(?:-+[a-z0-9]+)*\.){1,126}){1,}(?:(?:[a-z][a-z0-9]*)|(?:(?:xn--)[a-z0-9]+))(?:-+[a-z0-9]+)*)|(?:\[(?:(?:IPv6:(?:(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){7})|(?:(?!(?:.*[a-f0-9][:\]]){7,})(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){0,5})?::(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){0,5})?)))|(?:(?:IPv6:(?:(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){5}:)|(?:(?!(?:.*[a-f0-9]:){5,})(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){0,3})?::(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){0,3}:)?)))?(?:(?:25[0-5])|(?:2[0-4][0-9])|(?:1[0-9]{2})|(?:[1-9]?[0-9]))(?:\.(?:(?:25[0-5])|(?:2[0-4][0-9])|(?:1[0-9]{2})|(?:[1-9]?[0-9]))){3}))\]))$/iD(required) Example: 1- telephone_number
#^+[0-9]+$#(required) Example: 1- groups
#^[0-9]+$#(required) Example: 1
Item ¶
Headers
Content-Type: application/jsonBody
{
"type": "result",
"message": "User updated"
}Edit userPUT/user/[id]
This will edit user data
Headers
Content-Type: application/jsonBody
{
"type": "result",
"message": "User deleted"
}Delete userDELETE/user/[id]
This will delete the user.
Activate ¶
Headers
Content-Type: application/jsonBody
{
"status": "error",
"message": "All user seats for this account are taken ("
}Headers
Content-Type: application/jsonBody
{
"status": "error",
"message": "Activation too soon after deactivation for this user. This should at least take one week."
}Headers
Content-Type: application/jsonBody
{
"type": "result",
"message": "User activated"
}Activate userPUT/user/activate
This will activate a user.
- id
#^[0-9]+$#(required) Example: 1
Deactivate ¶
Headers
Content-Type: application/jsonBody
{
"type": "result",
"message": "User deactivated"
}Deactivate userPUT/user/deactivate
This will deactivate a user.
- id
#^[0-9]+$#(required) Example: 1
ReserveUserForLiveChannel ¶
Reserve userPOST/user/reserveuserforlivechannel
Reserve the user for a live action
- type
#^telephone|livechat+$#(required) Example: 1- sessionID
#^[a-zA-Z0-9]+$#(required) Example: 1- server
#^[a-zA-Z0-9.]+$#(required) Example: 1
GetUserViews ¶
Get user viewsGET/user/getuserviews
Retreives the selected views of a user
- userID
#^[0-9]+$#(required) Example: 1- itemStart
#^[0-9]+$#(required) Example: 1- itemLimit
#^[0-9]+$#(required) Example: 1
UpdateUserView ¶
Headers
Content-Type: application/jsonBody
{
"type": "result",
"message": "View setting updated."
}Update user viewPUT/user/updateuserview
This endpoint provides functionality to switch a users view on and off
- userID
#^[0-9]+$#(required) Example: 1- viewID
#^[0-9]+$#(required) Example: 1- newValue
#[0|1]$#(required) Example: 1
ProfilePicture ¶
Headers
Content-Type: application/jsonBody
{
"type": "result",
"message": "Profile picture updated. Reload window: F5"
}Update user profile picturePOST/user/profilepicture
This endpoint enables you to upload a profile picture for the user
- userID
#^[0-9]+$#(required) Example: 1- image
string(required) Example: 1
Download profile pictureGET/user/profilepicture
This endpoint enables you to download a user profile picture from a given user id
- userID
#^[0-9]+$#(required) Example: 1
MaxChats ¶
Update maximum chats for a userPUT/user/maxchats
- maxChats
#^[0-9]+$#(required) Example: 1- userID
#^[0-9]+$#(required) Example: 1- state
#^[0,1]$#(required) Example: 1
Brand ¶
Index ¶
Get brandsGET/brand
This method will fetch the brands
- query
#^[0-9a-zA-Z ]+$#(required) Example: 1- itemStart
#^[0-9]+$#(required) Example: 1- itemLimit
#^[0-9]+$#(required) Example: 1
Headers
Content-Type: application/jsonBody
{
"type": "result",
"message": "Brand added."
}Create brandPOST/brand
This method will create a brand
- name
#^[0-9a-zA-Z ]+$#(required) Example: 1- default_email_signature
string(required) Example: 1- external_gui_url
string(required) Example: 1
Item ¶
Get brandGET/brand/[id]
This method will get a brand
- id
#^([0-9]+)$#(required) Example: 1
Headers
Content-Type: application/jsonBody
{
"type": "result",
"message": "Brand updated."
}Update brandPUT/brand/[id]
This method will update a brand
- id
#^([0-9]+)$#(required) Example: 1- name
#^[0-9a-zA-Z ]+$#(required) Example: 1- default_email_signature
string(required) Example: 1- external_gui_url
string(required) Example: 1
Headers
Content-Type: application/jsonBody
{
"type": "result",
"message": "Brand deleted."
}Delete brandDELETE/brand/[id]
This method will delete a brand
- id
#^([0-9]+)$#(required) Example: 1
Ticket ¶
Index ¶
Headers
Content-Type: application/jsonBody
{
"status": "error",
"message": "View was not found."
}Return ticketsGET/ticket
Return all tickets with the option to apply a view specify name π
- applyView
#^[0-9a-zA-Z]+$#(required) Example: 1- query
string(required) Example: 1- itemStart
#^[0-9]+$#(required) Example: 1- itemLimit
#^[0-9]+$#(required) Example: 1
Item ¶
Get ticketGET/ticket/[id]
Get all the data of one ticket
Headers
Content-Type: application/jsonBody
{
"type": "result",
"message": "Ticket was deleted."
}Delete ticketDELETE/ticket/[id]
Delete all the data of one ticket
- id
#^[0-9]+$#(required) Example: 1
TicketSummary ¶
Get ticket summaryGET/ticket/ticketsummary
Get most important ticket data and first few messages
- ticketID
#^[0-9]+$#(required) Example: 1
Index ¶
Create an empty ticketPOST/ticket
Creates a new empty ticket with data defaults. Ticket data can be added and edited trough other ticket, message and form endpoints. This endpoint will return the new ticket id as response.
Assign ¶
Headers
Content-Type: application/jsonBody
{
"type": "result",
"message": "assigned"
}Assign ticketPOST/ticket/assign
Assign the ticket to a user or group
- id
#^u[0-9]+|g[0-9]+|me|unassigngroup|unassignuser|unassignboth$#(required) Example: 1- ticketID
#^[0-9]+$#(required) Example: 1
SetStatus ¶
Headers
Content-Type: application/jsonBody
{
"type": "result",
"message": "Ticket status is updated."
}Set ticket statusPOST/ticket/setstatus
Sets the status of the ticket
- status
#^(new|open|pending|holding|solved|closed)$#(required) Example: 1- ticketIDs
#^[0-9]+$#(required) Example: 1
SetPriority ¶
Headers
Content-Type: application/jsonBody
{
"type": "result",
"message": "Ticket priority is updated."
}Set ticket priorityPOST/ticket/setpriority
Sets the priority of the ticket
- priority
#^(low|medium|high|urgent)$#(required) Example: 1- ticketIDs
#^[0-9]+$#(required) Example: 1
TriggerNewTicketCustomer ¶
Headers
Content-Type: application/jsonBody
{
"type": "result",
"message": "Customer ticket functionality has been initialised."
}Start customer ticket functionalityPOST/ticket/triggernewticketcustomer
Initialise some functionality when customer creates ticket, like starting SLA
- ticketID
#([0-9]+)$#(required) Example: 1
TriggerCustomerSendsMessage ¶
Headers
Content-Type: application/jsonBody
{
"type": "result",
"message": "Customer ticket functionality has been initialised."
}Start customer ticket functionalityPOST/ticket/triggercustomersendsmessage
Initialise some functionality when customer adds a new message to the ticket, for continuing SLA for instance
- ticketID
#([0-9]+)$#(required) Example: 1
SlaSummary ¶
Get SLA metricsGET/ticket/slasummary
Gets the SLA metrics that are currently active or if not active are already achieved
- ticketID
#([0-9]+)$#(required) Example: 1
Customer ¶
Index ¶
Get customersGET/customer
This method will fetch the customers π
- query
#^[0-9a-zA-Z ]+$#(required) Example: 1- itemStart
#^[0-9]+$#(required) Example: 1- itemLimit
#^[0-9]+$#(required) Example: 1
SearchByPrimaryExternalId ¶
Search CustomerPOST/customer/searchbyprimaryexternalid
This method will search for a customer by your customer id. Primary id is your customer or order id on which Omnidesk will link the tickets. π
- primary_id
#^[0-9a-zA-Z-]+$#(required) Example: 1- brand_id
#^[0-9]+$#(required) Example: 1
Index ¶
Headers
Content-Type: application/jsonBody
{
"status": "error",
"message": "Invalid mail address"
}Headers
Content-Type: application/jsonBody
{
"status": "error",
"message": "No channel id specified (for instance phone number or email)."
}Headers
Content-Type: application/jsonBody
{
"status": "error",
"message": "Invalid mail address"
}Headers
Content-Type: application/jsonBody
{
"status": "error",
"message": "This customer address already exists."
}Headers
Content-Type: application/jsonBody
{
"type": "result",
"message": "User created and channel linked."
}Headers
Content-Type: application/jsonBody
{
"status": "error",
"message": "This address is already linked to this customer. Nevertheless this action linked the ticket to the existing customer."
}Headers
Content-Type: application/jsonBody
{
"status": "error",
"message": "This customer address already exists."
}Headers
Content-Type: application/jsonBody
{
"type": "result",
"message": "Address added to the customer."
}Create customerPOST/customer
This method will create a new customer. Primary id is the customer id or order id of your brand on which Omnidesk will link the tickets. Brand id can be found in your application at Settings and then Brands. Channel id options are email, telephone, facebook, twitter Customer linked channel is the contact point to be linked, when channel id is email, a valid customer linked channel would be an email address. Ticket id you may also provide ticket_id which will link the provided ticket to the customer
- customer_link_channel
#^+[0-9]+$#(required) Example: 1- primary_id
string(required) Example: 1- brand_id
#^[0-9]+$#(required) Example: 1- firstname
#^[a-zA-Z.- ]+$#(required) Example: 1- lastname
#^[a-zA-Z0-9.- ]+$#(required) Example: 1- channel_id
#^([0-9]+|email|telephone|facebook|twitter)$#(required) Example: 1
AddChannelOnly ¶
Headers
Content-Type: application/jsonBody
{
"status": "error",
"message": "You should at least set a customer id or a primary id."
}Headers
Content-Type: application/jsonBody
{
"status": "error",
"message": "Customer not found by primary id."
}Headers
Content-Type: application/jsonBody
{
"status": "error",
"message": "This customer address already exists."
}Headers
Content-Type: application/jsonBody
{
"type": "result",
"message": "Channel added to the customer."
}Headers
Content-Type: application/jsonBody
{
"type": "result",
"message": "Customer deleted."
}Headers
Content-Type: application/jsonBody
{
"status": "error",
"message": "Could not delete the customer."
}Add channel to customerPOST/customer/addchannelonly
This method will add another channel endpoint to the customer. Optionally you can provide a brand_id and primary id instead of customer id.
- customer_id
#^[0-9]+$#(required) Example: 1- primary_id
string(required) Example: 1- brand_id
#^[0-9]+$#(required) Example: 1- extra_email
#^[0-9]+$#(required) Example: 1- extra_telephone
#^[0-9]+$#(required) Example: 1- extra_twitter
#^[0-9]+$#(required) Example: 1- extra_facebook
#^[0-9]+$#(required) Example: 1- id
#^[0-9]+$#(required) Example: 1
ItemChannel ¶
Headers
Content-Type: application/jsonBody
{
"type": "result",
"message": "Linked channel deleted."
}Headers
Content-Type: application/jsonBody
{
"status": "error",
"message": "Could not delete the linked channel."
}Delete customer channelDELETE/customer/channel/[id]
This method will delete a channel endpoint of one customer. π₯
- id
#^[0-9]+$#(required) Example: 1
TimelineByCustomerExternalID ¶
Headers
Content-Type: application/jsonBody
{
"status": "error",
"message": "Brand not found."
}Headers
Content-Type: application/jsonBody
{
"status": "error",
"message": "Customer not found."
}Get customer timelineGET/customer/timelinebycustomerexternalid
Get the timeline from the customer by your primary ID external ID. π
- brand_id
#^[0-9]+$#(required) Example: 1- external_id
#^[0-9]+$#(required) Example: 1
ItemPurgeData ¶
Headers
Content-Type: application/jsonBody
{
"type": "result",
"message": "Customer data purged."
}Headers
Content-Type: application/jsonBody
{
"status": "error",
"message": "You should at least set a customer id or an external id."
}Headers
Content-Type: application/jsonBody
{
"status": "error",
"message": "Customer not found by primary id."
}Headers
Content-Type: application/jsonBody
{
"type": "result",
"message": "Event created."
}Purge customer dataDELETE/customer/purgedata/[id]
Removes customer and also its tickets, etc from the application π₯
- id
#^[0-9]+$#(required) Example: 1- customer_id
#^[0-9]+$#(required) Example: 1- external_id
string(required) Example: 1- brand_id
#^[0-9]+$#(required) Example: 1- initiated_by
string(required) Example: 1- message
string(required) Example: 1- source_url
string(required) Example: 1
Group ¶
Index ¶
Get groupsGET/group
This method will fetch the groups
- query
#^[0-9a-zA-Z ]+$#(required) Example: 1- itemStart
#^[0-9]+$#(required) Example: 1- itemLimit
#^[0-9]+$#(required) Example: 1
Headers
Content-Type: application/jsonBody
{
"status": "error",
"message": "This group already exists in the system."
}Headers
Content-Type: application/jsonBody
{
"type": "result",
"message": "Group created."
}Create groupPOST/group
This will create a new group
- name
#^[a-zA-Z0-9]+$#(required) Example: 1- permissions
#^[A-Z_]+$#(required) Example: 1
Item ¶
Get groupGET/group/[id]
This will get the group.
Headers
Content-Type: application/jsonBody
{
"status": "error",
"message": "This group does not exist in the system."
}Headers
Content-Type: application/jsonBody
{
"type": "result",
"message": "Group updated"
}Update groupPUT/group/[id]
This will update the group.
- id
#^[0-9]+$#(required) Example: 1- name
#^[a-zA-Z0-9]+$#(required) Example: 1- permissions
#^[A-Z_]+$#(required) Example: 1
Headers
Content-Type: application/jsonBody
{
"type": "result",
"message": "Group deleted"
}Delete groupDELETE/group/[id]
This will delete the group.
- query
#^[0-9a-zA-Z]+$#(required) Example: 1- itemStart
#^[0-9]+$#(required) Example: 1- itemLimit
#^[0-9]+$#(required) Example: 1
Chat ¶
NotifyUserNewChatEvent ¶
Headers
Content-Type: application/jsonBody
{
"status": "error",
"message": "Could not retreive active chat session, create one first."
}Headers
Content-Type: application/jsonBody
{
"type": "result",
"message": "Event sent."
}Notify userPOST/chat/notifyusernewchatevent
Notify the user of a new chat event
- chatServer
#^[a-zA-Z0-9.:\/]+$#(required) Example: 1- chatSessionID
#^[a-zA-Z0-9]+$#(required) Example: 1- event
#^startedtyping|stoppedtyping|expandedchat|minimizedchat$#(required) Example: 1
SessionInfoByTicketID ¶
Headers
Content-Type: application/jsonBody
{
"status": "error",
"message": "Could not retreive active chat session, create one first."
}Get chat session infoGET/chat/sessioninfobyticketid
Get chat session info
- ticketID
#^[0-9]+$#(required) Example: 1
NotifyUserVisited ¶
Headers
Content-Type: application/jsonBody
{
"status": "error",
"message": "Could not retreive active chat session, create one first."
}Headers
Content-Type: application/jsonBody
{
"type": "result",
"message": "Event sent."
}Notify user visitedPOST/chat/notifyuservisited
Notify the user of a new chat url visited
- chatServer
#^[a-zA-Z0-9.:\/]+$#(required) Example: 1- chatSessionID
#^[a-zA-Z0-9]+$#(required) Example: 1- url
string(required) Example: 1
AddAttachment ¶
Headers
Content-Type: application/jsonBody
{
"status": "error",
"message": "File not set."
}Headers
Content-Type: application/jsonBody
{
"type": "result",
"message": "Attachment uploaded."
}Headers
Content-Type: application/jsonBody
{
"status": "error",
"message": "Could not retreive specified session."
}Headers
Content-Type: application/jsonBody
{
"type": "result",
"message": "Session ended."
}Headers
Content-Type: application/jsonBody
{
"type": "result",
"message": "nok, check allowed domains for the chat"
}Headers
Content-Type: application/jsonBody
{
"type": "result",
"message": "nok, check ip blacklist"
}Headers
Content-Type: application/jsonBody
{
"type": "result",
"message": "ok"
}Headers
Content-Type: application/jsonBody
{
"status": "error",
"message": "Could not retreive specified session."
}Headers
Content-Type: application/jsonBody
{
"type": "result",
"message": "ok"
}Headers
Content-Type: application/jsonBody
{
"status": "error",
"message": "Could not retreive specified session."
}Headers
Content-Type: application/jsonBody
{
"type": "result",
"message": "ok"
}Add attachmentsPOST/chat/addattachment
Add one or more attachments to the session
- chatServer
#^[a-zA-Z0-9.:\/]+$#(required) Example: 1- chatAccountToken
#^[a-zA-Z0-9]+$#(required) Example: 1- origin
#^[a-zA-Z0-9.-]+$#(required) Example: 1- ip
string(required) Example: 1- typing
#true|false#(required) Example: 1- chatSessionID
#^[a-zA-Z0-9]+$#(required) Example: 1
Token ¶
Get tokensGET/chat/token
Get chat tokens
- query
#^[0-9a-zA-Z ]+$#(required) Example: 1- itemStart
#^[0-9]+$#(required) Example: 1- itemLimit
#^[0-9]+$#(required) Example: 1
ItemToken ¶
Get chat tokenGET/chat/token/[id]
Get a specific chat token
- id
#^([0-9]+)$#(required) Example: 1
Headers
Content-Type: application/jsonBody
{
"type": "result",
"message": "Token settings updated."
}Update chat tokenPUT/chat/token/[id]
Chat settings are applied to chat tokens
- id
#^([0-9]+)$#(required) Example: 1- brand_id
#^([0-9])+$#(required) Example: 1- ask_email
#^([0-1])$#(required) Example: 1- ask_phone_number
#^([0-1])$#(required) Example: 1- default_campaign
string(required) Example: 1- schedule_id
#^([0-9]+|null)$#(required) Example: 1- closed_message
string(required) Example: 1- hide_when_closed
#^([0-1])$#(required) Example: 1- hide_when_no_agents_available
#^([0-1])$#(required) Example: 1- show_team
#^([0-1])$#(required) Example: 1- show_profile_picture
#^([0-1])$#(required) Example: 1
Message ¶
Index ¶
Create messagePOST/message
Creates a new message
- ticketID
#^[0-9]+$#(required) Example: 1- type
#^[0-9]+|email|telephone|facebook|twitter|facebook_pm|twitter_pm|telephone_outbound|chat|whatsapp$#(required) Example: 1- message
string(required) Example: 1
Event ¶
Headers
Content-Type: application/jsonBody
{
"status": "error",
"message": "Customer not found."
}Headers
Content-Type: application/jsonBody
{
"type": "result",
"message": "Event created."
}Create eventPOST/message/event
Create a event message: for instance a new order
- brand_id
#^[0-9]+$#(required) Example: 1- primary_id
string(required) Example: 1- ticket_id
#^[0-9]+$#(required) Example: 1- message
string(required) Example: 1
Email ¶
Address ¶
Get mail addressesGET/email/address
Get the mail addresses
- query
#^[0-9a-zA-Z ]+$#(required) Example: 1- itemStart
#^[0-9]+$#(required) Example: 1- itemLimit
#^[0-9]+$#(required) Example: 1
ItemAddress ¶
Get mail addressGET/email/address/[id]
Get one specific mail address
- id
#^(+[0-9]+)$#(required) Example: 1
Headers
Content-Type: application/jsonBody
{
"type": "result",
"message": "Email address updated."
}Save mail addressPUT/email/address/[id]
Save one specific mail address
- id
#^([0-9]+)$#(required) Example: 1- brand_id
#^([0-9])+$#(required) Example: 1string(required) Example: 1- reply_email
string(required) Example: 1- is_primary
#^[0,1]$#(required) Example: 1
Headers
Content-Type: application/jsonBody
{
"type": "result",
"message": "Email address deleted."
}Delete mail addressDELETE/email/address/[id]
Delete one specific mail address
- id
#^([0-9]+)$#(required) Example: 1
Address ¶
Headers
Content-Type: application/jsonBody
{
"type": "result",
"message": "Email address created."
}Create mail addressPOST/email/address
Create one specific mail address
- brand_id
#^([0-9])+$#(required) Example: 1string(required) Example: 1- reply_email
string(required) Example: 1- is_primary
#^[0,1]$#(required) Example: 1
Channel ¶
Index ¶
Get channelsGET/channel
This method will fetch the channels
- query
#^[0-9a-zA-Z ]+$#(required) Example: 1- itemStart
#^[0-9]+$#(required) Example: 1- itemLimit
#^[0-9]+$#(required) Example: 1
Facebook ¶
Account ¶
AccountsGET/facebook/account
Get facebook accounts
- query
#^[0-9a-zA-Z ]+$#(required) Example: 1- itemStart
#^[0-9]+$#(required) Example: 1- itemLimit
#^[0-9]+$#(required) Example: 1
ItemAccount ¶
Get Facebook AccountGET/facebook/account/[id]
Get Facebook account
- id
#^([0-9]+)$#(required) Example: 1
Headers
Content-Type: application/jsonBody
{
"type": "result",
"message": "Facebook account updated."
}Save Facebook ccountPUT/facebook/account/[id]
Save Facebook account
- id
#^([0-9]+)$#(required) Example: 1- brand_id
#^([0-9])+$#(required) Example: 1- name
string(required) Example: 1
Headers
Content-Type: application/jsonBody
{
"type": "result",
"message": "Facebook account deleted."
}Delete Facebook accountDELETE/facebook/account/[id]
Delete Facebook account
- id
#^([0-9]+)$#(required) Example: 1
Account ¶
Headers
Content-Type: application/jsonBody
{
"status": "error",
"message": "Could not find a page with the selected page id."
}Headers
Content-Type: application/jsonBody
{
"type": "result",
"message": "Account created"
}Create Facebook accountPOST/facebook/account
Create Facebook account
- brand_id
#^([0-9])+$#(required) Example: 1- name
string(required) Example: 1- page_id
#^([0-9])+$#(required) Example: 1
Flow ¶
ParsedFlow ¶
Get parsed flowGET/flow/parsedflow
Gives instructions to live channel
Setting ¶
ExcludeGroupingAddress ¶
Exclude grouping addressGET/setting/excludegroupingaddress
This function provides functionality to get the addresses excluded from grouping
- query
#^[0-9a-zA-Z ]+$#(required) Example: 1- itemStart
#^[0-9]+$#(required) Example: 1- itemLimit
#^[0-9]+$#(required) Example: 1
Headers
Content-Type: application/jsonBody
{
"type": "result",
"message": "Address exclusion added."
}Exclude grouping addressPOST/setting/excludegroupingaddress
This function provides functionality to create the addresses excluded from grouping
- brand_id
string(required) Example: 1- channel_id
string(required) Example: 1
Headers
Content-Type: application/jsonBody
{
"type": "result",
"message": "Address exclusion deleted."
}Exclude grouping addressDELETE/setting/excludegroupingaddress
This function provides functionality to delete the addresses excluded from grouping
Statistics ¶
Options ¶
Statistics optionsGET/statistics/options
Get the options available to the statistics showQuery and showData
ShowQuery ¶
Statistics queryGET/statistics/showquery
Create a query based on selected facts, groupBys and filters
- facts
string(required) Example: 1- groupBy
string(required) Example: 1- filters
string(required) Example: 1
ShowData ¶
Headers
Content-Type: application/jsonBody
{
"status": "error",
"message": "You selected multiple time filters. Please select only one."
}Headers
Content-Type: application/jsonBody
{
"status": "error",
"message": "One time filter is required."
}Headers
Content-Type: application/jsonBody
{
"status": "error",
"message": "Maximum allowed range for the time filter is 60 days."
}Headers
Content-Type: application/jsonBody
{
"status": "error",
"message": "Group by "
}Headers
Content-Type: application/jsonBody
{
"status": "error",
"message": "Filter "
}Headers
Content-Type: application/jsonBody
{
"status": "error",
"message": "Fact not found in available options."
}Headers
Content-Type: application/jsonBody
{
"status": "error",
"message": "The following data was expected:"
}Headers
Content-Type: application/jsonBody
{
"status": "error",
"message": "The following data was expected:"
}Headers
Content-Type: application/jsonBody
{
"status": "error",
"message": "Invalid combination of params."
}Statistics dataGET/statistics/showdata
Get statistics data based on selected facts, groupBys and filters
- facts
string(required) Example: 1- groupBy
string(required) Example: 1- filters
string(required) Example: 1- filterTimeFrom
#^(\d{4})-(\d{2})-(\d{2}) (\d{2}):(\d{2}):(\d{2})$#(required) Example: 1- filterTimeTo
#^(\d{4})-(\d{2})-(\d{2}) (\d{2}):(\d{2}):(\d{2})$#(required) Example: 1
Generated by aglio on 07 May 2018