# \[SOLVED 2/13/24 2:30 PM EDT\] Connect Thunkable with Clarifai API

**URL:** <https://community.thunkable.com/t/solved-2-13-24-2-30-pm-edt-connect-thunkable-with-clarifai-api/2829675>\
**Category:** Questions about Thunkable X\
**Created:** [February 11, 2024, 3:10pm UTC](https://community.thunkable.com/t/solved-2-13-24-2-30-pm-edt-connect-thunkable-with-clarifai-api/2829675 "2024-02-11T15:10:21Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![peakyvendl5x](https://avatars.discourse-cdn.com/v4/letter/p/71c47a/32.png) [@peakyvendl5x](https://community.thunkable.com/u/peakyvendl5x)\
**Post date:** [February 11, 2024, 3:10pm UTC](https://community.thunkable.com/t/solved-2-13-24-2-30-pm-edt-connect-thunkable-with-clarifai-api/2829675/1 "2024-02-11T15:10:21Z")

</div>

Hi All, we are trying to connect Thunkable with Clarifai API to use general-image-recognition model. Please help us to define a proper JSON input.

Currently we get following error: Malformed or invalid request

We used below web api configuration:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/5/e509e9e9145c8af6ce981e9cc22904b1d3038a5f.png)

Bloks we are using look as follow:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/a/0aa82bc97109c11f028806b90717564eb87fc491.png)

Any thoughts on this?

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [February 11, 2024, 4:42pm UTC](https://community.thunkable.com/t/solved-2-13-24-2-30-pm-edt-connect-thunkable-with-clarifai-api/2829675/2 "2024-02-11T16:42:14Z")

</div>

Without knowing more about the API, my guess is that you need a list of objects rather than a list of nested objects.

Can you provide a link to the API documentation?

What is the value of app variable name? You can display it in a text input and then copy and paste it into a post here. You may want to hide the authentication values in it.

If you use that value in a third-party client such as Postman, are you able to get a successful response from the API?

If not, how have you accessed the API outside of Thunkable? That’s a useful first step before trying to build the blocks to make it work in Thunkable.

---

<div class="post-metadata">

**Author:** ![peakyvendl5x](https://avatars.discourse-cdn.com/v4/letter/p/71c47a/32.png) [@peakyvendl5x](https://community.thunkable.com/u/peakyvendl5x)\
**Post date:** [February 11, 2024, 5:02pm UTC](https://community.thunkable.com/t/solved-2-13-24-2-30-pm-edt-connect-thunkable-with-clarifai-api/2829675/3 "2024-02-11T17:02:54Z")

</div>

This is the value of app variable name: `{"inputs":[{"data":{"image":{"url":"https://imgur.com/a/sAlAVz2"}}}]}`

This is the API documentation: [Clarifai API Basics | Clarifai Guide](https://docs.clarifai.com/api-guide/api-overview/)

We will test other third party client to connect with our APIs. We didn’t do it so far.

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [February 11, 2024, 7:12pm UTC](https://community.thunkable.com/t/solved-2-13-24-2-30-pm-edt-connect-thunkable-with-clarifai-api/2829675/4 "2024-02-11T19:12:31Z")

</div>

This is the JSON structure:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/9/799bc75b7c26f8786e4123c57cba32f99747132b.png)

Does that look like what is expected in the documentation?

---

<div class="post-metadata">

**Author:** ![peakyvendl5x](https://avatars.discourse-cdn.com/v4/letter/p/71c47a/32.png) [@peakyvendl5x](https://community.thunkable.com/u/peakyvendl5x)\
**Post date:** [February 13, 2024, 7:30pm UTC](https://community.thunkable.com/t/solved-2-13-24-2-30-pm-edt-connect-thunkable-with-clarifai-api/2829675/5 "2024-02-13T19:30:05Z")

</div>

Thank you! Postman was very helpful.

This is the correct JSON form:

{  
“inputs”: [  
{  
“data”: {  
“image”: {  
“url”: “[https://res.cloudinary.com/[....].jpg](https://res.cloudinary.com/%5B....%5D.jpg)”  
}  
}  
}  
]  
}

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)\
**Post date:** [May 13, 2024, 7:30pm UTC](https://community.thunkable.com/t/solved-2-13-24-2-30-pm-edt-connect-thunkable-with-clarifai-api/2829675/6 "2024-05-13T19:30:46Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
