---
title: "Get schema details"
method: GET
path: "/v2/data/query/schema"
tags: ["SQL API"]
---

# Get schema details

`GET /v2/data/query/schema`

## Request

- Base URL: `https://api.cdp.coinbase.com/platform`
- URL: `https://api.cdp.coinbase.com/platform/v2/data/query/schema`
- Auth: HTTP bearer

Retrieve the schema information for the available tables in the SQL API's indexed data.

This includes table names, column definitions, data types, and indexed fields.

## Query parameters

- `database` 'base' | 'base_sepolia' | 'solana' | 'hyperevm'
- `table` string

## Response `200`

Schema information retrieved successfully.

- OnchainDataSchemaResponse: Schema information for available blockchain data tables.
  - `tables` OnchainDataTableSchema[]: List of available tables.
    - `database` string: The blockchain network database this table belongs to.
    - `table` string: Table name.
    - `columns` OnchainDataColumnSchema[]: Column definitions for this table.
      - `name` string: Column name.
      - `type` string: Column data type.
      - `nullable` boolean: Whether this column can contain NULL values.
      - `description` string: Human-readable description of the column.
      - `indexOrder` integer: The order of the column in the index. A lower number means the column is more important for the index and should be first in the query.

## Other responses

- `401`: Unauthorized.
- `500`: Internal server error.

## Changes

- **2026-12-01** `06cb41a4fb57`: 2 warning
  - added the new `policy_not_applicable` enum value to the `errorType` response property for the response status `401`
  - added the new `policy_not_applicable` enum value to the `errorType` response property for the response status `500`
- **2026-10-16** `ff3c1fdef902`: 2 warning
  - added the new `entity_not_configured_for_top_up` enum value to the `errorType` response property for the response status `401`
  - added the new `entity_not_configured_for_top_up` enum value to the `errorType` response property for the response status `500`
- **2026-10-06** `156440e9f8df`: 20 warning
  - added the new `incompatible_event_types` enum value to the `errorType` response property for the response status `401`
  - added the new `incompatible_event_types` enum value to the `errorType` response property for the response status `500`
  - added the new `invalid_webhook_headers` enum value to the `errorType` response property for the response status `401`
  - added the new `invalid_webhook_headers` enum value to the `errorType` response property for the response status `500`
  - …16 more
- …earlier changes not shown

[Operation history](https://skmtc.dev/coinbase/apis/coinbase-developer-platform-apis/changes/v2/data/query/schema/get.md)

---

[API](https://skmtc.dev/coinbase/apis/coinbase-developer-platform-apis.md) - [All operations](https://skmtc.dev/coinbase/apis/coinbase-developer-platform-apis/llms.txt) - [OpenAPI document](https://skmtc.dev/coinbase/apis/coinbase-developer-platform-apis/revisions/06cb41a4fb57?raw)
