{"openapi":"3.1.0","info":{"title":"Govseer API","version":"1.1.1","summary":"Product compliance from the documents you already have: EU CLP labels and SDS checks from a safety data sheet, CPSC certificates from a lab test report.","description":"Send a safety data sheet, get back what an online listing must show under the EU CLP Regulation (Article 48a, from 1 January 2028): pictograms, signal word, hazard and precautionary statements in their official wording, the \"Contains\" line and what the sheet leaves open, in any of the 24 EU languages. Also the hazard fields bol.com, eBay and Amazon EU ask sellers for. Wording comes only from the official texts of the Regulation. Also: a safety data sheet checked against OSHA's Hazard Communication Standard (2024) and Canada's WHMIS, with the rule behind each gap; and CPSC eFiling certificates drafted from any lab's test report and filed into the importer's own Product Registry. The result is a tool, not legal advice.","termsOfService":"https://govseer.com/terms","contact":{"name":"Govseer support","url":"https://govseer.com/support"},"x-logo":{"url":"https://govseer.com/favicon.svg"}},"externalDocs":{"description":"Guide with examples","url":"https://govseer.com/docs/api"},"servers":[{"url":"https://govseer-api-823928849037.europe-west1.run.app"}],"security":[{"apiKey":[]}],"tags":[{"name":"Labels","description":"Read a safety data sheet and get the label in the shop's languages."},{"name":"Marketplaces","description":"The hazard fields marketplaces ask sellers for."},{"name":"Shipping","description":"The transport fields shipping software needs per product, from the sheet."},{"name":"Safety data sheets","description":"Safety data sheets checked against OSHA HCS 2024 and WHMIS."},{"name":"Upcoming rules","description":"Rule changes ahead, with dates and official sources. No key needed."},{"name":"CPSC certificates","description":"Certificates for CPSC eFiling from any lab's test report, filed into the importer's own Product Registry. The importer remains the certifier."}],"paths":{"/api/v1/check":{"post":{"operationId":"checkSheet","tags":["Labels"],"summary":"Read a safety data sheet and return its label","description":"Counts one check against the account's monthly allowance. With `lang`, the answer is one label. With `langs`, the sheet is read once (still one check) and the answer has the extraction and one label per language. A check takes 10 to 60 seconds; allow a timeout of at least 90.","parameters":[{"name":"lang","in":"query","required":false,"description":"Language of the label (one). The sheet itself may be in any of them.","schema":{"type":"string","enum":["BG","CS","DA","DE","EL","EN","ES","ET","FI","FR","GA","HR","HU","IT","LT","LV","MT","NL","PL","PT","RO","SK","SL","SV"],"default":"EN"}},{"name":"langs","in":"query","required":false,"description":"Several label languages at once, comma-separated, instead of `lang`.","schema":{"type":"string","pattern":"^[A-Z]{2}(,[A-Z]{2})*$"},"example":"DE,FR,NL"},{"name":"ui","in":"query","required":false,"description":"Language of the findings.","schema":{"type":"string","enum":["EN","DE","FR","NL","IT","ES","PL"],"default":"EN"}}],"requestBody":{"required":true,"description":"The safety data sheet as a PDF, up to 10 MB. It is read once and not stored.","content":{"application/pdf":{"schema":{"type":"string","format":"binary"}}}},"responses":{"200":{"description":"The label (with `lang`) or the extraction and one label per language (with `langs`).","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CheckResult"},{"$ref":"#/components/schemas/MultiLabel"}]}}}},"400":{"description":"Unknown language, or the body is not a PDF.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"language"}}},"x-error-codes":["language","not_pdf"]},"401":{"description":"Missing, wrong or revoked key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"api_key"}}},"x-error-codes":["api_key"]},"413":{"description":"Larger than 10 MB.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"too_large"}}},"x-error-codes":["too_large"]},"429":{"description":"This month's free sheets and any packs are used up (usage says how many; they renew on the 1st, UTC). Paid API plans don't stop: extra sheets are charged next month.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"monthly_limit"}}},"x-error-codes":["monthly_limit","daily_limit"]},"502":{"description":"The sheet could not be read. Not counted; try again or check the file.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"read_failed"}}},"x-error-codes":["read_failed"]}}}},"/api/v1/marketplace-fields":{"post":{"operationId":"marketplaceFields","tags":["Marketplaces"],"summary":"The hazard fields for bol.com, eBay and Amazon EU from one sheet","description":"Counts one check. CAS and EC numbers and ingredients come from section 3 of the sheet as printed; nothing is looked up.","parameters":[{"name":"langs","in":"query","required":false,"description":"The languages you sell in; each marketplace answers in those it uses (bol.com always in NL and FR). Default EN.","schema":{"type":"string","pattern":"^[A-Z]{2}(,[A-Z]{2})*$"},"example":"DE,FR,NL"},{"name":"name","in":"query","required":false,"description":"The product's name; without it, the sheet's product name is used.","schema":{"type":"string","maxLength":200}},{"name":"quantity","in":"query","required":false,"description":"Nominal quantity, such as 500 ml.","schema":{"type":"string","maxLength":40}},{"name":"ui","in":"query","required":false,"description":"Language of the findings.","schema":{"type":"string","enum":["EN","DE","FR","NL","IT","ES","PL"],"default":"EN"}}],"requestBody":{"required":true,"description":"The safety data sheet as a PDF, up to 10 MB. It is read once and not stored.","content":{"application/pdf":{"schema":{"type":"string","format":"binary"}}}},"responses":{"200":{"description":"The extraction, one label per language and the fields per marketplace.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/MultiLabel"},{"type":"object","required":["markets"],"properties":{"markets":{"type":"array","items":{"$ref":"#/components/schemas/Market"}}}}]}}}},"400":{"description":"Unknown language, or the body is not a PDF.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"language"}}},"x-error-codes":["language","not_pdf"]},"401":{"description":"Missing, wrong or revoked key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"api_key"}}},"x-error-codes":["api_key"]},"413":{"description":"Larger than 10 MB.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"too_large"}}},"x-error-codes":["too_large"]},"429":{"description":"This month's free sheets and any packs are used up (usage says how many; they renew on the 1st, UTC). Paid API plans don't stop: extra sheets are charged next month.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"monthly_limit"}}},"x-error-codes":["monthly_limit","daily_limit"]},"502":{"description":"The sheet could not be read. Not counted; try again or check the file.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"read_failed"}}},"x-error-codes":["read_failed"]}}}},"/api/v1/shipping-fields":{"post":{"operationId":"shippingFields","tags":["Shipping"],"summary":"UN number, proper shipping name, class and packing group from one sheet","description":"Reads section 14 of the sheet as printed, one entry per transport mode, and picks the US (DOT) entry when there is one. Adds whether US ground transport may use the limited quantity exception for that class and packing group, with the inner packaging limit and the rule in 49 CFR part 173; this holds only where the Hazardous Materials Table entry (column 8A) lists the exception, and not by air. Flags where sections 2, 9 and 14 disagree. Nothing is classified: the shipper stays responsible. Counts one sheet; nothing is stored.","requestBody":{"required":true,"description":"The safety data sheet as a PDF, up to 10 MB. It is read once and not stored.","content":{"application/pdf":{"schema":{"type":"string","format":"binary"}}}},"responses":{"200":{"description":"The shipping fields.","content":{"application/json":{"schema":{"type":"object","required":["shipping","usage"],"properties":{"shipping":{"$ref":"#/components/schemas/ShippingFields"},"usage":{"$ref":"#/components/schemas/Usage"}}}}}},"400":{"description":"The body is not a PDF.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"not_pdf"}}},"x-error-codes":["not_pdf"]},"401":{"description":"Missing, wrong or revoked key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"api_key"}}},"x-error-codes":["api_key"]},"413":{"description":"Larger than 10 MB.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"too_large"}}},"x-error-codes":["too_large"]},"429":{"description":"This month's free sheets and any packs are used up (usage says how many; they renew on the 1st, UTC). Paid API plans don't stop: extra sheets are charged next month.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"monthly_limit"}}},"x-error-codes":["monthly_limit"]},"502":{"description":"The sheet could not be read. Not counted; try again or check the file.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"read_failed"}}},"x-error-codes":["read_failed"]}}}},"/api/v1/sds-check":{"post":{"operationId":"checkSdsCompliance","tags":["Safety data sheets"],"summary":"Check a safety data sheet against OSHA HCS 2024 and WHMIS","description":"Reads the sheet and lists what is missing or wrong against OSHA's Hazard Communication Standard as amended in 2024 (29 CFR 1910.1200) and Canada's Hazardous Products Regulations (WHMIS), with the rule behind each item. Send the PDF as the body (one sheet), or JSON with the sheet and photos of a container label to check the label against the sheet's section 2 (two sheets). Nothing is stored. A check takes 10 to 60 seconds; allow a timeout of at least 90.","parameters":[{"name":"jur","in":"query","required":false,"description":"Which rules: `us`, `ca`, or both.","schema":{"type":"string","enum":["us,ca","us","ca"],"default":"us,ca"}}],"requestBody":{"required":true,"content":{"application/pdf":{"schema":{"type":"string","format":"binary"}},"application/json":{"schema":{"type":"object","required":["sheet"],"properties":{"sheet":{"type":"string","contentEncoding":"base64","description":"The safety data sheet (PDF)."},"label":{"type":"object","required":["files"],"properties":{"files":{"type":"array","minItems":1,"maxItems":4,"items":{"type":"object","required":["data"],"properties":{"data":{"type":"string","contentEncoding":"base64","description":"JPEG, PNG, WebP or PDF."},"name":{"type":"string"}}}},"capacity":{"type":"string","enum":["over100","upTo100","upTo3"],"default":"over100","description":"Container size: over 100 ml, up to 100 ml, or up to 3 ml (small-container rules)."}}}}}}}},"responses":{"200":{"description":"The gaps per jurisdiction, and the label check if a label was sent.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SdsCheckResult"}}}},"400":{"description":"Unknown jurisdiction, the sheet is not a PDF, or the label files are missing or not an image or PDF.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"jurisdiction"}}},"x-error-codes":["jurisdiction","not_pdf","json","files","file_type"]},"401":{"description":"Missing, wrong or revoked key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"api_key"}}},"x-error-codes":["api_key"]},"413":{"description":"Larger than 10 MB.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"too_large"}}},"x-error-codes":["too_large"]},"429":{"description":"This month's free sheets and any packs are used up (usage says how many; they renew on the 1st, UTC). Paid API plans don't stop: extra sheets are charged next month.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"monthly_limit"}}},"x-error-codes":["monthly_limit"]},"502":{"description":"The sheet or label could not be read. Not counted; try again or check the file.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"read_failed"}}},"x-error-codes":["read_failed"]}}}},"/api/v1/cpsc/certificates":{"post":{"operationId":"readLabReport","tags":["CPSC certificates"],"summary":"Read a lab test report and draft its certificate","description":"Reads one lab test report (up to 4 files: the report and its annexes) and drafts a certificate: each CPSC citation code with the report line behind it, the lab checked against CPSC's list of accepted labs and their scope, the certificate type from the age grade, and every field checked. Counts 10 sheets. The report itself is not kept; what was read is saved in the account, where the CPSC eFiling app on govseer.com shows it too. A long report takes up to 3 minutes; allow a timeout of at least 200 seconds.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["files"],"properties":{"files":{"type":"array","minItems":1,"maxItems":4,"items":{"type":"object","required":["data"],"properties":{"data":{"type":"string","contentEncoding":"base64","description":"PDF, JPEG, PNG or WebP."},"name":{"type":"string"}}}}}}}}},"responses":{"200":{"description":"The drafted certificate with its checks.","content":{"application/json":{"schema":{"type":"object","required":["certificate","usage"],"properties":{"certificate":{"$ref":"#/components/schemas/Certificate"},"usage":{"$ref":"#/components/schemas/Usage"}}}}}},"400":{"description":"Not JSON, or no files, more than 4, or a file that is not a PDF or image.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"json"}}},"x-error-codes":["json","files"]},"401":{"description":"Missing, wrong or revoked key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"api_key"}}},"x-error-codes":["api_key"]},"422":{"description":"No test results found: not a lab test report. Not counted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"no_tests"}}},"x-error-codes":["no_tests"]},"429":{"description":"This month's free sheets and any packs are used up. Paid API plans don't stop: extra sheets are charged next month.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"monthly_limit"}}},"x-error-codes":["monthly_limit"]},"502":{"description":"The report could not be read. Not counted; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"read_failed"}}},"x-error-codes":["read_failed"]}}},"get":{"operationId":"listCertificates","tags":["CPSC certificates"],"summary":"Certificates in the account, with their checks","description":"Not counted.","responses":{"200":{"description":"Newest first.","content":{"application/json":{"schema":{"type":"object","required":["certificates"],"properties":{"certificates":{"type":"array","items":{"$ref":"#/components/schemas/Certificate"}}}}}}},"401":{"description":"Missing, wrong or revoked key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"api_key"}}},"x-error-codes":["api_key"]}}}},"/api/v1/cpsc/certificates/{id}":{"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"get":{"operationId":"getCertificate","tags":["CPSC certificates"],"summary":"One certificate with its checks","responses":{"200":{"description":"The certificate.","content":{"application/json":{"schema":{"type":"object","required":["certificate"],"properties":{"certificate":{"$ref":"#/components/schemas/Certificate"}}}}}},"401":{"description":"Missing, wrong or revoked key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"api_key"}}},"x-error-codes":["api_key"]},"404":{"description":"No such certificate in this account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"not_found"}}},"x-error-codes":["not_found"]}}},"patch":{"operationId":"updateCertificate","tags":["CPSC certificates"],"summary":"Complete or correct the certificate","description":"Confirm or reject proposed codes, add exclusions, and complete the fields CPSC needs (product, importer, manufacturer, lab, contact). The checks run again on the answer. Not counted.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"draft":{"type":"object","description":"Fields to change, as in `work.draft`."},"citations":{"type":"object","additionalProperties":{"type":"string","enum":["confirmed","rejected"]},"description":"Code to its state."},"exclusions":{"type":"array","items":{"type":"string"}}}}}}},"responses":{"200":{"description":"The updated certificate.","content":{"application/json":{"schema":{"type":"object","required":["certificate"],"properties":{"certificate":{"$ref":"#/components/schemas/Certificate"}}}}}},"400":{"description":"Not JSON.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"json"}}},"x-error-codes":["json"]},"401":{"description":"Missing, wrong or revoked key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"api_key"}}},"x-error-codes":["api_key"]},"404":{"description":"No such certificate in this account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"not_found"}}},"x-error-codes":["not_found"]}}}},"/api/v1/cpsc/export":{"post":{"operationId":"exportCertificates","tags":["CPSC certificates"],"summary":"CPSC's bulk upload file for the ready certificates","description":"For importers who upload to the Product Registry themselves. Only certificates with nothing blocking (`ready`) are included. Not counted.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"ids":{"type":"array","items":{"type":"string","format":"uuid"},"description":"Which ones; all ready ones when left out."}}}}}},"responses":{"200":{"description":"The CSV in CPSC's upload format.","content":{"application/json":{"schema":{"type":"object","required":["csv","count","skipped"],"properties":{"csv":{"type":"string"},"count":{"type":"integer"},"skipped":{"type":"integer","description":"Chosen but not ready."}}}}}},"401":{"description":"Missing, wrong or revoked key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"api_key"}}},"x-error-codes":["api_key"]}}}},"/api/v1/cpsc/file":{"post":{"operationId":"fileCertificates","tags":["CPSC certificates"],"summary":"Send ready certificates to the importer's CPSC Product Registry","description":"Uses the Product Registry connection saved in the account on govseer.com (Account, CPSC eFiling). With `certify: true` they are certified on arrival; the importer remains the certifier. Then follow the import with GET or POST /api/v1/cpsc/filings/{id}. Not counted.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"ids":{"type":"array","items":{"type":"string","format":"uuid"}},"certify":{"type":"boolean","default":false},"collectionId":{"type":"string"}}}}}},"responses":{"200":{"description":"The filing, started.","content":{"application/json":{"schema":{"type":"object","required":["filing"],"properties":{"filing":{"type":"object"}}}}}},"401":{"description":"Missing, wrong or revoked key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"api_key"}}},"x-error-codes":["api_key"]},"429":{"description":"Too many Registry requests; wait a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"rate_limit"}}},"x-error-codes":["rate_limit"]}}}},"/api/v1/cpsc/filings/{id}":{"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"get":{"operationId":"getFiling","tags":["CPSC certificates"],"summary":"One filing and its results","responses":{"200":{"description":"The filing.","content":{"application/json":{"schema":{"type":"object","required":["filing"],"properties":{"filing":{"type":"object"}}}}}},"401":{"description":"Missing, wrong or revoked key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"api_key"}}},"x-error-codes":["api_key"]},"404":{"description":"No such filing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"not_found"}}},"x-error-codes":["not_found"]}}},"post":{"operationId":"followFiling","tags":["CPSC certificates"],"summary":"Follow the import: its status, then CPSC's log","responses":{"200":{"description":"The filing, updated.","content":{"application/json":{"schema":{"type":"object","required":["filing"],"properties":{"filing":{"type":"object"}}}}}},"401":{"description":"Missing, wrong or revoked key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"api_key"}}},"x-error-codes":["api_key"]},"404":{"description":"No such filing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"not_found"}}},"x-error-codes":["not_found"]}}}},"/api/v1/cpsc/codes":{"get":{"operationId":"cpscCodes","tags":["CPSC certificates"],"summary":"CPSC's citation and exclusion codes","description":"The list the certificates are checked against, with its source and date. Not counted.","responses":{"200":{"description":"The codes.","content":{"application/json":{"schema":{"type":"object","required":["source","codes"],"properties":{"source":{"type":"object"},"codes":{"type":"array","items":{"type":"object"}}}}}}},"401":{"description":"Missing, wrong or revoked key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"api_key"}}},"x-error-codes":["api_key"]}}}},"/api/v1/upcoming-rules":{"get":{"operationId":"upcomingRules","tags":["Upcoming rules"],"summary":"Rule changes ahead, with dates and sources","description":"Coming changes to the rules the checks apply (EU CLP, OSHA HCS, WHMIS, Quebec, CPSC eFiling), each with its date, stage and the official text it was checked against. No key needed; not counted.","security":[],"parameters":[{"name":"products","in":"query","required":false,"description":"Comma-separated: hazard-labels, amazon, sds-gap, quebec-label, cpsc. Empty for all.","schema":{"type":"string"},"example":"sds-gap,cpsc"},{"name":"lang","in":"query","required":false,"description":"Language of titles and descriptions.","schema":{"type":"string","enum":["EN","DE","FR","NL","IT","ES","PL"],"default":"EN"}}],"responses":{"200":{"description":"Pending changes first, then upcoming ones by date, then those that applied in the last few months.","content":{"application/json":{"schema":{"type":"object","required":["version","rules"],"properties":{"version":{"type":"string"},"rules":{"type":"array","items":{"type":"object","required":["id","region","date","state","title","text","source","checked"],"properties":{"id":{"type":"string","example":"clp-online-offers"},"region":{"type":"string","enum":["EU","US","CA","QC"]},"date":{"type":["string","null"],"format":"date","description":"The day the change applies; null while not yet adopted."},"state":{"type":"string","enum":["pending","upcoming","since"],"description":"pending: not yet law; upcoming: adopted, date ahead; since: applied recently."},"title":{"type":"string"},"text":{"type":"string","description":"One sentence on what changes."},"source":{"type":"object","properties":{"name":{"type":"string"},"url":{"type":"string","format":"uri"}}},"checked":{"type":"string","format":"date","description":"When the entry was last checked against the source."}}}}}}}}}}}},"/api/v1/render":{"post":{"operationId":"renderLabel","tags":["Labels"],"summary":"Official wording for confirmed codes","description":"Once a person has confirmed the label elements, get the official wording without reading the sheet again. Not counted against checks. Call again when `statementsVersion` changes, so labels keep up with the official texts. Each `product` counts against the plan's products with a label from its first request.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["label","langs","product"],"properties":{"label":{"$ref":"#/components/schemas/ConfirmedLabel"},"langs":{"type":"array","minItems":1,"items":{"type":"string","enum":["BG","CS","DA","DE","EL","EN","ES","ET","FI","FR","GA","HR","HU","IT","LT","LV","MT","NL","PL","PT","RO","SK","SL","SV"]}},"ui":{"type":"string","enum":["EN","DE","FR","NL","IT","ES","PL"],"default":"EN"},"product":{"type":"string","pattern":"^[\\w.:@/-]{1,200}$","description":"Your own id for the product."}}},"example":{"label":{"signalWord":"Danger","pictograms":["GHS05"],"hazardStatements":["H318"],"precautionaryStatements":["P280","P501"],"contains":["citral"],"substance":false,"ufi":"N1QV-R02N-F00K-1HMT"},"langs":["DE","FR"],"ui":"EN","product":"shop.example.com:123"}}}},"responses":{"200":{"description":"One label per language.","content":{"application/json":{"schema":{"type":"object","required":["labels","statementsVersion"],"properties":{"labels":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/CheckResult"}},"statementsVersion":{"type":"string"}}}}}},"400":{"description":"Malformed label elements, languages or product id.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"label"}}},"x-error-codes":["label"]},"401":{"description":"Missing, wrong or revoked key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"api_key"}}},"x-error-codes":["api_key"]},"403":{"description":"All of the plan's products with a label are in use; `products` says how many.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"product_limit"}}},"x-error-codes":["product_limit"]},"429":{"description":"Too many requests in the last hour.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"rate_limit"}}},"x-error-codes":["rate_limit"]}}}},"/api/v1/products/release":{"post":{"operationId":"releaseProduct","tags":["Labels"],"summary":"Free a product's place when its label is removed","description":"A product with no request for 60 days stops counting by itself.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["product"],"properties":{"product":{"type":"string","pattern":"^[\\w.:@/-]{1,200}$"}}},"example":{"product":"shop.example.com:123"}}}},"responses":{"200":{"description":"Released.","content":{"application/json":{"schema":{"type":"object","required":["ok","products"],"properties":{"ok":{"const":true},"products":{"$ref":"#/components/schemas/Products"}}}}}},"400":{"description":"Malformed product id.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"product"}}},"x-error-codes":["product"]},"401":{"description":"Missing, wrong or revoked key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"api_key"}}},"x-error-codes":["api_key"]}}}}},"components":{"securitySchemes":{"apiKey":{"type":"http","scheme":"bearer","bearerFormat":"gsk_live_…","description":"Create a key under API keys on your govseer.com account page. It acts for your account and uses its monthly checks."}},"schemas":{"ShippingFields":{"type":"object","required":["version","notRegulated","modes","limitedQuantity","flags"],"properties":{"version":{"type":"string","description":"Date of the rules applied."},"notRegulated":{"type":"boolean","description":"Every transport mode on the sheet says not regulated."},"unNumber":{"type":["string","null"],"example":"UN1993"},"shippingName":{"type":["string","null"],"example":"Flammable liquid, n.o.s. (ethanol)"},"hazardClass":{"type":["string","null"],"example":"3"},"packingGroup":{"type":["string","null"],"example":"II"},"from":{"type":["string","null"],"description":"The transport mode the fields above come from (the US one when printed)."},"modes":{"type":"array","items":{"type":"object","required":["mode","notRegulated"],"properties":{"mode":{"type":"string"},"notRegulated":{"type":"boolean"},"unNumber":{"type":["string","null"]},"shippingName":{"type":["string","null"]},"hazardClass":{"type":["string","null"]},"packingGroup":{"type":["string","null"]}}}},"limitedQuantity":{"type":"object","required":["eligible"],"properties":{"eligible":{"type":["boolean","null"],"description":"US ground: true when the class and packing group have the exception, false when not, null when the sheet does not settle it."},"innerLimitLiquid":{"type":["string","null"],"example":"1.0 L"},"innerLimitSolid":{"type":["string","null"],"example":"1.0 kg"},"grossLimitKg":{"type":["number","null"],"example":30},"ref":{"type":["string","null"],"example":"49 CFR 173.150(b)(2)"},"note":{"type":["string","null"]}}},"flags":{"type":"array","items":{"type":"string","enum":["flammable_not_regulated","corrosive_not_regulated","class3_without_flammable","class8_without_corrosive","flash_point_low_not_flammable","flash_point_high_but_flammable","un_numbers_differ","no_transport_section"]}},"flashPoint":{"type":["string","null"],"description":"Section 9, as printed."}}},"Certificate":{"type":"object","required":["id","facts","work","issues","ready"],"properties":{"id":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"fileNames":{"type":"array","items":{"type":"string"}},"facts":{"type":"object","description":"What was read from the report: lab, report number and date, product, age grade, overall result, and each test with its line and page."},"work":{"type":"object","description":"The certificate being completed: `draft` (the fields CPSC needs) and each proposed code with its state and the report line behind it."},"unmapped":{"type":"array","items":{"type":"object"},"description":"Passing US test lines with no section printed, for a person to place."},"acceptedLab":{"type":["object","null"],"description":"The CPSC-accepted lab for the lab ID; null when it is not on CPSC's list."},"htsFlag":{"type":["object","null"],"description":"CPSC's flag for the product's HTS code (CP1 or CP2), if listed."},"suggestedType":{"type":["string","null"],"enum":["CPC","GCC",null]},"issues":{"type":"array","items":{"type":"object"},"description":"What blocks filing or needs a look, with the field it concerns."},"ready":{"type":"boolean","description":"Nothing blocks: ready to file or export."},"registry":{"type":["object","null"],"description":"The latest result from CPSC's Product Registry, if sent."}}},"SdsCheckResult":{"type":"object","required":["check","usage"],"properties":{"check":{"type":"object","required":["version","uncertainties"],"properties":{"version":{"type":"string","description":"Version of the rules applied."},"us":{"$ref":"#/components/schemas/SdsGaps"},"ca":{"$ref":"#/components/schemas/SdsGaps"},"uncertainties":{"type":"array","items":{"type":"string"},"description":"What the reader could not settle; a person should look."}}},"label":{"type":"object","description":"Only when a label was sent. `check` is null when the sheet has no section 2 label elements to compare with.","properties":{"reading":{"type":"object","description":"What was read on the label."},"check":{"type":["object","null"]},"reason":{"type":"string"}}},"usage":{"$ref":"#/components/schemas/Usage"}}},"SdsGaps":{"type":"object","required":["items","gaps","checks"],"properties":{"gaps":{"type":"integer","description":"Items that need work."},"checks":{"type":"integer","description":"Items checked."},"written2012Only":{"type":"boolean","description":"US only: the sheet follows the 2012 standard and not yet the 2024 changes."},"items":{"type":"array","items":{"type":"object","required":["id","status","section","ref"],"properties":{"id":{"type":"string"},"status":{"type":"string","description":"ok, gap, or check (a person should look)."},"section":{"type":"integer","minimum":1,"maximum":16},"ref":{"type":"string","description":"The rule, such as 29 CFR 1910.1200(g)(2)(i) or HPR Sch. 1 item 3."},"detail":{"type":"object"}}}}}},"Error":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"usage":{"$ref":"#/components/schemas/Usage"},"products":{"$ref":"#/components/schemas/Products"}}},"Usage":{"type":"object","required":["month","checks","limit"],"description":"This month's sheets on the account's API plan.","properties":{"month":{"type":"string","example":"2026-12"},"checks":{"type":"integer","description":"Sheets read this month."},"limit":{"type":"integer","description":"The plan's sheets a month."},"plan":{"type":"string","example":"API Starter"},"packs":{"type":"integer","description":"Sheets left in packs."},"extra":{"type":"integer","description":"Sheets beyond the allowance this month, charged next month (paid plans)."}}},"Products":{"type":"object","required":["used","limit"],"description":"The plan's products with a label.","properties":{"used":{"type":"integer"},"limit":{"type":["integer","null"],"description":"null on plans without a limit."}}},"Statement":{"type":"object","required":["code","text"],"properties":{"code":{"type":"string","example":"H318"},"text":{"type":["string","null"],"description":"Official wording; null when the code has no official text."},"openBlank":{"type":"boolean","description":"The official wording has a blank (shown as …) the supplier fills in, still open here."}}},"CheckResult":{"type":"object","required":["language","sheetLanguage","productName","signalWord","pictograms","contains","hazards","precautions","ufi","findings","uncertainties","statementsVersion"],"properties":{"language":{"type":"string"},"sheetLanguage":{"type":["string","null"]},"productName":{"type":["string","null"]},"signalWord":{"oneOf":[{"type":"null"},{"type":"object","required":["code","text"],"properties":{"code":{"enum":["Danger","Warning"]},"text":{"type":"string"}}}]},"pictograms":{"type":"array","items":{"type":"string","pattern":"^GHS0[1-9]$"}},"contains":{"type":"object","required":["names","text"],"properties":{"names":{"type":"array","items":{"type":"string"}},"text":{"type":["string","null"]}}},"hazards":{"type":"array","items":{"$ref":"#/components/schemas/Statement"}},"precautions":{"type":"array","items":{"$ref":"#/components/schemas/Statement"}},"ufi":{"type":["string","null"]},"findings":{"type":"array","items":{"type":"object","required":["severity","message","reference"],"properties":{"severity":{"enum":["error","warning","info"]},"message":{"type":"string"},"reference":{"type":"string"},"ruleId":{"type":"string"},"subjects":{"type":"array","items":{"type":"string"}}}}},"uncertainties":{"type":"array","items":{"type":"string"}},"statementsVersion":{"type":"string","description":"Version of the official texts the wording comes from."},"usage":{"$ref":"#/components/schemas/Usage"}}},"Extraction":{"type":"object","description":"What the sheet says: signal word, pictograms, codes, substances named, UFI, the supplier's own words for blanks and the sheet's language.","properties":{"productIdentifier":{"type":"string"},"signalWord":{"type":["string","null"]},"pictograms":{"type":"array","items":{"type":"string"}},"hazardStatements":{"type":"array","items":{"type":"string"}},"precautionaryStatements":{"type":"array","items":{"type":"string"}},"ufi":{"type":"string"},"language":{"type":"string"},"contains":{"type":"array","items":{"type":"string"}},"uncertainties":{"type":"array","items":{"type":"string"}}}},"MultiLabel":{"type":"object","required":["extraction","labels","statementsVersion","usage"],"properties":{"extraction":{"$ref":"#/components/schemas/Extraction"},"labels":{"type":"object","description":"One label per language, keyed DE, FR, …","additionalProperties":{"$ref":"#/components/schemas/CheckResult"}},"statementsVersion":{"type":"string"},"usage":{"$ref":"#/components/schemas/Usage"}}},"ConfirmedLabel":{"type":"object","properties":{"signalWord":{"type":["string","null"],"enum":["Danger","Warning",null]},"pictograms":{"type":"array","maxItems":9,"items":{"type":"string","pattern":"^GHS0[1-9]$"}},"hazardStatements":{"type":"array","maxItems":60,"items":{"type":"string"}},"precautionaryStatements":{"type":"array","maxItems":60,"items":{"type":"string"}},"contains":{"type":"array","maxItems":20,"items":{"type":"string"}},"substance":{"type":"boolean"},"ufi":{"type":"string"}}},"Market":{"type":"object","required":["id","name","langs","notes"],"properties":{"id":{"enum":["bol","ebay","amazon"]},"name":{"type":"string"},"langs":{"type":"array","items":{"type":"object","required":["lang","fields"],"properties":{"lang":{"type":"string"},"fields":{"type":"array","items":{"type":"object","required":["key","label","value"],"properties":{"key":{"type":"string"},"label":{"type":"string"},"value":{"type":"string"},"note":{"type":"string"}}}}}}},"notes":{"type":"array","items":{"type":"object","required":["key","text"],"properties":{"key":{"type":"string"},"text":{"type":"string"}}}}}}}}}