Overview
DynamoSQL lets you query your DynamoDB tables with SQL. This guide walks through obtaining an access token and running your first query against the API.
Prerequisites
- A DynamoSQL account — sign up at dynamosql.com
- Your
clientId and clientSecret from the portal
Step 1 — Obtain an access token
Exchange your API client credentials for a bearer token:
The token is valid for one hour. Cache and reuse it; refresh it with POST /v1/auth/refresh when it expires.
Step 2 — Run a query
Call POST /v1/query with your bearer token:
Step 3 — Interpret the response
A successful response looks like this:
success — always check this first. If false, read error and detailedError.
data.columns — column names in the same order as each row array.
data.data — array of rows (each row is an array of values).
data.resumeIdx — present when there are more rows; pass it back to fetch the next page.
data.planTime / data.execTime — parse+plan time and total elapsed time in milliseconds.
resumeIdx is absent (not null) when the result set is exhausted. Always use "resumeIdx" in data (not data.resumeIdx !== null) to test for more pages.
Next steps