Skip to content
MUI’s hosted AI Assistant backend shuts down at the end of 2026.Switch in two lines →
  • Products
    • AG Grid AI Toolkit Early accessThe model and the server behind the toolkit.
    • MUI X Data Grid StableThe backend for the Premium AI Assistant.
    • TanStack Table Public alphaA plugin that applies each answer to your table.
    • AG Studio Early accessA hosted backend for its assistant, not built yet.
  • How it works
  • Accuracy
  • Pricing
  • Security
  • Docs
    • Quickstart: server route
    • Quickstart: TanStack Table
    • Browser keys
    • Moving from MUI’s hosted service
    • Guide: when MUI’s service retires
Sign inStart a 7-day trial
Menu
  • Products
    • AG Grid AI Toolkit Early access
    • MUI X Data Grid Stable
    • TanStack Table Public alpha
    • AG Studio Early access
  • How it works
  • Accuracy
  • Pricing
  • Security
  • Docs
    • Quickstart: server route
    • Quickstart: TanStack Table
    • Browser keys
    • Moving from MUI’s hosted service
    • Guide: when MUI’s service retires
  • Sign in

Product

  • How it works
  • Accuracy
  • Pricing
  • Data and security

Grids

  • AG Grid AI ToolkitEarly access
  • MUI X Data Grid PremiumStable
  • TanStack TablePublic alpha
  • AG StudioEarly access

Docs

  • Quickstart: server route
  • Browser keys
  • Guide: when MUI’s service retires

Company

  • Contact
  • Terms
  • Privacy

Not affiliated with or endorsed by MUI or AG Grid. MUI and AG Grid are trademarks of their respective owners.

© 2026 Gridsay

Docs pages
Start
  • Documentation
  • How it works
  • Examples
MUI X Data Grid
  • Quickstart: server route
  • From the browser
  • Using the helper
  • Filtering
  • Sorting
  • Grouping
  • Aggregation
  • Pivoting
  • Charts
  • Row selection
  • Follow-up questions
  • Refusals and errors
  • Moving from MUI’s service
  • Reference
TanStack Table
  • Quickstart
  • Describing columns
  • Filtering
  • Sorting
  • Grouping
  • Row selection
  • Server-side data
  • Controlled state
  • Undo and reset
  • Refusals and errors
  • API reference
Keys and sign-in
  • Secret and publishable keys
  • Browser keys
  • JWT and OIDC
  • Session tokens
  • Identity webhook
  • Per-user limits
  • The console
  • Data and privacy
HTTP API
  • HTTP API
  • Authentication
  • Data Grid endpoint
  • Follow-up questions
  • Private mode
Reference
  • Errors
  • Limits
  • Tiers and credits
  • @gridsay/core
On this page

On this page

  1. Base address and endpoints
  2. Authentication
  3. One complete call
  4. Requests and responses
  5. Calling from a browser
  6. Next
Skip to the article
Start
  • Documentation
  • How it works
  • Examples
MUI X Data Grid
  • Quickstart: server route
  • From the browser
  • Using the helper
  • Filtering
  • Sorting
  • Grouping
  • Aggregation
  • Pivoting
  • Charts
  • Row selection
  • Follow-up questions
  • Refusals and errors
  • Moving from MUI’s service
  • Reference
TanStack Table
  • Quickstart
  • Describing columns
  • Filtering
  • Sorting
  • Grouping
  • Row selection
  • Server-side data
  • Controlled state
  • Undo and reset
  • Refusals and errors
  • API reference
Keys and sign-in
  • Secret and publishable keys
  • Browser keys
  • JWT and OIDC
  • Session tokens
  • Identity webhook
  • Per-user limits
  • The console
  • Data and privacy
HTTP API
  • HTTP API
  • Authentication
  • Data Grid endpoint
  • Follow-up questions
  • Private mode
Reference
  • Errors
  • Limits
  • Tiers and credits
  • @gridsay/core

HTTP API

On this page

  1. Base address and endpoints
  2. Authentication
  3. One complete call
  4. Requests and responses
  5. Calling from a browser
  6. Next

Send a user's question and a description of your table; the answer is the state your table applies. The table packages make these calls for you. Read this section when you call the API yourself, or want to know exactly what they send.

Base address and endpoints#

Every call goes to https://api.gridsay.com. The version is in the path: /api/v1.

MethodPathFor
POSTPath/api/v1/datagrid/promptForQuestions from MUI X Data Grid and TanStack Table. See Data Grid endpoint.
POSTPath/api/v1/sessionsForA signed-in user's session token, minted on your server. See session tokens.
GETPath/api/v1/datagrid/keyForThe calling key's type, tier setting and organizationId.

The Data Grid endpoint and the sessions endpoint also answer at /v1/datagrid/prompt and /v1/sessions. Use the /api/v1 paths in new code.

Authentication#

Send a key in the x-api-key header: a secret key from your server, or a publishable key from the browser together with the user's token. See Authentication.

One complete call#

Run this from a terminal. The key is a fake: put yours in its place, and keep it on your server. A terminal sends no Origin header: if your secret key has allowed origins, the call is refused with 403 origin_not_allowed until you add one of them with --header 'Origin: https://app.example.com' (any http://localhost origin is accepted on a secret key).

Shell
curl https://api.gridsay.com/api/v1/datagrid/prompt \  --header 'Content-Type: application/json' \  --header 'x-api-key: sk_gs_FAKE_EXAMPLE_DO_NOT_USE' \  --data-binary @- <<'JSON'{  "query": "people in Germany or France earning over 100k",  "context": "[{\"field\":\"country\",\"type\":\"string\",\"allowedOperators\":[\"equals\",\"isAnyOf\"]},{\"field\":\"salary\",\"type\":\"number\",\"allowedOperators\":[\"=\",\">\",\"<\"]}]"}JSON

The answer, with HTTP 201. conversationId and the meta values are examples: they depend on your key's tier and your organization's usage.

JSON
{  "ok": true,  "data": {    "select": -1,    "filters": [      { "column": "country", "operator": "isAnyOf", "value": ["Germany", "France"] },      { "column": "salary", "operator": ">", "value": 100000 }    ],    "aggregation": {},    "sorting": [],    "grouping": [],    "pivoting": {},    "chart": null,    "conversationId": "00000000-0000-4000-8000-000000000001"  },  "meta": {    "tier": "fast",    "usedQueries": 12,    "remainingQueries": 7988,    "resetAt": "2027-01-01T00:00:00.000Z"  }}

data is the whole state to apply, not a change list: the empty parts clear those parts of the table. meta says which tier answered and how much of the period is used.

Requests and responses#

  • Send Content-Type: application/json and a JSON body.
  • The two question endpoints answer 201 on success; GET /api/v1/datagrid/key and POST /api/v1/sessions answer 200. Answers and errors have a JSON body. The browser's preflight (OPTIONS) gets 204 with no body, and a body over 8 MB can be cut off by the server before the API answers, without a JSON body.
  • A success has ok: true. A failure has ok: false, the same status in statusCode, and a code. Branch on code, show message to your user, and keep detail for yourself. Every code is in Errors.
  • When the wait is known, it comes as retryAfter in the body and as a Retry-After header.
  • There is no request id header. When a question reached the model and was refused or failed (422 or 502), detail carries the request id, which also identifies the question in your Usage log. For any other failure, keep the endpoint, the time and the code.
  • There is no idempotency key. A question sent again is a new question, charged again if it is answered or refused.

Calling from a browser#

The API accepts calls from any page, and its CORS headers name the page's origin. Whether a call is answered depends on its key: a publishable key needs the page's origin on its list and a signed-in user's token. A secret key that accepts the page's origin would be answered too, but anyone could read it from the page: never put one in browser code. See Authentication.

Next#

  • Authentication
  • Data Grid endpoint
  • Errors