Skip to content
Supabase logo

Connectors / Data and analytics · HTTP Connector

Supabase integration and API

Create a project, run a query and create a function in Supabase. Connect Supabase to the rest of your data and analytics stack with Tray.ai.

What can you do with Supabase on Tray.ai?

Supabase is a Postgres development platform that gives each project a database, authentication, file storage, edge functions and an auto-generated API. Tray.ai connects to Supabase through the HTTP Connector, so your workflows can call the Supabase API alongside the rest of your stack.

  • Run a query on a Supabase database each morning and post the results to your team chat.
  • Apply a migration to a Supabase project after a release is approved in your deployment pipeline.
  • Pause a project in Supabase when a test environment has been idle past its expiry date.
Connects through
HTTP Connector
Authentication
A bearer token or OAuth 2.0
Base URL
https://api.supabase.com

Set it up

Connect Supabase to Tray.ai

Each step uses Supabase's own API details, from its documentation.

Save Supabase's API token

Save the token Supabase issues as a Tray.ai authentication. The HTTP Client sends it as a bearer token on every call. The token stays out of the workflow and out of the logs.

Point the HTTP Client at the API

Add an HTTP Client step and use https://api.supabase.com as the base URL. Or paste a cURL example from Supabase's API docs, and Tray.ai fills in the method, URL, and headers.

Start with “List projects”

It's one of 22 documented actions, under Projects. The response comes back as data the next step can map into your other apps.

Hand it to an AI agent

Wrap “Create a project” and “Get a project” in workflows, and Tray.ai's Agent Gateway for MCP publishes them as governed tools Claude and other AI agents can call.

Workflows to build with Supabase

Connect Supabase with HubSpot, GitHub, Slack and Snowflake

Each one uses actions and events from Supabase's own API documentation.

Copy new Supabase signups to HubSpot

When

On a schedule

Then

  1. Run a query for users created since the last run
  2. Create or update each contact in HubSpot

With HubSpot

Apply Supabase migrations when a GitHub pull request merges

When

A pull request is merged in GitHub

Then

  1. Apply a migration with the merged SQL
  2. List migration history to confirm it ran
  3. Post the result to the engineering channel in Slack

With GitHub and Slack

Load Supabase table data into Snowflake

When

On a schedule

Then

  1. Run a query for rows changed since the last run
  2. Load the rows into a matching table in Snowflake

With Snowflake

Apps you can build on Supabase data

Internal tools your team can build with an AI assistant, each one using Supabase calls from its API documentation.

Project overview

Lists projects across organizations and lets an admin pause or restart a project.

Migration history report

Shows each project's migration history and branches so engineers can review database changes.

Data lookup tool

Runs a saved query against a project database and shows the results to support staff.

Give your AI agents Supabase tools

Build an MCP server on Supabase in Agent Gateway and choose which actions your agents can call. Every call runs with access control and an audit trail. How Agent Gateway works

  • List projects
  • List organizations
  • Run a query
  • List functions
  • List secrets
  • List branches
  • Create a project
  • Get a project

What the Supabase API covers

6 resources and 22 documented actions, each one a call the HTTP Connector can make from a Tray.ai workflow. Connecting it takes a few clicks: here's how.

Projects

  • List projects
  • Create a project
  • Get a project
  • Pause a project
  • Restart a project

Organizations

  • List organizations
  • Create an organization
  • List organization members

Database

  • Run a query
  • Apply a migration
  • List migration history

Edge Functions

  • List functions
  • Create a function
  • Deploy a function
  • Update a function

Secrets

  • List secrets
  • Bulk create secrets
  • Get project API keys

Branches

  • List branches
  • Create a branch
  • Merge a branch
  • Reset a branch

Checked against Supabase's own documentation on 2026-10-22

supabase.com/docs/reference/api/introduction

Frequently asked questions

What can a Tray.ai workflow do in Supabase?

The Supabase API documents 22 actions across 6 resources (Projects, Organizations, Database, Edge Functions, Secrets, Branches). For example: List projects; List organizations; Run a query. A workflow can make any documented call through the HTTP Connector.

How does Tray.ai authenticate with Supabase?

The Supabase API uses a bearer token and OAuth 2.0. You save it once as a Tray.ai authentication, and the HTTP Connector adds it to every request.

See Supabase working against your stack.

We'll walk through a tailored demo with your systems plugged in.

Great, a couple more details

This helps us connect you with the right person. Optional, and you can skip it.