# Supabase integrations: projects and database

> 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.

**Canonical page:** https://tray.ai/connectors/supabase-integrations/
**Categories:** Data and analytics
**Connects through:** HTTP Connector

## Overview

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.

## Use cases

### Projects

Read and create projects in Supabase from any Tray.ai workflow. The Supabase API covers calls such as list projects and create a project.

- List projects
- Create a project
- Get a project

### Organizations

Read and create organizations in Supabase from any Tray.ai workflow. The Supabase API covers calls such as list organizations and create an organization.

- List organizations
- Create an organization
- List organization members

### Database

Read database in Supabase from any Tray.ai workflow. The Supabase API covers calls such as run a query and apply a migration.

- Run a query
- Apply a migration
- List migration history

### Edge Functions

Read, create, and update edge functions in Supabase from any Tray.ai workflow. The Supabase API covers calls such as list functions and create a function.

- List functions
- Create a function
- Deploy a function

### Secrets

Read secrets in Supabase from any Tray.ai workflow. The Supabase API covers calls such as list secrets and bulk create secrets.

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

### Branches

Read and create branches in Supabase from any Tray.ai workflow. The Supabase API covers calls such as list branches and create a branch.

- List branches
- Create a branch
- Merge a branch

## Challenges Tray.ai solves

### Keeping Supabase credentials out of logs

A raw API call usually means pasting a key or token into the request, where it ends up in step inputs, logs, and screenshots.

**How Tray.ai helps:** Store Supabase credentials once as a Tray.ai authentication and reference them from the HTTP Connector. Tray.ai masks authentication values in logs, so the secret never shows up in a step's input or output.

### Going from the Supabase API docs to a working call

Translating an example request from API docs into a workflow step means copying the method, URL, headers, and body by hand.

**How Tray.ai helps:** Paste a cURL example from the Supabase API docs into the HTTP Connector and Tray.ai fills in the method, URL, headers, and body for you.

### Handling files and non-JSON responses

Not every API answers in JSON. Some return XML, files, or binary data, or expect a multipart upload.

**How Tray.ai helps:** The HTTP Connector parses JSON and XML responses, returns files you can pass to the next step, and sends multipart form data for uploads.

## Frequently asked questions

### Does Tray.ai connect to Supabase?

Yes. Tray.ai connects to Supabase through the HTTP Connector, which calls the Supabase API directly. Any call the Supabase API documents can run as a step in a Tray.ai workflow.

### 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.

### Can I get a dedicated Supabase connector?

Supabase runs through the HTTP Connector rather than a dedicated connector. If your team wants one, the Tray.ai connector SDK can build a dedicated Supabase connector from the Supabase API.

## Learn more

- Intelligent Integration: https://tray.ai/platform/intelligent-ipaas/
- Merlin Agent Builder: https://tray.ai/platform/merlin-agent-builder/
- Agent Gateway for MCP: https://tray.ai/platform/agent-gateway/
- Book a demo: https://tray.ai/contact/
