-
Finally got my code to reach step 3 and getting the bearer token. I pass over the query parameters as suggested: {
"grant_type": "authorization_code",
"client_id": "ownerapi",
"code": "my_auth_code",
"code_verifier": "my_code_verifier",
"redirect_uri": "https://auth.tesla.com/void/callback"
} and i get back 400 Unauthorized client with the message "the client id is not authorized". Has anyone hit anything like this and if so what was the way through? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
ah, the docs say the fields above are 'request parameters' so I assumed it meant send then as the query params like the initial requests. But they should be sent as actual POST body payload fields. My bad |
Beta Was this translation helpful? Give feedback.
ah, the docs say the fields above are 'request parameters' so I assumed it meant send then as the query params like the initial requests. But they should be sent as actual POST body payload fields. My bad