# Pinecone api call, embedding is a array but when put into http it's a string

**URL:** <https://community.make.com/t/pinecone-api-call-embedding-is-a-array-but-when-put-into-http-its-a-string/75198>\
**Category:** Questions\
**Tags:** arrays, api\
**Created:** [March 15, 2025, 3:38am UTC](https://community.make.com/t/pinecone-api-call-embedding-is-a-array-but-when-put-into-http-its-a-string/75198 "2025-03-15T03:38:59Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![csfautomate](https://avatars.discourse-cdn.com/v4/letter/c/f08c70/32.png) [@csfautomate](https://community.make.com/u/csfautomate)\
**Post date:** [March 15, 2025, 3:38am UTC](https://community.make.com/t/pinecone-api-call-embedding-is-a-array-but-when-put-into-http-its-a-string/75198/1 "2025-03-15T03:38:59Z")

</div>

having issues with trying to paste values from a pinecone embedding into the HTTP API call.  
it’s result from the embedding is a array but when it’s entered into my API call, it’s a string,

 ![{1D15C8AB-9807-4C88-82A1-A46896CB2224}](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/6/a/6a7091371dd146539637be3d0bed166186d494c5.png)

yet when using a json verifying tool, it’s a verified json

 ![{9B592914-D1C4-4CBF-9C18-93F1C72F0EFC}](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/9/9/99503e771d7038d9f50f33380e1d57db26555475.png)

current error i keep getting

 ![{BECF9CE1-3E52-4397-839B-824402B86E4C}](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/7/f/7fed20a0f04eb83e505500a6a40dae7e252fff17.png)

---

<div class="post-metadata">

**Author:** ![csfautomate](https://avatars.discourse-cdn.com/v4/letter/c/f08c70/32.png) [@csfautomate](https://community.make.com/u/csfautomate)\
**Post date:** [March 15, 2025, 3:40am UTC](https://community.make.com/t/pinecone-api-call-embedding-is-a-array-but-when-put-into-http-its-a-string/75198/2 "2025-03-15T03:40:14Z")

</div>

i should also note when i minify or beautify it works fine hard coded in

---

<div class="post-metadata">

**Author:** ![samliew](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/samliew/32/13327_2.png) [@samliew](https://community.make.com/u/samliew)\
**Post date:** [March 15, 2025, 3:46am UTC](https://community.make.com/t/pinecone-api-call-embedding-is-a-array-but-when-put-into-http-its-a-string/75198/3 "2025-03-15T03:46:09Z")

</div>

Welcome to the Make community!

You need to convert the array into JSON string format first before you can map it into another JSON string.

To do this, you can try using the JSON “ **Transform to JSON** ” module —

> Transforms any object to JSON.

For more information, see [https://www.make.com/en/integrations/json](https://www.make.com/en/integrations/json), and [https://www.make.com/en/help/app/json](https://www.make.com/en/help/app/json) in the help centre.

Alternatively, you can use the built-in replace function.

For more information, do view these similar questions previously asked by other community members, which may answer your question:

- [Setting a Array to Json - #2 by samliew](https://community.make.com/t/setting-a-array-to-json/74533/2)
- etc.

Hope this helps! Let me know if there are any further questions or issues.

— @samliew

P.S.: Investing some effort into the [Make Academy](https://academy.make.com) will save you lots of time and frustration using Make.

---

<div class="post-metadata">

**Author:** ![csfautomate](https://avatars.discourse-cdn.com/v4/letter/c/f08c70/32.png) [@csfautomate](https://community.make.com/u/csfautomate)\
**Post date:** [March 15, 2025, 3:52am UTC](https://community.make.com/t/pinecone-api-call-embedding-is-a-array-but-when-put-into-http-its-a-string/75198/4 "2025-03-15T03:52:43Z")

</div>

brilliant. this solved it.

---

<div class="post-metadata">

**Author:** ![samliew](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/samliew/32/13327_2.png) [@samliew](https://community.make.com/u/samliew)\
**Post date:** [March 15, 2025, 4:06am UTC](https://community.make.com/t/pinecone-api-call-embedding-is-a-array-but-when-put-into-http-its-a-string/75198/5 "2025-03-15T04:06:09Z")

</div>

No problem, really glad I could help! Thank you for providing all the requested information — that allowed me to come to a solution quickly.

1. If anyone has a new question in the future, please **start a new thread**. This makes it easier for others with the same problem to search for the answers to specific questions, and you are more likely to receive help since newer questions are monitored closely.

2. The [Make Community guidelines](https://community.make.com/t/make-community-the-ultimate-topic/11682) encourages users to try to **mark helpful replies as solutions** to help keep the Community organized.

This marks the topic as solved, so that:

- others can _save time_ when catching up with the latest activity here, and
- allows others to _quickly jump to the solution_ if they come across the same problem

To do this, simply **click the checkbox** at the bottom of the post that answers your question:  
 ![Screenshot_2023-10-04_161049](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/5/d/5d9b26fbef0fd7385a34084f61cd5b9165786f42.png)

3. Don’t forget to like and **bookmark** this topic so you can get back to it easily in future!

Here are some useful links and guides you can use to learn more on how to use the Make platform, apps, and app modules. I found these useful when I was learning Make, and hope they might benefit you too —

### Getting Started

- [Help Centre](https://www.make.com/en/help) | [Tutorials](https://www.make.com/en/help/tutorials.html) – Make “Manual”
- [Make Academy](https://academy.make.com) – Basics 101: Learn Make and get certified

### Help Centre Basics

- [Mapping](https://www.make.com/en/help/mapping/mapping) – What is mapping? What can I map?
- [Mapping with arrays](https://www.make.com/en/help/mapping/mapping-arrays) – How to map items in an array
- [Aggregate an array for mapping complex fields](https://www.make.com/en/help/tools/flow-control#customizing-the-output)
- **Date Format** : [tokens for `parseDate`](https://www.make.com/en/help/functions/tokens-for-date-time-parsing) | [tokens for `formatDate`](https://www.make.com/en/help/functions/tokens-for-date-time-formatting)
- [HTTP modules](https://www.make.com/en/help/tools/http) – Make a request, Get (download) a file
- [Webhooks](https://www.make.com/en/help/tools/webhooks) – Error Handling, Responding to webhooks

### Articles & Videos

- [Router Magic Formula](https://www.youtube.com/watch?v=4Q-5BsCtJu4) - YouTube
- [Error Handlers in Make](https://www.youtube.com/playlist?list=PLRE9E-rAD8U10mx2TRs54Nq1XJDdK9Kx4) - YouTube playlist
- [Getting started with OpenAI](https://community.make.com/t/getting-started-with-openai-gpt-3-and-make/7796) - How to setup and use OpenAI (ChatGPT) in Make
- [How to use Regex in Make](https://community.make.com/t/how-to-use-regex-in-make/202) - How to use pattern matching to extract the text you want
- [Webhooks – Make Academy](https://academy.make.com/courses/IntermediateC04) – tutorial on how to use Webhooks

Hope this helps! Let me know if there are any further questions or issues.

— @samliew

P.S.: Investing some effort into the [Make Academy](https://academy.make.com) will save you lots of time and frustration using Make.

---

<div class="post-metadata">

**Author:** ![Make\_Bot](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/make_bot/32/14661_2.png) [@Make\_Bot](https://community.make.com/u/Make_Bot)\
**Post date:** [March 29, 2025, 4:01am UTC](https://community.make.com/t/pinecone-api-call-embedding-is-a-array-but-when-put-into-http-its-a-string/75198/6 "2025-03-29T04:01:42Z")

</div>

This topic was automatically closed because it's resolved or inactive. Please, start a new topic.


