Help with with setting up Rest API

Gold is to use our Rest API to Create file placeholder and upload files to our system using File Dropzone component and a button to trigger the upload.

I have never used API before and this is my first time, I'm not a developer.

I hop that there are somebody that can help me with a step by step "guideline for dummys" to setup API.

API base url: https://files.api.mycompany.com/v1

  • To establish valid communication with the API a consumer must obtain a token (OAUTH2) by using the /oath2/token endpoint, providing values for client_id, client_secret and grant_type=client_credentials. A successful request will return a valid token that can be used for interacting with the other endpoints.
  • The API will return data in JSON format.

I have a ClientID and ClientSecret.


And get the Token when using this page.

But how do I set this up in ReTool - Resources?
This is what I have




What am i doing wrong?
-Thore

Hello @Thore!

Are you getting an error message when you test the resource? If so, can you share a screen shot of what the error is saying?

From a quick glance nothing looks incorrect. You might need to put the client ID and Client Secret into the corresponding fields in screen shots 3 and 4.

Does the Authentication flow appear in the app when you run a query to this REST Resource?

Check out our docs here for some examples as well.

The issue might be related to the authentication set up but I just need more details on what error you are getting when you test the resource :sweat_smile: