Quickstart
This guide will help you make your first API call to Switchyard.Prerequisites
- Access to the Switchyard admin dashboard
- A user account with appropriate permissions
- Your Supabase project credentials (for direct API access)
Get started with the Switchyard API in minutes
# 1. Get a token from Supabase
curl -X POST 'https://your-project.supabase.co/auth/v1/token?grant_type=password' \
-H "apikey: YOUR_ANON_KEY" \
-H "Content-Type: application/json" \
-d '{"email": "user@example.com", "password": "password"}'
# 2. Use the access_token in API calls
curl 'https://api.switchyard.run/admin/products' \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"
curl 'https://api.switchyard.run/admin/products?limit=10' \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"