Application/x-www-form-urlencoded

{
“grant_type”: “client_credentials&client_id=<client_id>&client_secret=<client_secret>”
}

put this in the body

and remove params

change body type to form data and use the 3 params

so remove body, only params, and body type=form data?

yea try that

Ok change body back to JSON and use this in the body

{
“grant_type”: “client_credentials”,
“client_id”: “<client_id>”,
“client_secret”: “<client_secret>”
}

and if that don’t work

create 1 param that’s empty and the value

grant_type=client_credentials&client_id={client_id}&client_secret={client_secret}

I did both and got the same response

the empty param was a query string?

You can try it this way, to see if it works, but I advise against it for production

https://test.api.amadeus.com/v1/security/oauth2/token?[data]

value
grant_type=client_credentials&client_id={client_id}&client_secret={client_secret}

Tried just tried that but still no luck

god doesn’t want you to have access to this

Ugh tell me about it. Im surprised bubble doesn’t have more clear instructions on different types of API’s and how to connect them. Hopefully they use some of their $100mm round on explaining stuff more.

Thanks for all your effort!

1 Like

try one more thingy

go back to form-data

create an empty param with a value of
grant_type=client_credentials&client_id={client_id}&client_secret={client_secret}

replace {client_id} and {client_secret} with the actual values and excluding {}

I tried it but still no luck :frowning:

I’ll keep trying

if you end up figuring it out let me know. i’m too invested now to not care

Do you want to use an API call to get the token? Or do you want to use custom auth?

How would you do it?