FAQ
Empty searches, setup_needed, the 409 on research, the hint after a first connect, and which calls count toward the monthly quota
Short answers to the questions that come up first. Each links to the page with the full contract.
Why is my search empty?
One of three things, and the response says which:
- Nothing is connected. The result carries
setup_needed. Show the user itsmessageandconnect_url. See What doessetup_neededmean? - A source is connected but nothing has synced yet, or nothing matched. There is no
setup_needed. Readdata_freshness.message: it gives the date of the newest conversation in your data and the time of the last sync, so a call newer than that date has not arrived yet. See Any other empty answer. Then readcorpus.empty_reason:no_matchmeans your processed customer data holds nothing for this query,weak_matches_onlymeans rows came back and none cleared the bar, so rephrase. See Thecorpusblock. - The read failed. On a plain-language search,
detail.internal.status: "failed"means the search did not run to the end, for example because the workspace's read budget ran out. It does not mean your data is empty. Retry later.
To see what the workspace holds before you query, call GET /search/overview. row_count: 0 on a surface means nothing has synced to it yet.
What does setup_needed mean?
The workspace has no connected source, so there is nothing for the call to read. reason is always no_sources_connected. message says so in plain words and connect_url is the workspace's Connections page in the console.
On search, on a research job that still starts, and on an optimize with evidence: "workspace", it rides on a normal 200 success. It is not an error. Do this:
- Show the user
messageandconnect_url. - Do not retry until a source is connected. The answer will not change.
- Do not answer the question from your own knowledge as if it came from the user's data.
Both forms, with example bodies, are in Errors.
Why did research return 409?
The workspace has no connected source and holds no conversation themes, so the job could only come back empty. research.start is refused with 409 and error.code: "setup_needed" instead, before a quota call is counted. No job starts.
The body carries the same setup_needed field as the hint, so handle it the same way: show message and connect_url, and do not retry until a source is connected.
An evaluation is not refused on such a workspace: its four evidence criteria abstain, and only cta_clarity is evaluated. See A workspace with nothing connected.
I just connected a source. Why do I still see the hint?
Two steps happen after a connect, and they finish at different times:
- The hint clears. Once the connection is live, the next call no longer carries
setup_needed. A connect that was started and never finished (an OAuth flow abandoned halfway) does not count, so finish it in the console.GET /connectionslists the connection when it is live. - The data appears after the first sync lands. Until then a search is empty without the hint (its
data_freshnesssays no conversations can be read yet), and an evaluation's four evidence criteria abstain withcorpus_empty. WatchGET /connections/:id/status(is_syncing) or/runs, or checkrow_countonGET /search/overview, before you run research or an evaluation withevidence: "workspace".
If the hint is still there after the connect finished, the connection did not complete. Check its health on GET /connections.
Do failed or refused calls count toward my quota?
Only calls made with an API key or an external OAuth token, MCP included, count. Calls from the Amdahl console never count. Of those:
Not counted:
- A refusal before the work starts:
invalid_inputandinvalid_argument(validation runs before the quota check),forbiddenandnot_on_public_api, thequota_exceededrefusal itself, and the409 setup_neededon research. A refused prompt run (prompt_is_one_off,improve_needs_two_recipients,no_sample_accounts) runs nothing and is not counted. - A search whose read fails, and an optimize that returns no rewrite (
rate_limited,optimizer_error,optimizer_timeout). Onmessages.optimize_batch, only items that come back with a result count, as for a single call.
Counted:
- A search that completes, including an empty result that carries the
setup_neededhint, and a plain-language search that returns200withdetail.internal.status: "failed". - An evaluation that returns a result (
ok: true), whatever the score. - A prompt run once, when it finishes. A run that fails is not counted.
- A research job the moment the start is accepted, before it runs, so a start that later fails still counts.
The caps themselves are in Rate limits and Research: Monthly cap. Evaluations and prompt runs count toward the same messages cap as an optimize. GET /setup/status shows how much of that cap is left.
See also
- Errors: every error shape and code, and what to do about each
- Connections: connecting a source and watching its first sync
- Rate limits: the per-minute limits and the monthly caps