{"openapi":"3.0.0","info":{"title":"Thomasnet US Industrial Suppliers","version":"1.0.0","description":"Thomasnet US industrial supplier profiles, headings, catalogs and categories, one row per entity."},"servers":[{"url":"https://ah-thomasnet-com.opendata.best/s/thomasnet-com"}],"paths":{"/v1/search":{"post":{"operationId":"search","summary":"Search US industrial suppliers, headings and catalogs","description":"Supplier, heading, taxonomy or catalog rows by query, headingId, zip or filters.","tags":["search"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"mode":{"type":"string","enum":["auto","supplier_search","heading","browse","enumerate","catalog","taxonomy","suggest","filters"],"description":"Mode. Choose Auto to select a mode from your URLs, IDs, category, or keywords. Choose browse, enumerate, taxonomy, filters, catalog, or suggest explicitly for those outputs.","default":"auto","example":"auto"},"query":{"type":"string","description":"Search query. Supplier or product search text. In browse mode, enter a category slug or an empty string for root categories; in enumerate mode, enter comma-separated initial letters.","example":"cnc machining"},"searchQueries":{"type":"array","items":{"type":"string"},"description":"Search queries. Supplier or catalog keywords. Each keyword has its own maxResults row limit.","example":[]},"startUrls":{"type":"array","items":{"type":"string"},"description":"Start URLs. Thomasnet search, heading, or company URLs. Each URL has its own maxResults row limit."},"headingSlug":{"type":"string","description":"Heading slug. Heading slug such as cnc-machining, or a category slug for browse or taxonomy mode."},"headingId":{"type":"string","description":"Heading ID. Numeric Thomasnet heading identifier, such as 45330503. Use it for a supplier heading list or to scope filter references."},"market":{"type":"string","enum":["usa"],"description":"Market. United States industrial supplier directory. Only usa is supported.","default":"usa","example":"usa"},"suggestType":{"type":"string","enum":["HEADINGS_FAMILY","HEADINGS","CATEGORIES","BRANDS","PRODUCTS","CAD","COMPANIES","COMPANY","AUTO","GEO","POPULAR"],"description":"Suggest facet. Suggestion group for suggest mode: category families, brands, products, CAD models, companies, autocomplete, locations, or popular searches. POPULAR needs no query; HEADINGS and CATEGORIES mean category families, and COMPANY means companies.","default":"HEADINGS_FAMILY","example":"HEADINGS_FAMILY"},"zip":{"type":"string","description":"ZIP code. ZIP code for a geographic supplier keyword search."},"radius":{"type":"string","description":"Radius. Search radius in miles, entered as a whole-number string together with zip."},"filterIds":{"type":"array","items":{"type":"string"},"description":"Filter IDs. Optional filter IDs from filters mode. Accepted for compatibility, but ignored by Thomasnet guest search; do not rely on them to restrict results."},"taxonomyFamilyId":{"type":"string","description":"Taxonomy family ID. Optional Thomasnet taxonomyFamilyId filter for supplier_search (GetCompaniesTextGuided).","default":""},"supplementHeading":{"type":"boolean","description":"Supplement heading shortlist. When enabled in heading mode, backfill beyond the curated GetCompanies shortlist via GetCompaniesTextGuided filtered to matching headingId.","default":false,"example":false},"maxPages":{"type":"integer","minimum":1,"maximum":40,"description":"Max pages. Page limit for catalog and enumerate modes. The default 1 follows maxResults; a value above 1 caps the pages read.","default":1,"example":1},"enrichDetails":{"type":"boolean","description":"Enrich details. Add available company profile information to supplier rows from search, heading, and enumerate modes. Enabled by default; this does not add separately billed profile rows.","default":true,"example":true},"includeProducts":{"type":"boolean","description":"Include products as rows. Add supplier products as separate billed rows; off by default. Supplier and product rows share the input limit, while catalog mode returns catalog rows regardless of this setting.","default":false,"example":false},"includeStreet":{"type":"boolean","description":"Include street address. Include published street and unit details by default. Turning this off removes street, unit, address1-3, and the combined full address, including enriched rows.","default":true,"example":true},"redactPhones":{"type":"boolean","description":"Redact phones. Mask phone numbers across primaryPhone, phones[], and personnel by default (omitting e164). Set to false to return unmasked company phone numbers.","default":true,"example":true},"fields":{"type":"array","items":{"type":"string"},"description":"Output fields. Select output field names, or leave empty for the normal output; [\"*\"] requests all available fields. Selecting fewer fields does not turn off enrichDetails."},"maxResults":{"type":"integer","minimum":1,"maximum":20,"description":"Max rows per input (each listed URL, ID or keyword; a single target counts as one input). All row types share this allowance. Each plan caps the rows of one request (BASIC 10, PRO 70, ULTRA 200, MEGA 500); larger values are lowered to your plan's cap. You pay per delivered row (Rows).","default":10,"example":3},"requestId":{"type":"string","pattern":"^[A-Za-z0-9._:-]{1,80}$","description":"Optional. Your id for this request: repeating it while the job runs returns the same job."}}},"example":{"query":"precision castings","maxResults":3}}}},"responses":{"200":{"description":"Done within the request: the rows.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RowsPage"}}}},"404":{"description":"No results matched the query (nothing was billed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid or missing parameters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"At capacity, too many running jobs, or rolling 24-hour row limit reached; retry after Retry-After seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"The source could not be collected this time (not billed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"504":{"description":"Synchronous timeout reached before completion; task cancelled (nothing was billed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/companies":{"post":{"operationId":"companies","summary":"Supplier company details by URL, slug or tgramsId","description":"Detailed US supplier rows for a given companyUrl, detailUrls, tgramsId or companySlug. Fixed for this endpoint: mode=\"company\".","tags":["companies"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"companyUrl":{"type":"string","description":"Company profile URL. A Thomasnet company profile URL ending in /company/<name>-<id>/profile. This is one input with its own maxResults row limit."},"detailUrls":{"type":"array","items":{"type":"string"},"description":"Detail URLs. Thomasnet company profile URLs ending in /company/<name>-<id>/profile. Each URL has its own maxResults row limit."},"tgramsId":{"type":"string","description":"Company tgramsId. Numeric Thomasnet company identifier for a company profile run."},"companySlug":{"type":"string","description":"Company slug. Optional company URL slug to use with tgramsId, such as electro-plastics."},"startUrls":{"type":"array","items":{"type":"string"},"description":"Start URLs. Thomasnet search, heading, or company URLs. Each URL has its own maxResults row limit."},"enrichDetails":{"type":"boolean","description":"Enrich details. Add available company profile information to supplier rows from search, heading, and enumerate modes. Enabled by default; this does not add separately billed profile rows.","default":true,"example":true},"includeProducts":{"type":"boolean","description":"Include products as rows. Add supplier products as separate billed rows; off by default. Supplier and product rows share the input limit, while catalog mode returns catalog rows regardless of this setting.","default":false,"example":false},"includeStreet":{"type":"boolean","description":"Include street address. Include published street and unit details by default. Turning this off removes street, unit, address1-3, and the combined full address, including enriched rows.","default":true,"example":true},"redactPhones":{"type":"boolean","description":"Redact phones. Mask phone numbers across primaryPhone, phones[], and personnel by default (omitting e164). Set to false to return unmasked company phone numbers.","default":true,"example":true},"fields":{"type":"array","items":{"type":"string"},"description":"Output fields. Select output field names, or leave empty for the normal output; [\"*\"] requests all available fields. Selecting fewer fields does not turn off enrichDetails."},"maxResults":{"type":"integer","minimum":1,"maximum":20,"description":"Max rows per input (each listed URL, ID or keyword; a single target counts as one input). All row types share this allowance. Each plan caps the rows of one request (BASIC 10, PRO 70, ULTRA 200, MEGA 500); larger values are lowered to your plan's cap. You pay per delivered row (Rows).","default":10,"example":3},"requestId":{"type":"string","pattern":"^[A-Za-z0-9._:-]{1,80}$","description":"Optional. Your id for this request: repeating it while the job runs returns the same job."}}},"example":{"companyUrl":"https://www.thomasnet.com/company/electro-plastics-30989688/profile","maxResults":3}}}},"responses":{"200":{"description":"Done within the request: the rows.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RowsPage"}}}},"404":{"description":"No results matched the query (nothing was billed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid or missing parameters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"At capacity, too many running jobs, or rolling 24-hour row limit reached; retry after Retry-After seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"The source could not be collected this time (not billed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"504":{"description":"Synchronous timeout reached before completion; task cancelled (nothing was billed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/health":{"get":{"operationId":"health","summary":"API health check","description":"Lightweight readiness check for this API. Never starts a collection and always bills 0 rows.","tags":["health"],"responses":{"200":{"description":"API is operational (0 rows).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthStatus"}}}},"503":{"description":"API is temporarily unavailable (not billed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthStatus"}}}}}}}},"components":{"schemas":{"Row":{"type":"object","properties":{"rowType":{"type":"string","description":"Across all 9 live modes, rows use 7 concrete types: supplier, product, heading, category, catalog_item, suggestion, or filter. The entity value is retained for backward compatibility.","enum":["supplier","product","entity","heading","category","catalog_item","suggestion","filter"]},"id":{"type":"string","description":"Identifier for the entity in this row."},"supplierId":{"nullable":true,"type":"string","description":"Supplier tgramsId this row belongs to (supplier and product rows)."},"supplierName":{"nullable":true,"type":"string","description":"Parent supplier name (product rows only)."},"supplierUrl":{"nullable":true,"type":"string","description":"Parent supplier profile URL (product rows only)."},"productId":{"nullable":true,"type":"string","description":"Product identifier combining the supplier ID with a product-specific ID."},"productCount":{"nullable":true,"type":"integer","description":"Size of the complete products list returned by company detail with includeProducts=true, before the row budget is applied (supplier rows only). Empty detail list is 0; search previews, unrequested, missing or null detail lists yield null."},"subproductCount":{"nullable":true,"type":"integer","description":"Nested child products returned with this product row (detail queries only, capped by the source page size). Null when not collected."},"recordType":{"nullable":true,"type":"string","enum":["supplier","supplier_enriched","company","heading","category","catalog_item","product","entity","suggestion","filter"]},"suggestType":{"nullable":true,"type":"string","description":"Suggestion group selected for the request, such as headings_family, companies, geo, or popular."},"typename":{"nullable":true,"type":"string","description":"Source-provided subtype of a suggestion."},"term":{"nullable":true,"type":"string","description":"suggestion/popular term"},"count":{"nullable":true,"type":"integer","description":"suggestion count"},"popularity":{"nullable":true,"description":"suggestion score"},"filterId":{"nullable":true,"type":"string","description":"Identifier of a supplier filter reference."},"section":{"nullable":true,"type":"string","description":"filter rows: owning section (e.g. Locations Served)"},"field":{"nullable":true,"type":"string","description":"Source field associated with a filter reference."},"parentSlug":{"nullable":true,"type":"string","description":"taxonomy/category rows: parent slug"},"rootSlug":{"nullable":true,"type":"string","description":"taxonomy/category rows: root category slug"},"familyId":{"nullable":true,"type":"string","description":"Identifier of the family containing a heading."},"familyName":{"nullable":true,"type":"string","description":"heading rows: MLLP family name"},"tgramsId":{"nullable":true,"type":"string","description":"Thomas primary key"},"catalogId":{"nullable":true,"type":"string","description":"Catalog entity id (catalog_item rows)"},"categoryId":{"nullable":true,"type":"string","description":"Browse category id (category rows)"},"headingId":{"nullable":true,"type":"string","description":"Heading id (heading rows + supplier heading object)"},"slug":{"nullable":true,"type":"string","description":"URL slug for heading/category rows"},"naturalName":{"nullable":true,"type":"string","description":"Natural-language heading name"},"name":{"nullable":true,"type":"string","description":"Published name of the entity represented by this row."},"title":{"nullable":true,"type":"string","description":"Alias of name"},"url":{"nullable":true,"type":"string","description":"Synthesized profile / heading / catalog URL"},"profileUrl":{"nullable":true,"type":"string","description":"Company /company/{slug}-{tgramsId}/profile"},"thomasUrl":{"nullable":true,"type":"string","description":"Catalog item URL on thomasnet.com"},"imageUrl":{"nullable":true,"type":"string","description":"Catalog item image"},"website":{"nullable":true,"type":"string","description":"Published supplier website URL."},"logoUrl":{"nullable":true,"type":"string","description":"Published supplier logo image URL."},"logoTitle":{"nullable":true,"type":"string","description":"Source-provided title of the supplier logo."},"description":{"nullable":true,"type":"string","description":"HTML-stripped description/descriptionByCompany"},"descriptionByCompany":{"nullable":true,"type":"string","description":"Raw supplier-authored description (enumerate surface)"},"pdmText":{"nullable":true,"type":"string","description":"HTML-stripped pdm_text"},"annualSales":{"nullable":true,"type":"string","description":"Annual sales range reported by Thomasnet."},"numberEmployees":{"nullable":true,"type":"string","description":"Employee count range reported by Thomasnet."},"yearFounded":{"nullable":true,"type":"string","description":"Published company founding year."},"primaryPhone":{"nullable":true,"type":"string","description":"Plaintext or redacted per redactPhones"},"source":{"nullable":true,"type":"string","description":"Constant 'thomasnet.com'","enum":["thomasnet.com"]},"sourceUrl":{"nullable":true,"type":"string","description":"Source URL associated with the collected row."},"scrapedAt":{"nullable":true,"type":"string","description":"ISO-8601 UTC row-generation time"},"tier":{"nullable":true,"type":"string","description":"Thomas tier (passthrough)"},"type":{"nullable":true,"type":"string","description":"Thomas company type (passthrough)"},"rank":{"nullable":true,"description":"Thomas search rank"},"distance":{"nullable":true,"description":"Distance when zip/radius supplied"},"catalogType":{"nullable":true,"type":"string","description":"Thomas catalog type (passthrough)"},"itemCount":{"nullable":true,"type":"integer","description":"Catalog item count"},"partNumber":{"nullable":true,"type":"string","description":"Catalog part number"},"categoryCount":{"nullable":true,"type":"integer","description":"Category children count (category rows)"},"companyCount":{"nullable":true,"type":"integer","description":"Heading company count (heading rows)"},"isAdvertiser":{"nullable":true,"type":"boolean","description":"Whether Thomasnet marks the supplier as an advertiser."},"isClaimed":{"nullable":true,"type":"boolean","description":"Whether Thomasnet marks the company profile as claimed."},"isMultiLocation":{"nullable":true,"type":"boolean","description":"Whether Thomasnet marks the supplier as having multiple locations."},"isTopResponder":{"nullable":true,"type":"boolean","description":"Whether Thomasnet marks the supplier as a top responder."},"isAffiliationPage":{"nullable":true,"type":"boolean","description":"Whether Thomasnet marks the profile as an affiliation page."},"xometryVerified":{"nullable":true,"type":"boolean","description":"Whether the supplier carries the source-provided Xometry verification flag."},"mainLocationTgramsId":{"nullable":true,"type":"string","description":"Thomasnet identifier of the supplier's main location."},"mainLocationName":{"nullable":true,"type":"string","description":"Published name of the supplier's main location."},"heading":{"nullable":true,"type":"object","description":"Primary heading (singular). {headingId,name,naturalName,familyName,familyId,description,url}"},"headings":{"nullable":true,"type":"array","description":"All associated headings (plural)","items":{"type":"object"}},"capabilities":{"nullable":true,"type":"array","description":"Supplier capabilities listed by Thomasnet.","items":{}},"families":{"nullable":true,"type":"array","description":"Thomasnet classification families associated with the supplier.","items":{}},"locationTypes":{"nullable":true,"type":"array","description":"Source-provided location type identifiers and names.","items":{"type":"object"}},"otherActivities":{"nullable":true,"type":"array","description":"Enumerate surface","items":{}},"premiums":{"nullable":true,"type":"array","description":"Enumerate surface","items":{}},"headingBrands":{"nullable":true,"type":"array","description":"Brand entries associated with supplier headings.","items":{"type":"object"}},"certificationTotals":{"nullable":true,"type":"array","description":"[{type,count}] rollups","items":{"type":"object"}},"certifications":{"nullable":true,"type":"array","description":"Detail rows (enrich only)","items":{"type":"object"}},"brands":{"nullable":true,"type":"array","description":"Detail rows (enrich only)","items":{"type":"object"}},"videos":{"nullable":true,"type":"array","description":"Search cards preview first 2; enrich lists all","items":{"type":"object"}},"products":{"nullable":true,"type":"array","description":"With includeProducts enabled, supplier products are delivered as separate rows.","items":{"type":"object"}},"attributes":{"nullable":true,"type":"array","description":"Catalog item attributes","items":{}},"company":{"nullable":true,"type":"object","description":"Catalog_item rows: nested {tgramsId,name,website} subset"},"phones":{"nullable":true,"type":"array","description":"Published business phone entries; values are masked and e164 is omitted when redactPhones is true (default).","items":{"type":"object","properties":{"value":{"type":"string"},"type":{"nullable":true,"type":"string","description":"Line type when the source provides one; absent/null on Thomasnet (source does not type phone numbers)."},"e164":{"nullable":true,"type":"string","description":"+1-prefixed NANP e164"}}}},"emails":{"nullable":true,"type":"array","description":"Empty for the supported public records. The reason code in leadAbsences indicates that email addresses are not available on the site.","items":{"type":"object","properties":{"value":{"type":"string"},"type":{"type":"string"}}}},"address":{"nullable":true,"type":"object","description":"Dual-track: raw keys (address1/2/3, city, state, stateName, zip, zip4, county, country, latitude, longitude) plus normalized lead keys (street=address1, unit=address2, locality=city, region=state|stateName, postalCode=zip, full=concatenated). includeStreet=false drops street/unit/address1-3/full.","properties":{"street":{"nullable":true,"type":"string","description":"= address1"},"unit":{"nullable":true,"type":"string","description":"= address2"},"locality":{"nullable":true,"type":"string","description":"= city"},"region":{"nullable":true,"type":"string","description":"= state | stateName"},"postalCode":{"nullable":true,"type":"string","description":"= zip"},"country":{"nullable":true,"type":"string"},"full":{"nullable":true,"type":"string","description":"street+unit+locality+region+postal+country concat"},"address1":{"nullable":true,"type":"string"},"address2":{"nullable":true,"type":"string"},"address3":{"nullable":true,"type":"string"},"city":{"nullable":true,"type":"string"},"state":{"nullable":true,"type":"string"},"stateName":{"nullable":true,"type":"string"},"zip":{"nullable":true,"type":"string"},"zip4":{"nullable":true,"type":"string"},"county":{"nullable":true,"type":"string"},"latitude":{"nullable":true,"type":"number"},"longitude":{"nullable":true,"type":"number"}}},"geo":{"nullable":true,"type":"object","description":"Published location coordinates normalized to lat and lng.","properties":{"lat":{"nullable":true,"type":"number"},"lng":{"nullable":true,"type":"number"}}},"person":{"nullable":true,"type":"object","description":"Primary contact — first non-empty personnel[].name (not all personnel)","properties":{"name":{"nullable":true,"type":"string"},"role":{"nullable":true,"type":"string"}}},"org":{"nullable":true,"type":"object","description":"Organization name and Thomasnet company identifier associated with the row.","properties":{"name":{"nullable":true,"type":"string"},"id":{"nullable":true,"type":"string","description":"= tgramsId"}}},"web":{"nullable":true,"type":"object","description":"Published supplier website and deduplicated social profile URLs.","properties":{"website":{"nullable":true,"type":"string"},"socials":{"nullable":true,"type":"array","description":"Flat list of social URLs (deduped http*)","items":{"type":"string"}}}},"leadSource":{"nullable":true,"type":"string","description":"Source of the contact information: search, enumerate, detail, or catalog.","enum":["search","enumerate","detail","catalog"]},"leadReveal":{"nullable":true,"type":"string","description":"Whether a public phone number was found: visible when present, otherwise absent.","enum":["visible","absent"]},"leadAbsences":{"nullable":true,"type":"object","description":"Keys: emails|phones|address|person|org|web. Values indicate whether the field is not on the source (with quality.evidence saying where it was checked), partially missing, or not carried on the source page or API used for this row.","additionalProperties":{"type":"string","pattern":"^(本站无(：.+)?|Not on source(: .+)?|部分|未采集|(partial|not_collected|not_extracted|not_on_list_page|not_verified)( \\(.+\\))?)$"}},"absenceReasons":{"type":"object","description":"Structured per-field empty reason codes (absent_on_site, not_requested, not_in_surface, partial, not_applicable).","additionalProperties":{"type":"string","enum":["absent_on_site","not_requested","not_in_surface","partial","not_applicable"]}},"personnel":{"nullable":true,"type":"array","description":"Published personnel names and job titles, with phone fields masked when redactPhones is true (default).","items":{"type":"object","properties":{"name":{"nullable":true,"type":"string"},"title":{"nullable":true,"type":"string"}}}},"social":{"nullable":true,"type":"array","description":"Published social entries. An accountId may be a full URL, an account name, or a path; only published full URLs are included in web.socials.","items":{"type":"object","properties":{"type":{"nullable":true,"type":"string"},"accountId":{"nullable":true,"type":"string","description":"Published social account value; not necessarily a full URL."}}}},"quality":{"nullable":true,"type":"object","description":"Per-field data provenance and absence metadata attached during normalization.","additionalProperties":true},"isCad":{"nullable":true,"type":"boolean","description":"Whether Thomasnet marks the product or catalog item as having CAD models available."},"subtitle":{"nullable":true,"type":"string","description":"Secondary label or location/category subtitle returned on suggestion items."},"totalCount":{"nullable":true,"type":"integer","description":"Upstream total match count associated with a catalog or directory response."},"address1":{"nullable":true,"type":"string","description":"First address line returned as a top-level field by Thomasnet."},"address2":{"nullable":true,"type":"string","description":"Second address line returned as a top-level field by Thomasnet."},"address3":{"nullable":true,"type":"string","description":"Third address line returned as a top-level field by Thomasnet."},"city":{"nullable":true,"type":"string","description":"City returned as a top-level address field or suggestion location."},"state":{"nullable":true,"type":"string","description":"State or province code returned as a top-level address field or suggestion location."},"stateName":{"nullable":true,"type":"string","description":"Full state or province name returned as a top-level address field."},"zip":{"nullable":true,"type":"string","description":"ZIP or postal code returned as a top-level address field or suggestion location."},"zip4":{"nullable":true,"type":"string","description":"Four-digit ZIP code extension returned as a top-level address field."},"country":{"nullable":true,"type":"string","description":"Country returned as a top-level address field or suggestion location."},"county":{"nullable":true,"type":"string","description":"County returned as a top-level address field."},"latitude":{"nullable":true,"description":"Published latitude coordinate, returned as a number or numeric string."},"longitude":{"nullable":true,"description":"Published longitude coordinate, returned as a number or numeric string."},"supplierAddress":{"nullable":true,"type":"object","description":"Product rows: parent supplier address passthrough."},"supplierGeo":{"nullable":true,"type":"object","description":"Product rows: parent supplier geo passthrough."}},"additionalProperties":true,"description":"One collected entity. Field availability depends on rowType and the source. Fields always present (a|b = at least one of them): every row: id; rowType=supplier: id, name, url."},"Error":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/ErrorDetail"}}},"ErrorDetail":{"type":"object","required":["code","message","retryable"],"properties":{"code":{"type":"string","example":"invalid_input"},"message":{"type":"string"},"retryable":{"type":"boolean"}}},"JobStatus":{"type":"object","properties":{"jobId":{"type":"string"},"status":{"type":"string","enum":["queued","running","succeeded","partial","failed","cancelled"]},"done":{"type":"boolean"},"rowsAvailable":{"type":"integer"},"rowsDelivered":{"type":"integer","description":"Rows already delivered (and billed) to you for this job."},"rowsLimit":{"type":"integer","description":"Most rows this job can deliver."},"estimatedFinishSec":{"type":"integer","description":"While running: estimated seconds until done."},"statusUrl":{"type":"string"},"resultsUrl":{"type":"string"},"expiresAt":{"type":"string","format":"date-time"},"retentionHours":{"type":"integer"},"error":{"$ref":"#/components/schemas/ErrorDetail"}}},"RowsPage":{"allOf":[{"$ref":"#/components/schemas/JobStatus"},{"type":"object","properties":{"offset":{"type":"integer"},"nextOffset":{"type":"integer"},"hasMore":{"type":"boolean"},"rowCount":{"type":"integer"},"rowsBilled":{"type":"integer","description":"Rows delivered by this response."},"rows":{"type":"array","items":{"$ref":"#/components/schemas/Row"}},"meta":{"type":"object","additionalProperties":true}}}]},"HealthStatus":{"type":"object","required":["ok","site","status","endpoints","rowsBilled"],"properties":{"ok":{"type":"boolean"},"site":{"type":"string"},"status":{"type":"string","enum":["operational","unavailable"]},"endpoints":{"type":"array","items":{"type":"string"}},"rowsBilled":{"type":"integer"}}}}}}