How to Use Clipdrop API in Thunkable?

Hello Everyone!
I want to use Clip Drop as my Image Editing API.
I do not know how to use This API in Thunkable.
This isn’t easy in thunkable for me as it is not a URL API. Please Help.
Please give me What header and parameters should be used.


Uploading: Capture.PNG…

I’m not 100% sure what you mean by ‘not a URL API’. You still need to:

  1. Create an API in Thunkable
  2. Use the specific clipdrop endpoint URL in the API config menu for your new API
    https://clipdrop-api.co/cleanup/v1 < this is the clipdrop inpainting endpoint for example
  3. Set the API key in Thunakble to match your clipdrop API key
  4. Set the API’s body to match the inputs required by the endpoint
    in the above case it’s the url of an image file and a mask file
  5. Make a post request

Specifically to answer your question though:

Headers:
Authorization: Bearer {YOUR API KEY HERE}
Content-Type: application/json

Parameters:
none

2 Likes

Can You Please Please Give me a screenshot of the image OF BLOCKS and Webapi?

Look you’re going to need to meet us halfway here and do some leg work too.
Here’s a start but if you post what you have right now then we’ll be able to help more:


2 Likes

When I run The Code, The text shows that I have provided no API Key.



Your Authorization should be “Bearer” followed by a space followed by your API key. As an example, if your API key was 34R5T, then your Authorization string would be Bearer 34R5T.

Make sure there are no extra spaces or punctuation. In your screenshot (as well as the screenshot above it), there are a colon : and brackets { } that should not be there.

2 Likes

Still, It is Showing No API Provided
ertret
ertert

Are these under the Headers section?

ertert

Have you been able to get this API call working in Postman or another 3rd-party API client? That’s a good first step before working with an API in Thunkable.

Yes, These are In Header Section.

Why my Authentication was showing Wrong?

the documentation gives this example

curl -X POST https://clipdrop-api.co/cleanup/v1
-H ‘x-api-key: YOUR_API_KEY’
-F ‘image_file=@image.jpg’
-F ‘mask_file=@mask.png’
-o result.png

so your header block should be as shown below:
image

3 Likes

So where will Be the Image URL?

use the same way you did , using set web_api body

1 Like

Still, it shows an Error
tyutyutyutyutyuytu


Please Help.

you were supposed to use the header block like i showed

image

you changed it

1 Like

Still showing an Error.
eryeryer

you didnt change the header block - it’s still the same

here’s yours:
image

here’s mine
image

2 Likes

Also After changing
uilguil

Can you please give me the Project Link so I can Check It Out?

your header block contains ‘generate json block from object’ - please take that out

1 Like