API url syntax question

Hello, I am working on integrating my ai agents with my website. I am using the API for that via a supabase db. I read the doc on API, but I cannot find the answer to my problem. What is the syntax of the API URL?

Thanks

Hi @AIFusionCoven,

Could you clarify what you’re looking to store in the database?

Here are the endpoints:
POST: https://api.mindstudio.ai/developer/v2/apps/run
GET: https://api.mindstudio.ai/developer/v2/apps/load

You can also use the built-in API Request Builder to generate sample snippets:

Hello Alex. Thanks for the info. I am using the APi to run the ai agents from my website via supabase, and then return the output to the user on the website. Let me know if that makes a difference in the syntax, or pose an issue. Sincerely,

sorry for the double tap, but where do I insert the Agent ID in the syntax when calling the agent from the website via API?

Hi @AIFusionCoven,

Thank you for the details, though I’m not sure I fully understand.

Are you using an Edge Function in Supabase to trigger AI Agents in MindStudio? Can you please walk me through your setup?

Hello Alex, I do use a edge function in supabase to call the api to run agents. Currently, the api url looks like this: https://api.mindstudio.com/agents/dcb5854e-df93-4e6d-b2d5-c4259e44cd18/run

Hi @AIFusionCoven,

Thank you for sharing the URL!

Since you’re using Supabase’s Edge Function, you’ll need to call one of the API endpoints below instead of using the direct URL to your Agent:

Please update the Example Usage code snippet in the Help Doc below and use the relevant endpoint based on what you’re trying to do:

@Alex_MindStudio Thanks for the reply. Does it mean that I need to create a request for each agent since the vars are listed? I have 18 agents that I need to integrate into my website, and from my review of your answer, and the code, it would appear that you cannot have one request that can handle all agents based on ID, but also need to be customized for vars. Am I correct?

Hi @AIFusionCoven,

Yes, you got it right. If you have 18 different Agents to trigger, you’ll need to make 18 separate API calls, one for each Agent.

Let me know if you have any questions.

thanks