Legacy Dev Forum Posts

 View Only

Sign Up

  • 1.  Send email using API

    Posted 06-05-2025 18:13

    DaviniaGarridoLope | 2018-02-20 15:10:20 UTC | #1

    Hello,

    Is there any API which allows sending an outbound mail from PureCloud receiving as input parameters the mail receiver, the subject and the body?

    Thanks in advance.


    tim.smith | 2018-02-20 15:13:58 UTC | #2

    You can use the Conversations APIs to respond to ACD routed emails. PureCloud is not a generic outbound email server for arbitrarily sending emails, however.


    DaviniaGarridoLope | 2018-02-20 15:38:40 UTC | #3

    Hello Tim, thank you for your quick response. The thing is that there is an API that create an email conversation POST /api/v2/conversations/emails , but I can not find the option to send it automatically. Now I am using this in the body:

    { "queueId": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXX", "provider": "PureCloud Email", "toAddress": "XXX@XXX.com", "subject": "Test", "direction": "OUTBOUND", "textBody": "Email test" }

    Thanks in advance.


    tim.smith | 2018-02-20 15:52:07 UTC | #4

    That's not actually email. See: https://developer.mypurecloud.com/api/rest/v2/conversations/third-party-object-routing.html


    anon39326996 | 2018-02-20 15:58:18 UTC | #5

    As Tim mentioned, PureCloud is not to be used as a generic outbound email server. However, in order to send an outbound email you have to first do a POST to /api/v2/conversations/emails with the direction, queueId and the toAddress. Then to send the actual email, you can use this API.


    system | 2018-03-23 15:58:30 UTC | #6

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


    This post was migrated from the old Developer Forum.

    ref: 2520