---
title: "What the SQL surface exposes"
method: GET
path: "/v1/sql/schema"
---

# What the SQL surface exposes

`GET /v1/sql/schema`

## Request

- Base URL: `https://api.onvexia.com`
- URL: `https://api.onvexia.com/v1/sql/schema`
- Auth: one of:
  - API key in header `X-API-Key`
  - API key in header `Authorization`
  - API key in header `X-PAYMENT`

Relations and columns queryable via POST /v1/sql. User accounts, API keys, credit ledgers, alert rules and raw social posts are NOT in this schema and the query role has no permission to read them.

## Response `200`

OK

## Other responses

- `402`: Payment required (x402): no account needed, pay per call
- `404`: Not found, or metric registered but not yet served (the body names it)

---

[API](https://skmtc.dev/onvexia/apis/onvexia-crypto-sentiment-whale-tracking-onchain-analytics-ap.md) · [All operations](https://skmtc.dev/onvexia/apis/onvexia-crypto-sentiment-whale-tracking-onchain-analytics-ap/llms.txt) · [OpenAPI document](https://skmtc.dev/onvexia/apis/onvexia-crypto-sentiment-whale-tracking-onchain-analytics-ap/revisions/7619665fc084?raw)
