Channel
These endpoints can be used to manage custom channels.
Creates a new channel.
Most parameters are optional but depending on the presence of other parameters.
This endpoint requires the CHANNEL_CUD permission.
multipart/form-datatype: ^[a-zA-Z0-9 \.\-\_]+$
Example channeltype: ^[a-zA-Z0-9\-\_]+$ = 'chat'
notetype: ^[a-zA-Z0-9\.\:\/\-?&=]+$
https://api.myexampleapp.com/omnidesk/api/messagetype: string = ''
type: boolean = 'false'
Successful response
POST /api/v2/channel HTTP/1.1
Host: {{base_url}}
Authorization: apikey YOUR_SECRET_TOKEN
Content-Type: multipart/form-data
Accept: */*
Content-Length: 176
{
"name": "Example channel",
"icon": "note",
"custom_channel_endpoint": "https://api.myexampleapp.com/omnidesk/api/message",
"custom_channel_secret": "text",
"include_signature": "text"
}Successful response
Returns all the data of this channel.
This endpoint requires the CHANNEL_CUD permission.
type: number
1Successful response
GET /api/v2/channel/{id} HTTP/1.1
Host: {{base_url}}
Authorization: apikey YOUR_SECRET_TOKEN
Accept: */*
Successful response
Updates an existing channel
This endpoint requires the CHANNEL_CUD permission.
name: Name of the custom channel.icon: The icon the custom channel uses.custom_channel_endpoint: The endpoint Omnidesk POSTs a message to when the agent sends an outbound message.custom_channel_secret: The optional secret that gets used for request to yourcustom_channel_endpointvaluecustom_channel_warning_en: Optional warning.custom_channel_warning_nl: Optional warning.include_signature: Include the signature in outbound messages for this channel.custom_channel_available_in_quick_ticket: Make this channel available in quick ticket.
type: number
13type: ^[a-zA-Z0-9 \.\-\_]+$
Example channeltype: ^[a-zA-Z0-9\-\_]+$ = 'chat'
notetype: ^[a-zA-Z0-9\.\:\/\-?&=]+$
https://api.myexampleapp.com/omnidesk/api/messagetype: string = ''
type: ^[0-9a-zA-Z\-\_\:\;\>\+\(\)\/\!\?\,\.\#\@\$\*\&À-ȕ\' ]+$ = ''
type: ^[0-9a-zA-Z\-\_\:\;\>\+\(\)\/\!\?\,\.\#\@\$\*\&À-ȕ\' ]+$ = ''
type: boolean = 'false'
type: boolean = 'false'
Successful response
PUT /api/v2/channel/{id} HTTP/1.1
Host: {{base_url}}
Authorization: apikey YOUR_SECRET_TOKEN
Content-Type: multipart/form-data
Accept: */*
Content-Length: 296
{
"name": "Example channel",
"icon": "note",
"custom_channel_endpoint": "https://api.myexampleapp.com/omnidesk/api/message",
"custom_channel_secret": "text",
"custom_channel_warning_en": "text",
"custom_channel_warning_nl": "text",
"include_signature": "text",
"custom_channel_available_in_quick_ticket": "text"
}Successful response
Deletes the provided channel.
This endpoint requires the CHANNEL_CUD permission.
type: number
Successful response
DELETE /api/v2/channel/{id} HTTP/1.1
Host: {{base_url}}
Authorization: apikey YOUR_SECRET_TOKEN
Accept: */*
Successful response
Creates a inbound custom channel message.
Most parameters are optional but depending on the presence of other parameters.
This endpoint requires the MESSAGE_CREATE permission.
multipart/form-datatype: ^[0-9]+$
type: ^[0-9]+$
type: string
type: string=''
type: string=''
type: string=''
type: ^[0-9]+$ = 0
Successful response
POST /api/v2/channel/customChannelMessage HTTP/1.1
Host: {{base_url}}
Authorization: apikey YOUR_SECRET_TOKEN
Content-Type: multipart/form-data
Accept: */*
Content-Length: 126
{
"ticketID": "text",
"channelID": "text",
"message": "text",
"title": "text",
"toAddress": "text",
"fromAddress": "text",
"userID": "text"
}Successful response
Last updated