Skip to main content
The First Step
February 23, 2024
Question

Receiving OAU-250 Unsupported Grant Type Getting OAUTH Token from Code

  • February 23, 2024
  • 3 replies
  • 358 views

We are trying to convert a code to a token using the OAUTH flow and we are getting OAU-250 Unsupported Grant Type.

We verified the format of the request using this documentation page: https://developers.ringcentral.com/guide/authentication/auth-code-flow

We are passing "authorization_code" for grant_type in the query parameters.

Thanks for any help you can provide.

    3 replies

    gschallyThe First StepAuthor
    The First Step
    February 23, 2024

    Also, the documentation states grant_type should be a parameter, we tried it as a Query parameter, we also tried passing JSON in the POST body. Which should it be? I'm running Fiddler and I'm very sure of what I'm passing. Thanks.

    PhongVu
    Community Manager
    Community Manager
    February 23, 2024

    Show me the exact post call you made and how you pass the body in a form data (not a json object)

    Check this API reference.

    gschallyThe First StepAuthor
    The First Step
    February 23, 2024

    Thanks, the documentation page I had called them post parameters, your reference called them form data. When I added them as form data it worked. I think this has tripped me up before with the API documentation.