Legacy Dev Forum Posts

 View Only

Sign Up

Problem creating web services POST request

  • 1.  Problem creating web services POST request

    Posted 06-05-2025 18:43

    Armands_Bunkovskis1 | 2021-11-15 19:15:04 UTC | #1

    Hi! Having problems creating POST web services data action in Genesys Cloud. Request to be sent is like this: Headers: Authorization: Bearer APIKEYXXX Content-Type: application/json

    Body: { "from": "xxx", "to": "+yyy", "text": "Hello, world!", "messagingprofileid": "zzzz" }

    When sent from Postman everything is OK, but when configured in GC like this:

    Respone is that : "REST call for action execute failed. Message:Request to backend service failed. Response from web service: error code: 1020 [77a2f0b1-958f-445a-84e9-93fdee053f39]", "code": "NOT_AUTHORIZED", "status": 403,

    What should be done differently with authorization?

    Thanks


    Jason_Mathison | 2021-11-15 19:43:56 UTC | #2

    The first thing to check is at https://help.mypurecloud.com/articles/troubleshoot-the-data-actions-integrations/ the web services tab, then the first option, " Custom action fails for unexpected reason"

    --Jason


    Armands_Bunkovskis | 2021-11-15 19:52:50 UTC | #3

    Yes, I tried to add that header.


    Jason_Mathison | 2021-11-18 02:31:39 UTC | #4

    About the only other suggestion I have is to look at the postman console to see exactly what is actually being sent to your endpoint. Postman can quietly perform formatting that Data Actions will not.

    If that doesn't help then I recommend opening a case with support to dig deeper into this issue.

    --Jason


    system | 2021-12-16 20:22:41 UTC | #5

    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: 12655