Define outbound email address when create queue

Hi team,

I'm creating queues through post /api/v2/routing/queues and using this body:

{
"name": "QueueName",
"division": {
"id": "e738b4fd-a548....",
"name": "Division"
},
"emailInQueueFlow": {
"id": "30792656-a4......",
"name": "InqueueEmail"
},
"cannedResponseLibraries": {
"libraryIds": [
"5bc83c2c-0708-4..."
],
"mode": "SelectedOnly",
"outboundEmailAddress": {
"domain": {
"id": "domain.mypurecloud.region",
"name": "domain.mypurecloud.region"
},
"route": {
"fromName": "CCare",
"pattern": "ccare",
"name": "ccare",
"fromEmail": "ccare@domain.mypurecloud.region"
}
}
}

I received a 200 OK but when check the queue, is created without define the outbound email address.

Any idea what is missing to define it correctly?

Best regards

Hi,

You need to reference the route with its Id that is associated with the queue as an outbound email.
Example:

POST /api/v2/routing/queues
{
  "name": "queue_with_email",
  "division": {
    "id": "<id>"
  }, 
 "outboundEmailAddress": {
    "domain": {
      "id": "<domain_name>"
    },
    "route": {
       "allowMultipleActions": false,
	   "autoBcc": [],	  
	   "historyInclusion": "Optional",
	   "id": "23ada625-2022-4d63-aacd-ff23e37107a8",  # <==== Don't omit this
	   "priority": 0
    }
  }
}

The email to associate to the queue must exist prior to the queue.

Hope this helps,

Regards,
V.P.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.