API help? Missing parameters error, but parameters are stated

Hello,

I’m trying to set up an API using the vendor’s documentation, but I continue to get the same error regardless of what I try. I’m hoping someone might see what it is that I’m doing wrong.

Here’s the sample call:

This is how I have it set up in bubble:

This is the error I get stating that the parameters aren’t there:

Any idea what I’m doing wrong?

Thanks for any help!
George

1 Like

I think you need to change Body Type from JSON to Form-data

1 Like

Hi @williamtisdale

Thanks for the suggestion. I tried that before. Here’s what I ended up with:

Here’s the error: Now it says the header content-type is missing, but it isn’t.

You cannot use form data. You need to use json, but add parameters and not a json body
Or in json body, use parameters like client_id=<client_id>&client_secret=<client_secret> …

1 Like

Also, you should use custom oauth token as auth type if you don’t need to provide dynamic value.
Bubble will manage auth for you and you will just need to add call

1 Like

@Jici ,
How do I do that?
What do I change or add below?

Anyone else have any suggestions?

Thanks,
George

You need to follow information here
https://aps.autodesk.com/en/docs/oauth/v2/tutorials/get-2-legged-token/
If you look correctly, you don’t but client id and secret, but use Authorization header with Basic auth from client id and secret