API Connexion

Hello,

I’m a beginner with External APIs, I’m having trouble connecting them. Here is the request that I would like to do HTTP :

curl --request GET
–url 'https://api.apimo.pro/agencies/{agency_id}/properties
–user 'provider:token

I always get the same Error 400 : {“status”:400, “title”: “Bad Request”, “detail”: “Please provide the token”}

It seems so simple haha but I can’t…
Thanks for your help.

Hi,

You are trying to use user as the header key value but the user in the example,

is not a key. It is an argument for the tool. (CURL)

You have to use basic authentication, which means that you have to send the header in base64 encoded format with header key Authorization.

To learn more you can search for Basic Auth. If you want to get an idea about what you have to do check this post,

I hope it helps.

2 Likes