Two main ways to connect an API to Rork
Environment Variables:
Environment Variables are Rorks native support for API’s without needing to connect to a backend like Supabase. It allows the users to just enter in thier api keys and get instant access to the api.

After that prompt Rork to use the edge function.
Supaabase Edge Function:
Connect Supabase:
Provide Rork with the prompt saying connect “Supabase to the app” and including the Project URL and Public Anon key. Then navigate to edge functions:


Then, in Supabase, click Deploy New Function:




Troubleshooting:
This method requires a lot more trial and error:
- Data is not being parsed, keep reprompting till it works.
- Edge function keeps failing; you may need to rewrite it a few times.
- Invalid api key, you mistyped the api key, or you need to redeploy your edge function.