Skip to content

SQL ENDPOINTS

Give your app the answer, not the whole table

Choose a saved query on the SQL endpoints page, publish its result, and let your app fetch it as JSON with a key that reads only that endpoint.

HOW IT WORKS

Query to JSON
SQL query  →  Publish  →  Stored result
→  GET with an endpoint key  →  Your app

Conceptual illustration · not a product screenshot

A CLOSER LOOK

How it fits your workflow

01

A key for one endpoint

Endpoint keys start with fe_. A key reads one published result and nothing else: no SQL, tables, REST API or MCP. Revoking it applies to the next request.

Review keys and access
02

Freshness you control

Reading an endpoint never runs your query. The result changes only when someone chooses Refresh or republishes.

How refresh works
03

Bounded and complete

By default a result can hold up to 10,000 rows or 10 MB. A result over a limit fails to publish instead of being cut short.

See the limits

From the shipped-revenue query to your app

This uses the same Summit Outfitters sample as the homepage. IDs, dates and values below are illustrative.

1. Run and save the query

In the SQL editor, run the query against managed workspace tables. Save it to find and edit it again later. Publishing doesn’t require a saved query, and external catalog queries can’t be published.

SELECT p.product_name, SUM(oi.quantity * oi.unit_price) AS shipped_revenue
FROM orders o
JOIN order_items oi ON oi.order_id = o.order_id
JOIN products p ON p.product_id = oi.product_id
WHERE o.status = 'SHIPPED' AND p.product_id = 'PROD-007'
GROUP BY p.product_name;

2. Publish the result

After a successful run, choose Publish endpoint, name it and choose Check full result. FrostTable runs the query on the full data and shows the output columns, sample JSON and result size. Nothing can be read until you choose Publish, which serves exactly the rows you checked. Then create an endpoint key. It’s shown once.

3. Fetch it from your app

Replace ENDPOINT_ID with the ID in your endpoint’s URL. Keep the key in an environment variable and send it only in the Authorization header, from your server, never from public browser code.

export FROSTTABLE_ENDPOINT_KEY='paste-your-endpoint-key-here'

curl -sS -H "Authorization: Bearer $FROSTTABLE_ENDPOINT_KEY" \
  "https://frosttable.com/api/v1/published/ENDPOINT_ID?limit=100"
{
  "endpoint_id": "ENDPOINT_ID",
  "result_version": 1,
  "refreshed_at": "2026-11-25T15:40:00Z",
  "row_count": 1,
  "columns": [
    {"name": "product_name", "type": "STRING"},
    {"name": "shipped_revenue", "type": "DECIMAL(20,2)"}
  ],
  "rows": [{"product_name": "Everest Merino Base Layer", "shipped_revenue": 188.55}],
  "next_cursor": null
}

Column types follow your table’s types. Read the request reference →

When the result changes

  • Publish: the endpoint serves the rows you checked.
  • Refresh: someone with access reruns the published SQL. Readers switch only after the new result is complete and valid. If the refresh fails, they keep getting the previous result.
  • Republish: replaces the SQL and result at the same URL. Changed output columns must be confirmed.

Nothing else updates it. Editing ORD-003, editing a saved query, or finishing an import or sync doesn’t change the published result, and there is no scheduled refresh. refreshed_at is when the query that produced the rows started, in UTC.

Published result or raw records?

Two different reads
Published SQL endpointRecords API
RequestGET /api/v1/published/{endpointId}GET /api/v1/tables/{tableId}/records
ReturnsThe stored rows of your query, such as shipped revenue by product.A table’s own records, such as ORD-003 and its status.
FreshnessAs of the last publish or refresh.Reads the table when you ask.
KeyEndpoint key (fe_), for that endpoint only.Workspace API key with permission to read the table.
curl -sS -H "Authorization: Bearer $FROSTTABLE_API_KEY" \
  "https://frosttable.com/api/v1/tables/TABLE_ID/records"

Keys, access and limits

  • Editors, admins and owners publish, refresh, disable and manage keys. Viewers can see endpoints, including their SQL.
  • Published rows are shared by key: anyone holding a key can read every published row, whatever their own table access. The endpoint keeps serving after its author leaves, or a source table changes, until someone disables it.
  • Revoking a key or disabling the endpoint applies to the next request. Key expiry follows the deployment’s API key policy.
  • Defaults: 10,000 rows and 10 MB per result, 100 rows per page (up to 1,000), and 50 endpoints per workspace. Deployments can configure these. A result over a limit fails to publish; it’s never truncated.
  • Publishing and refreshing use query compute credits and your plan’s concurrency and time limits. Reads run no query and are rate limited.

To be told when data changes, see outgoing webhooks. A webhook doesn’t refresh an endpoint.

FrostTable is a browser based business application for working with workspace tables.

GOOD TO KNOW

Frequently asked questions

Practical details for choosing the right workflow.

More FrostTable questions →
Does the endpoint update when my data changes?

No. It keeps serving the stored result until an editor, admin or owner chooses Refresh or republishes. You can configure scheduled refreshes on the SQL endpoints page; each run uses your compute quota. A finished import or sync does not automatically refresh it.

Can a caller pass query parameters?

Not to the SQL. A caller can page through the stored result with limit and cursor, but cannot change the query.

Is this the same as the records API?

No. The records API returns a table's own rows using a workspace API key. A published endpoint returns the stored result of one SQL query using a key limited to that endpoint.

KEEP EXPLORING

Give your app the answer, not the whole table

Choose a saved query on the SQL endpoints page, publish its result, and let your app fetch it as JSON with a key that reads only that endpoint.