> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://apidocs.polytomic.com/2025-09-18/api-reference/operations/get-search-availability/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://apidocs.polytomic.com/_mcp/server. # Get Operation Search Availability GET https://app.polytomic.com/api/operations/search/availability Reports whether operation search is configured on this API deployment. When a request for one question would exceed an Organization-minute, Organization-day, or deployment-minute question budget, the response includes `rate_limited` with a reason and a UTC `reset_at` timestamp. If more than one budget is exhausted, the timestamp reflects the latest reset. The check does not use any question allowance. > ⚠️ The result is a snapshot. A later request can be limited even if this > response has no `rate_limited` field, especially if it contains two or three > questions or other requests use the shared budget. Concurrent-call limits > are not included. The search request's `429` response and `Retry-After` header > are authoritative. If your request does not identify an Organization, the response reports only `enabled`. When `enabled` is `false`, `rate_limited` is omitted. If Polytomic cannot check the question budgets, the endpoint returns `503`. Reference: https://apidocs.polytomic.com/api-reference/operations/get-search-availability ## Response ### 200 OK - `data` (OperationSearchAvailabilityEnvelopeData, optional) ## Errors ### 503 Service Unavailable Error Service Unavailable - `key` (string, optional) - `message` (string, optional) - `metadata` (map from string to any, optional) - `status` (integer, optional) ## Types ### OperationSearchAvailabilityEnvelopeData - `enabled` (boolean, required) — Whether operation search is configured on this API deployment. - `rate_limited` (OperationSearchRateLimit, optional) ### OperationSearchRateLimit - `reason` (enum, required) — The exhausted question budget. - Allowed values: `organization.minute.limit`, `organization.daily.limit`, `global.minute.limit` - `reset_at` (datetime, required) — UTC time when this exhausted budget resets. ## Examples **Response** ```json { "data": { "enabled": true, "rate_limited": { "reason": "organization.minute.limit", "reset_at": "2024-01-15T09:30:00Z" } } } ``` **SDK Code** ```python import requests url = "https://app.polytomic.com/api/operations/search/availability" response = requests.get(url) print(response.json()) ``` ```javascript const url = 'https://app.polytomic.com/api/operations/search/availability'; const options = {method: 'GET'}; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://app.polytomic.com/api/operations/search/availability" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` ```ruby require 'uri' require 'net/http' url = URI("https://app.polytomic.com/api/operations/search/availability") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Get.new(url) response = http.request(request) puts response.read_body ``` ```java import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.get("https://app.polytomic.com/api/operations/search/availability") .asString(); ``` ```php request('GET', 'https://app.polytomic.com/api/operations/search/availability'); echo $response->getBody(); ``` ```csharp using RestSharp; var client = new RestClient("https://app.polytomic.com/api/operations/search/availability"); var request = new RestRequest(Method.GET); IRestResponse response = client.Execute(request); ``` ```swift import Foundation let request = NSMutableURLRequest(url: NSURL(string: "https://app.polytomic.com/api/operations/search/availability")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "GET" let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume() ```