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;"

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;"

I