Skip to main content

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)

Authentication

Switchyard uses Supabase Auth for authentication. There are two main ways to authenticate:

Option 1: Session-based (Admin UI)

When logged into the admin dashboard, your session cookie is automatically included with requests.

Option 2: Bearer Token (API/Mobile)

For programmatic access, authenticate with Supabase and use the JWT:

Your First API Call

Let’s fetch the list of products:

Next Steps

Authentication Deep Dive

Learn about roles, permissions, and service accounts

API Reference

Explore all available endpoints