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. The error body
  2. All codes
  3. invalid_request
  4. invalid_api_key
  5. unauthenticated_user
  6. quota_exceeded
  7. billing_limit_exceeded
  8. origin_not_allowed
  9. forbidden
  10. not_found
  11. context_too_large
  12. query_not_understood
  13. rate_limited
  14. upstream_unavailable
  15. internal_error
  16. 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

Errors

On this page

  1. The error body
  2. All codes
  3. invalid_request
  4. invalid_api_key
  5. unauthenticated_user
  6. quota_exceeded
  7. billing_limit_exceeded
  8. origin_not_allowed
  9. forbidden
  10. not_found
  11. context_too_large
  12. query_not_understood
  13. rate_limited
  14. upstream_unavailable
  15. internal_error
  16. Next

Find the error's code below. Show message to your user, keep detail for yourself, and branch on code: messages can change, codes do not.

The error body#

JSON
{  "ok": false,  "statusCode": 429,  "code": "rate_limited",  "message": "The assistant is busy. Try again in 12 seconds.",  "detail": "The key minute limit (10) was reached. Retry after 12 seconds, or change limits at /app/auth. Refused before the model; no Usage log row.",  "retryAfter": 12}
FieldTypeMeaning
okTypeboolean, requiredMeaningAlways false on an error.
statusCodeTypeinteger, requiredMeaningThe HTTP status, repeated.
codeTypestring, requiredMeaningThe reason, from the table below.
messageTypestring, requiredMeaningA sentence for your user.
detailTypestring, optionalMeaningFor you, never for users: what to fix, and the request id when the question reached the model.
retryAfterTypeinteger, optionalMeaningSeconds to wait, when the wait is known. Also sent as the Retry-After header.

If your server forwards questions, pass the status, the body and Retry-After through unchanged. Errors from the table packages, such as a lost connection, are in @gridsay/core.

All codes#

CodeStatusChargedSend again unchanged?
invalid_requestStatus400ChargedNoSend again unchanged?No: fix the field.
invalid_api_keyStatus401ChargedNoSend again unchanged?No: fix the key.
unauthenticated_userStatus401ChargedNoSend again unchanged?After the user signs in again.
quota_exceededStatus402ChargedNoSend again unchanged?Not until the plan or credits change.
billing_limit_exceededStatus402ChargedNoSend again unchanged?Not until the cap, plan or period changes.
origin_not_allowedStatus403ChargedNoSend again unchanged?No: fix the origin or the key's list.
forbiddenStatus403ChargedNoSend again unchanged?No: set up the key's sign-in.
not_foundStatus404ChargedNoSend again unchanged?No: fix the path.
context_too_largeStatus413ChargedNoSend again unchanged?No: send less.
query_not_understoodStatus422ChargedYesSend again unchanged?It is charged again; let the user ask differently.
rate_limitedStatus429ChargedNoSend again unchanged?Yes, after the wait.
upstream_unavailableStatus502, 503ChargedNoSend again unchanged?Yes: once after a short wait for 502, later for 503.
internal_errorStatus500ChargedMaybeSend again unchanged?Check Usage first.

Charged means credits are used, trial credits included. An answer (201) and a refusal (422) are charged; a 502, a 503 and everything refused before the model are not. A 500 can come after the question was charged, so it is not safe to send again without checking Usage. When the connection drops before a response arrives, the question may have been answered and charged too: check Usage the same way.

invalid_request#

400. "The assistant could not read this request." Not charged.

The body is not JSON, a required field is missing, or a field is the wrong type or too long. detail names the first field at fault. On the Data Grid endpoint, context must be a JSON string of column descriptions, not an array.

Fix the field, then send again. The limits are in Limits.

invalid_api_key#

401. "The assistant is not available right now." Not charged.

The x-api-key header is missing, malformed, expired, disabled or unknown, or the key's saved settings are not valid. Use an enabled key of your organization from the console. A secret key belongs on your server only. See Authentication.

unauthenticated_user#

401. "Sign in to use the assistant." Not charged.

A publishable key's call has no valid user token. detail says which:

  • the token is missing: send Authorization: Bearer <token>, or your webhook's header;
  • it cannot be verified: refresh it, and check the issuer, audience and secret set on the key;
  • it names no user: check the user-id claim; a user id has 1 to 255 characters.

Ask your user to sign in again. See Browser keys.

quota_exceeded#

402. "The assistant is not available right now." or "The assistant has reached its usage limit." Not charged. No retryAfter.

No plan is in force, the trial has ended or cannot cover the question, the account is blocked, or a payment is overdue. detail says which. Open Billing in the console. A key set to auto may still answer on a cheaper tier when a fixed tier cannot.

billing_limit_exceeded#

402. "The assistant has reached this month's limit." Not charged. No retryAfter.

A paid plan's credit ceiling for the period, including the extra-usage cap, cannot cover the question. Raise the cap or change plan in Billing, or wait for the next period. See Tiers and credits.

origin_not_allowed#

403. "The assistant is not available on this site." Not charged.

The request's Origin is not on the key's allowed origins, a publishable key has no allowed origins, or a publishable call has no Origin header. Add the exact origin, such as https://app.example.com, to the key. Local development is a different origin. See Allowed origins.

forbidden#

403. "The assistant is not available right now." Not charged.

The publishable key has no sign-in method. Choose one for the key in the console: see Browser keys. The sessions endpoint also answers forbidden to a publishable key: mint session tokens with a secret key.

not_found#

404. "Not found" Not charged.

The path or method is wrong. Questions are POST to /api/v1/datagrid/prompt. If your server forwards them, check it keeps the path.

context_too_large#

413. "This table is too large for the assistant." Not charged.

The body, the context string, or what the question would send the model is over its limit. detail gives the size and what to shorten: fewer or shorter example values, shorter descriptions, or fewer columns. See Limits.

query_not_understood#

422. The assistant's own sentence, such as "I can't compare a person's salary with their manager's, because the grid has no manager column and cannot compare two columns." Charged at the tier that answered.

The question cannot be done with your table: it needs a column you did not send, a feature you switched off, or something no table setting can do. On the Data Grid endpoint, an answer that still names an unknown column, an operator the column does not allow or a switched-off feature after its one correction also ends here, with the reason as the sentence, such as "Sorting is switched off for this table." Show the sentence; your user can ask differently. Check which columns and features you send. Do not resend it unchanged: each refusal is charged. detail has the request id.

rate_limited#

429. Not charged. Wait retryAfter seconds, or the Retry-After header; when the wait is not known, both are left out.

detail says which limit:

LimitSentenceWhat to do
A minute or hour limit you set on a publishable keySentence"The assistant is busy. Try again in N seconds."What to doWait, or change the limit. See User limits.
A day limit you setSentence"The assistant has reached today's limit. Try again tomorrow."What to doWait, or change the limit.
A month limit you setSentence"The assistant has reached this month's limit. Try again next month."What to doWait, or change the limit.
A user rule with its own sentenceSentenceYour rule's sentence, in place of the three aboveWhat to doWait, or change the rule.
Sign-in checks: more than 20 a minute for one key and client address, counting failed checks and checks still in progressSentence"Too many attempts. Try again in N seconds."What to doFix the token, then wait.
The key check's own rate limit, off in our normal setupSentence"The assistant is busy. Try again in N seconds.", or "The assistant is busy. Try again in a moment." with no waitWhat to doWait.
Questions in progress for your organization, a user or a keySentence"The assistant is busy. Try again in a moment."What to doWait 5 seconds; send fewer questions at once.
Too many failed questions this hour, day, week or periodSentence"The assistant is not available right now. Try again later."What to doWait, look at the failed requests in Usage, and contact us if it repeats.

See Limits.

upstream_unavailable#

"The assistant is temporarily unavailable. Try again." Not charged.

  • 502: the model failed to answer, or gave no readable answer. Try once more after a short wait; detail has the request id.
  • 503: something was unavailable before the question was answered: the service, or your sign-in provider, or the saved sign-in secret could not be read. detail says which. Check your sign-in settings when it names them; otherwise retry later.

Neither has a retryAfter; do not retry in a tight loop.

internal_error#

500. "Something went wrong. Try again in a moment."

An unexpected failure. Most come before any credit is used, but one can come after the question was charged, so a 500 does not prove the question was free. Check Usage before you resend, and contact us with the endpoint and the time if it repeats.

Next#

  • Limits
  • Tiers and credits
  • @gridsay/core