These docs are for v1.2. Click to read the latest docs for v1.4.

Comunidade

Ask a Question
Back to All

Token Request: invalid_request error

Ao fazer a requisição:

curl --location --request POST 'https://id.sandbox.btgpactual.com/oauth2/token?code=kDRQZPAWX{...}&redirect_uri=http://0.0.0.0:5089/api/callback&grant_type=authorization_code'
--header 'Authorization: Basic YWQ5NGE5YTgtMTE2ZS00YTJ{...}'
--header 'Cookie: sessionId=bc41bfd1-a609-48fc-b1a6-bcbeed4c3220'

Estou recebendo o erro:

{"error_description":"[A047301] The token request does not contain any request parameters.","error":"invalid_request","error_uri":"https://docs.authlete.com/#A047301"}

O que deve ser feito para corrigir o erro?