Korixo
Korixo12mo ago

API Call

Where do I store the headers (key and host) for an API Call node in BuildShip? Send me an example screenshot maybe? #api #apicall #rapidapi
13 Replies
Korixo
KorixoOP12mo ago
@harini let me know
Gaurav Chadha
Gaurav Chadha12mo ago
HI @Korixo, You can directly add the key and host directly like this by modifying the headers in the code of the API call node. Ensure to pass their values too to make it work.
No description
Korixo
KorixoOP12mo ago
cool, thanks!
Crypto Rhyno
Crypto Rhyno3mo ago
I'm a newbie, can any share steps on how to config Moralis APIs into BuildShip?
AI Support
AI Support3mo ago
AI Support Bot Information
<@708392862454382702> you can react on the relevant answer (message) with a ✅ in this thread when you think it has been solved, by the bot or by a human! Anyone can react on this message with a ❌ if the GPT bot is unhelpful or hallucinating answers. Please note: Team members will review and answer the questions on best efforts basis.
AI Support
AI Support3mo ago
AI Response
I couldn't find specific instructions on configuring Moralis APIs with BuildShip from the files you provided. It's possible that this information isn't present in the uploaded documents. To proceed, I would recommend checking BuildShip's official documentation or reaching out to their support team for detailed guidance on integrating Moralis APIs. If you have any further questions or need assistance, feel free to ask!
BuildShip AI Support
Powerhouse
Powerhouse2mo ago
Correct me if I'm wrong, but should I have values in the Authorization and the API fields?
No description
Gaurav Chadha
Gaurav Chadha2mo ago
according to your modified node logic, the value should go in API key as it will directly map to headers.
Powerhouse
Powerhouse2mo ago
So the value for the Authorization stays empty and the key will go in the API Key field? Is there anyone that has successfully connected the Rapid API in buildship. Im having tons of issues setting it up. 100 different ways to set it up and not one has worked for me. I just need to see how to do it one time then im good.
Gaurav Chadha
Gaurav Chadha2mo ago
@Powerhouse You can simply copy the code from the Rapid API curl and use AI to generate a node for it using AI, refer to the image for sample values, ensure to add the code in the additional fields, this should generate a node for you with correct headers (so you won't have to manually handle it)
No description
No description
Powerhouse
Powerhouse2mo ago
No such luck. The address is still not being passed to the API call from the request. "undefined". I have literally tried 101 different ways. If I hard code the address, it works.
Powerhouse
Powerhouse2mo ago
What is the variable if I'm trying to pull the address from the request?
No description
Powerhouse
Powerhouse2mo ago
I have tried many versions of this: const address = ctx?.body?.args?.address; AI has not figured that out as of yet...