Genesys Cloud - Developer Community!

 View Only

Sign Up

PA HTTPS token POST request failed - 400 invalid request

  • 1.  PA HTTPS token POST request failed - 400 invalid request

    Posted 08-21-2025 03:41

    Hi 
    I tried to get a token for Power Automate flow through HTTP request and is is failed.

    Even I copied all headers from the Postman request, I finally got 400 Bad Request.

    {
        "uri""https://login.mypurecloud.de/oauth/token",
        "method""POST",
        "headers": {
            "Content-Type""application/x-www-form-urlencoded",
            "Authorization""*sanitized*",
            "Host""login.mypurecloud.de",
            "User-Agent""PostmanRuntime/7.45.0",
            "Accept""*/*",
            "Cache-Control""no-cache",
            "Postman-Token""ab4c2b41-1810-466f-badd-40f47ce90c8f",
            "Accept-Encoding""gzip, deflate, br",
            "Connection""keep-alive",
            "Content-Length""29"
        },
        "body": {
            "grant_type""client_credentials"
        }
    }

    resposnse

    {
        "statusCode"400,
        "headers": {
            "Date""Thu, 21 Aug 2025 07:17:57 GMT",
            "Connection""keep-alive",
            "Critical-Origin-Trial""Tpcd",
            "Inin-Correlation-Id""050b3eb1-8121-4c88-9f5d-b629aab9c666",
            "Origin-Trial""AtWQEwyDlNfIOSHxLw0HDwj2F38os7a+UMa0YpbQp8YiCbBu9AZboWA2yOa5gR3qjlOseISNzTY3h10YYs+gawwAAABfeyJvcmlnaW4iOiJodHRwczovL215cHVyZWNsb3VkLmRlOjQ0MyIsImZlYXR1cmUiOiJUcGNkIiwiZXhwaXJ5IjoxNzM1MzQzOTk5LCJpc1N1YmRvbWFpbiI6dHJ1ZX0=",
            "Strict-Transport-Security""max-age=31536000",
            "Vary""Accept-Encoding",
            "Content-Type""application/json",
            "Content-Length""28"
        },
        "body": {
            "error""invalid_request"
        }

    }

    Is somebody successful with a token request for PA ? 


    #Integrations
    #PlatformAPI

    ------------------------------
    Robert Klusek
    na
    ------------------------------