Legacy Dev Forum Posts

 View Only

Sign Up

Okta API Authentication Error

  • 1.  Okta API Authentication Error

    Posted 06-05-2025 19:22

    SeowLengNg | 2022-05-09 17:36:31 UTC | #1

    Hi,

    I need to generate Okta token using following credentials with Genesys Data Action:

    clientid clientsecret scope grant_type

    I have created the data action as below:

    However, i'm getting following errors:

    { "message": "The request could not be understood by the server due to malformed syntax.", "code": "bad.request", "status": 400, "messageParams": {}, "contextId": "8da5b55c-2952-4732-bf40-89aea673df64", "details": [ { "errorCode": "ACTION.REMOTEENDPOINT" } ], "errors": [ { "message": "REST call for action execute failed. Message: Request to backend service failed. Response from web service: {\"error\":\"invalidrequest\",\"errordescription\":\"The token request must specify a 'granttype'. Valid values: [<REDACTED>]\"} [8da5b55c-2952-4732-bf40-89aea673df64]", "code": "BAD_REQUEST", "status": 400, "messageParams": {}, "details": [], "errors": [] } ] }

    Can you please advise how should i configure my grant_type & scope value?

    I have tried configured requestTemplate with "granttype =clientcredentials" as below, but i still hitting error of "scope" value missing?

    Your advise would really appreciated.

    Thanks!

    Best Regards, Charlene


    Jason_Mathison | 2022-05-09 18:40:58 UTC | #2

    Hi Charlene,

    See if this thread gets you going in the right direction: https://developer.genesys.cloud/forum/t/how-to-add-form-data-in-purecloud-action-request/5307

    --Jason


    SeowLengNg | 2022-05-10 03:26:53 UTC | #3

    Thanks a lot Jason!

    My issue resolved. :)

    Best regards, Charlene


    system | 2022-06-10 03:27:11 UTC | #4

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