> ## Documentation Index
> Fetch the complete documentation index at: https://docs.webrouter.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Supabase

> Supabase Management API: the user's projects and organisations, read-only SQL against a project's Postgres, logs, health, advisors and edge functions.

![](https://mintcdn.com/webrouter/T_A5Quwg50s_JK2y/logo/data-apis/supabase.webp?fit=max\&auto=format\&n=T_A5Quwg50s_JK2y\&q=85\&s=66467a0a7ed72ce44ca278cfbeb79b85)

[Web Catalog · Developer](https://docs.webrouter.net/data-apis.md?category=developer)

Needs&#x20;

`SUPABASE_ACCESS_TOKEN`

Endpoints

9

Auth

Key in header

[Vendor docs](https://supabase.com/docs/reference/api/introduction)

&#x20;·&#x20;

[Pricing](https://supabase.com/pricing)

## Setup

| Variable | | What it is |
| - | - | - |
| `SUPABASE_ACCESS_TOKEN` | required | A Supabase personal access token (or an OAuth token), sent as a Bearer token. Prefer a scoped token; a classic one has full account rights. |

Put them in your environment or `.env`; [Data APIs](https://docs.webrouter.net/vendors.md) covers the other ways.

## Notes

* Rate limit: 120 requests a minute per user, per project or organisation, per endpoint; some are stricter. X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset (seconds) come back; over it answers 429.
* This is the management API on api.supabase.com, not a project's own REST/Auth/Storage API at \<ref>.supabase.co, which needs the project's keys and a per-project host.
* Several endpoints (SQL query, advisors, database context) are marked experimental or beta and may change.

## Endpoints

GET

List projects

Every project the token can see, with ref, name, region, status and organisation.

[Open](#supabase-projects-list)

GET

Get a project

One project's details and status.

[Open](#supabase-projects-get)

GET

List organisations

Organisations the user belongs to.

[Open](#supabase-organizations-list)

GET

Check a project's service health

Health of the chosen services (auth, db, rest, storage, realtime, pooler...).

[Open](#supabase-projects-health)

POST

Run a read-only SQL query

Run SQL as supabase\_read\_only\_user and get the rows.

[Open](#supabase-database-query-read-only)

GET

Query project logs

Run a ClickHouse-SQL query over the project's unified log stream.

[Open](#supabase-logs-query)

GET

Get security advisor findings

Security lints for the project's database.

[Open](#supabase-advisors-security)

GET

Get performance advisor findings

Performance lints for the project's database.

[Open](#supabase-advisors-performance)

GET

List edge functions

Edge functions deployed in the project.

[Open](#supabase-functions-list)

### List projects

GET

`/v1/projects`

`supabase.projects.list`

Every project the token can see, with ref, name, region, status and organisation.

Input

No inputs.

[Vendor docs](https://supabase.com/docs/reference/api/v1-list-all-projects)

```python Python theme={null}
router.call_data_api("supabase.projects.list")
```

```text MCP theme={null}
call_data_api(endpoint="supabase.projects.list")
```

### Get a project

GET

`/v1/projects/{ref}`

`supabase.projects.get`

One project's details and status.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`ref` required</td><td>string</td><td>path</td><td>Project ref, 20 lowercase letters (from list projects or the project URL). Example `abcdefghijklmnopqrst`</td></tr>
  </tbody>
</table>

[Vendor docs](https://supabase.com/docs/reference/api/v1-get-project)

```python Python theme={null}
router.call_data_api("supabase.projects.get", {'ref': 'abcdefghijklmnopqrst'})
```

```text MCP theme={null}
call_data_api(endpoint="supabase.projects.get", params={"ref": "abcdefghijklmnopqrst"})
```

### List organisations

GET

`/v1/organizations`

`supabase.organizations.list`

Organisations the user belongs to.

Input

No inputs.

[Vendor docs](https://supabase.com/docs/reference/api/v1-list-all-organizations)

```python Python theme={null}
router.call_data_api("supabase.organizations.list")
```

```text MCP theme={null}
call_data_api(endpoint="supabase.organizations.list")
```

### Check a project's service health

GET

`/v1/projects/{ref}/health`

`supabase.projects.health`

Health of the chosen services (auth, db, rest, storage, realtime, pooler...).

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`ref` required</td><td>string</td><td>path</td><td>Project ref, 20 lowercase letters (from list projects or the project URL). Example `abcdefghijklmnopqrst`</td></tr>
    <tr><td>`services` required</td><td>string</td><td>query</td><td>Comma-separated: auth, db, db\_postgres\_user, pooler, realtime, rest, storage, pg\_bouncer. Example `auth,db`</td></tr>

    <tr>
      <td>
        `timeout_ms`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        0 to 10000.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://supabase.com/docs/reference/api/v1-get-services-health)

```python Python theme={null}
router.call_data_api("supabase.projects.health", {'ref': 'abcdefghijklmnopqrst', 'services': 'auth,db'})
```

```text MCP theme={null}
call_data_api(endpoint="supabase.projects.health", params={"ref": "abcdefghijklmnopqrst", "services": "auth,db"})
```

### Run a read-only SQL query

POST

`/v1/projects/{ref}/database/query/read-only`

`supabase.database.query.read_only`

Run SQL as supabase\_read\_only\_user and get the rows.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`ref` required</td><td>string</td><td>path</td><td>Project ref, 20 lowercase letters (from list projects or the project URL). Example `abcdefghijklmnopqrst`</td></tr>
    <tr><td>`query` required</td><td>string</td><td>body</td><td>SQL; every table must be schema-qualified (public.users). Example `select * from public.orders limit 10`</td></tr>

    <tr>
      <td>
        `parameters`
      </td>

      <td>
        array
      </td>

      <td>
        body
      </td>

      <td>
        Values for the query's parameters.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://supabase.com/docs/reference/api/v1-read-only-query)

```python Python theme={null}
router.call_data_api("supabase.database.query.read_only", {'ref': 'abcdefghijklmnopqrst', 'query': 'select * from public.orders limit 10'})
```

```text MCP theme={null}
call_data_api(endpoint="supabase.database.query.read_only", params={"ref": "abcdefghijklmnopqrst", "query": "select * from public.orders limit 10"})
```

> [!NOTE]
>
> * A read over POST, run as a read-only role. Beta.

### Query project logs

GET

`/v1/projects/{ref}/analytics/endpoints/logs`

`supabase.logs.query`

Run a ClickHouse-SQL query over the project's unified log stream.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`ref` required</td><td>string</td><td>path</td><td>Project ref, 20 lowercase letters (from list projects or the project URL). Example `abcdefghijklmnopqrst`</td></tr>
    <tr><td>`sql`</td><td>string</td><td>query</td><td>ClickHouse SQL over the logs; filter on source (edge\_logs, postgres\_logs...). Example `select event_message from edge_logs limit 10`</td></tr>

    <tr>
      <td>
        `iso_timestamp_start`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Start, ISO 8601.
      </td>
    </tr>

    <tr>
      <td>
        `iso_timestamp_end`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        End, ISO 8601.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://supabase.com/docs/reference/api/v1-get-project-logs) · Same job: [Datadog](https://docs.webrouter.net/data-apis/datadog.md#datadog-logs-search), [Microsoft Graph (Microsoft 365)](https://docs.webrouter.net/data-apis/microsoft-graph.md#microsoft-graph-signins-list), [Resend](https://docs.webrouter.net/data-apis/resend.md#resend-logs-list), [Sentry](https://docs.webrouter.net/data-apis/sentry.md#sentry-explore-events), [Vercel](https://docs.webrouter.net/data-apis/vercel.md#vercel-deployments-events)

```python Python theme={null}
router.call_data_api("supabase.logs.query", {'ref': 'abcdefghijklmnopqrst', 'sql': 'select event_message from edge_logs limit 10'})
```

```text MCP theme={null}
call_data_api(endpoint="supabase.logs.query", params={"ref": "abcdefghijklmnopqrst", "sql": "select event_message from edge_logs limit 10"})
```

> [!NOTE]
>
> * Without both timestamps only the last minute is searched; the range may not exceed 24 hours and is rounded to the minute. The older logs.all endpoint now answers 410.

### Get security advisor findings

GET

`/v1/projects/{ref}/advisors/security`

`supabase.advisors.security`

Security lints for the project's database.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`ref` required</td><td>string</td><td>path</td><td>Project ref, 20 lowercase letters (from list projects or the project URL). Example `abcdefghijklmnopqrst`</td></tr>
    <tr><td>`lint_type`</td><td>string</td><td>query</td><td>Lint type. One of `sql`</td></tr>
  </tbody>
</table>

[Vendor docs](https://supabase.com/docs/reference/api/v1-get-security-advisors)

```python Python theme={null}
router.call_data_api("supabase.advisors.security", {'ref': 'abcdefghijklmnopqrst'})
```

```text MCP theme={null}
call_data_api(endpoint="supabase.advisors.security", params={"ref": "abcdefghijklmnopqrst"})
```

> [!NOTE]
>
> * Experimental.

### Get performance advisor findings

GET

`/v1/projects/{ref}/advisors/performance`

`supabase.advisors.performance`

Performance lints for the project's database.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`ref` required</td><td>string</td><td>path</td><td>Project ref, 20 lowercase letters (from list projects or the project URL). Example `abcdefghijklmnopqrst`</td></tr>
  </tbody>
</table>

[Vendor docs](https://supabase.com/docs/reference/api/v1-get-performance-advisors)

```python Python theme={null}
router.call_data_api("supabase.advisors.performance", {'ref': 'abcdefghijklmnopqrst'})
```

```text MCP theme={null}
call_data_api(endpoint="supabase.advisors.performance", params={"ref": "abcdefghijklmnopqrst"})
```

> [!NOTE]
>
> * Experimental.

### List edge functions

GET

`/v1/projects/{ref}/functions`

`supabase.functions.list`

Edge functions deployed in the project.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`ref` required</td><td>string</td><td>path</td><td>Project ref, 20 lowercase letters (from list projects or the project URL). Example `abcdefghijklmnopqrst`</td></tr>
  </tbody>
</table>

[Vendor docs](https://supabase.com/docs/reference/api/v1-list-all-functions)

```python Python theme={null}
router.call_data_api("supabase.functions.list", {'ref': 'abcdefghijklmnopqrst'})
```

```text MCP theme={null}
call_data_api(endpoint="supabase.functions.list", params={"ref": "abcdefghijklmnopqrst"})
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.