Supabase O Auth API

OAuth social login provider endpoints.

GitHub OpenAPI
Business capability
Identity & Access Management BC-620.20

Operations 2

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /authorize Start OAuth login with a provider · Initiate OAuth login #
Ask an LLM
“How do I send a user to an OAuth provider to sign in?”
“Can I request specific scopes when starting OAuth login?”
Tell an agent
Start OAuth login with {provider}.
Send the user to {provider} for login with scopes {scopes}.
GET /callback Complete the OAuth login callback · OAuth callback #
Ask an LLM
“What happens after the user returns from the OAuth provider?”
“Where does the OAuth callback exchange the code for tokens?”
Tell an agent
Complete the OAuth callback for code {code}.
Exchange the OAuth authorization code {code} and state {state} for tokens.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/supabase:supabase-oauth-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

supabase-oauth-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Supabase Auth OAuth API
  description: The Supabase Auth API (based on GoTrue) is a JWT-based API for managing users and issuing access tokens. It provides endpoints for user signup, signin with email/password, magic links, one-time passwords, OAuth social login, token refresh, user management, multi-factor authentication, and SAML-based single sign-on. When deployed on Supabase, the server requires an apikey header containing a valid Supabase-issued API key.
  version: 2.0.0
  contact:
    name: Supabase Support
    url: https://supabase.com/support
  termsOfService: https://supabase.com/terms
servers:
- url: https://{project_ref}.supabase.co/auth/v1
  description: Supabase Project Auth Server
  variables:
    project_ref:
      description: Your Supabase project reference ID
      default: your-project-ref
security:
- apiKeyAuth: []
tags:
- name: OAuth
  description: OAuth social login provider endpoints.
paths:
  /authorize:
    get:
      operationId: authorizeOAuth
      summary: Initiate OAuth login
      description: Redirects the user to the specified OAuth provider's authorization page. After the user grants access, they are redirected back to the application with an authorization code or tokens.
      tags:
      - OAuth
      parameters:
      - name: provider
        in: query
        required: true
        schema:
          type: string
          enum:
          - google
          - github
          - gitlab
          - bitbucket
          - azure
          - facebook
          - apple
          - twitter
          - discord
          - twitch
          - spotify
          - slack
          - linkedin
          - notion
          - zoom
          - keycloak
          - workos
          - figma
          - kakao
          - fly
        description: The OAuth provider to authenticate with
      - name: redirect_to
        in: query
        schema:
          type: string
          format: uri
        description: URL to redirect to after authentication
      - name: scopes
        in: query
        schema:
          type: string
        description: Space-separated list of OAuth scopes to request
      responses:
        '302':
          description: Redirect to OAuth provider
        '400':
          description: Bad request - invalid provider
  /callback:
    get:
      operationId: oauthCallback
      summary: OAuth callback
      description: Receives the OAuth callback from the provider after user authorization. Exchanges the authorization code for tokens and creates or updates the user account.
      tags:
      - OAuth
      parameters:
      - name: code
        in: query
        schema:
          type: string
        description: Authorization code from the OAuth provider
      - name: state
        in: query
        schema:
          type: string
        description: State parameter for CSRF protection
      responses:
        '303':
          description: Redirect to application with session
        '400':
          description: Invalid callback parameters
components:
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: apikey
      description: Supabase project API key (anon key for public operations, service_role key for admin operations).
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: JWT access token obtained from a successful authentication.
externalDocs:
  description: Supabase Auth Documentation
  url: https://supabase.com/docs/guides/auth