Skip to content

The Agent Web Search API lets you check whether web search is enabled and authenticated for a given workspace. Use this endpoint to verify the connection status of the web search backend before relying on search-powered agent features.

Returns the current web search configuration and authentication status for the specified workspace.

GET /api/v1/workspaces/{workspaceID}/web-search/status

Section titled “GET /api/v1/workspaces/{workspaceID}/web-search/status”
NameInTypeRequiredDescription
workspaceIDpathstringYesThe unique identifier of the workspace.

This endpoint accepts no request body.

{
"enabled": true,
"model": "gpt-4o",
"provider": "openai",
"authenticated": true
}
const status = await client.agent.webSearch.getStatus({
workspaceID: "ws_abc123"
});
if (status.enabled && status.authenticated) {
console.log(`Web search ready via ${status.provider} (${status.model})`);
} else {
console.log("Web search is not fully configured for this workspace");
}