Skip to main content
GET
/
v2
/
data
/
query
/
grammar
Get SQL grammar
curl --request GET \
  --url https://api.cdp.coinbase.com/platform/v2/data/query/grammar \
  --header 'Authorization: Bearer <token>'
"grammar SqlQuery; query: cteClause? unionStatement SEMICOLON? EOF;"

Documentation Index

Fetch the complete documentation index at: https://docs.cloud.coinbase.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

A JWT signed using your CDP API Key Secret, encoded in base64. Refer to the Generate Bearer Token section of our Authentication docs for information on how to generate your Bearer Token.

Response

SQL grammar retrieved successfully.

The ANTLR4 grammar for the SQL API.

Example:

"grammar SqlQuery; query: cteClause? unionStatement SEMICOLON? EOF;"