Admin/Create Connector
POST /v1/admin/connectors

Create Connector

Base URL https://api.{cluster}.{platform}.voiger.io
Request · cURL
curl -X POST https://api.{cluster}.{platform}.voiger.io/v1/admin/connectors \
  -H "Cookie: sid=$VOIGER_SESSION" \
  -H "x-workspace-code: your-workspace-code" \
  -H "x-csrf-token: $CSRF_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
       "connector": {
         "name": "Main Support Line",
         "type": "phone",
         "value": "+94000000000",
         "team_ids": [
           "ce55fcb6-084d-4b31-bd86-f6dd2195ed6a",
           "ab55fcb6-084d-4b31-bd86-f6dd2195ed6a"
         ],
         "targets": [
           {
             "type": "queue",
             "value": {
               "id": "3f55fcb6-084d-4b31-bd86-f6dd2195ed6a"
             },
             "timeslots": {
               "1": [
                 "09:00-12:00",
                 "13:00-18:00"
               ]
             }
           }
         ]
       }
     }'

Parameters

x-workspace-code string required in header
x-csrf-token string required in header

Response

connector▾
object
id
string
name
string Connector name (optional)
type
string
value
string
team_ids
array
created_at
string
updated_at
string
targets▾
array
type
string
value
null | object Null when type hangup
timeslots
null | object