---
title: "Test Supabase connection and query"
method: GET
path: "/api/supabase-test"
tags: ["Test"]
---

# Test Supabase connection and query

`GET /api/supabase-test`

## Request

- Base URL: `https://api.kolect.com`
- URL: `https://api.kolect.com/api/supabase-test`
- Auth: HTTP bearer

Verifies the connection to Supabase by querying a sample of data from the campaigns table

## Response `200`

Supabase connection successful

- object
  - `status` string
  - `message` string
  - `campaigns` object[]
  - `count` integer: Number of campaigns retrieved
  - `timestamp` string, date-time: ISO timestamp of when the request was processed

## Other responses

- `500`: Failed to connect to Supabase

---

[API](https://skmtc.dev/kolect/apis/kolect-api.md) · [All operations](https://skmtc.dev/kolect/apis/kolect-api/llms.txt) · [OpenAPI document](https://skmtc.dev/kolect/apis/kolect-api/revisions/fe54528e8f54?raw)
