{"openapi":"3.1.0","info":{"title":"Centering Lab GPT Actions","version":"1.3.0","description":"Card centering measurement and published grading thresholds. Free public access with no API key; optional bearer authentication selects partner quotas and reserved lanes. Public REST endpoints allow cross-origin browser fetch without credentials (Access-Control-Allow-Origin: *); IP quotas still apply. Images are processed only in memory. This is a ceiling from centering alone, not a prediction of the final grade."},"servers":[{"url":"https://centeringlab.com"}],"security":[{},{"partnerBearer":[]}],"components":{"securitySchemes":{"partnerBearer":{"type":"http","scheme":"bearer","bearerFormat":"Centering Lab partner key","description":"Optional. Without a partner key, existing public IP quotas apply. Partner keys (prefix clp_) that are unknown, revoked or malformed return 401 INVALID_API_KEY; other Authorization values are ignored."}}},"paths":{"/api/v1/grade":{"post":{"operationId":"grade_centering","summary":"Grade known centering ratios","description":"USE THIS TOOL whenever the user supplies numeric centering ratios and asks whether a card meets PSA/BGS/CGC/SGC or asks for a centering ceiling. Do not calculate by looking up standards yourself. Example: {\"front_lr\":\"55/45\",\"front_tb\":\"60/40\",\"house\":\"PSA\"}. At least one known face AND axis; if either is unknown, ask first, never assume front/LR. Optional house PSA/BGS/CGC/SGC, TAG excluded. Flat front_lr/front_tb/back_lr/back_tb, or nested {\"front\":{\"lr\":\"55/45\",\"tb\":\"60/40\"}}; no duplicates. Key/house case accepted. Ratios: percentages, fractions, pairs with / - – — : x or spaces, optional %, or [55,45]/[\"55\",\"45\"]. Scalar 1 rejected; use 1/99. Axis suffix must match field. Changes disclosed in normalizations. Partial input gives incomplete=true: report provisional ceiling and missing data. A ceiling from centering alone is NOT a predicted grade. SGC back alone has no published ceiling.","x-openai-isConsequential":false,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"front_lr":{"description":"Front left/right. Optional individually; supply at least one known axis. Do not guess the face or axis. Example: 55/45. Known face/axis ratio. Examples: 55/45, 0.55, [55,45] (service alternative). A percentage within 0–100 (55 or 45; 1 is ambiguous and rejected), a fraction between 0 and 1 (0.55), or a pair summing to 100 or 1. Separators: / - – — : x or spaces; optional %. Axis suffix L/R or left/right for *_lr, T/B or top/bottom for *_tb. Normalized to the larger side; fractions are disclosed in normalizations.","examples":["55/45",[55,45]],"anyOf":[{"anyOf":[{"type":"number","const":0},{"type":"number","exclusiveMinimum":0,"exclusiveMaximum":1},{"type":"number","exclusiveMinimum":1,"maximum":100},{"type":"string","minLength":1,"maxLength":80}],"description":"Known face/axis ratio. Examples: 55/45, 0.55, [55,45] (service alternative). A percentage within 0–100 (55 or 45; 1 is ambiguous and rejected), a fraction between 0 and 1 (0.55), or a pair summing to 100 or 1. Separators: / - – — : x or spaces; optional %. Axis suffix L/R or left/right for *_lr, T/B or top/bottom for *_tb. Normalized to the larger side; fractions are disclosed in normalizations.","examples":["55/45",0.55,"0.55/0.45"]},{"minItems":2,"maxItems":2,"type":"array","items":{"type":["number","string"]}}]},"front_tb":{"description":"Front top/bottom. Optional individually; supply at least one known axis. Do not guess the face or axis. Example: 55/45. Known face/axis ratio. Examples: 55/45, 0.55, [55,45] (service alternative). A percentage within 0–100 (55 or 45; 1 is ambiguous and rejected), a fraction between 0 and 1 (0.55), or a pair summing to 100 or 1. Separators: / - – — : x or spaces; optional %. Axis suffix L/R or left/right for *_lr, T/B or top/bottom for *_tb. Normalized to the larger side; fractions are disclosed in normalizations.","examples":["60/40",[60,40]],"anyOf":[{"anyOf":[{"type":"number","const":0},{"type":"number","exclusiveMinimum":0,"exclusiveMaximum":1},{"type":"number","exclusiveMinimum":1,"maximum":100},{"type":"string","minLength":1,"maxLength":80}],"description":"Known face/axis ratio. Examples: 55/45, 0.55, [55,45] (service alternative). A percentage within 0–100 (55 or 45; 1 is ambiguous and rejected), a fraction between 0 and 1 (0.55), or a pair summing to 100 or 1. Separators: / - – — : x or spaces; optional %. Axis suffix L/R or left/right for *_lr, T/B or top/bottom for *_tb. Normalized to the larger side; fractions are disclosed in normalizations.","examples":["55/45",0.55,"0.55/0.45"]},{"minItems":2,"maxItems":2,"type":"array","items":{"type":["number","string"]}}]},"back_lr":{"description":"Back left/right. Optional individually; supply at least one known axis. Do not guess the face or axis. Example: 55/45. Known face/axis ratio. Examples: 55/45, 0.55, [55,45] (service alternative). A percentage within 0–100 (55 or 45; 1 is ambiguous and rejected), a fraction between 0 and 1 (0.55), or a pair summing to 100 or 1. Separators: / - – — : x or spaces; optional %. Axis suffix L/R or left/right for *_lr, T/B or top/bottom for *_tb. Normalized to the larger side; fractions are disclosed in normalizations.","examples":["65/35",[65,35]],"anyOf":[{"anyOf":[{"type":"number","const":0},{"type":"number","exclusiveMinimum":0,"exclusiveMaximum":1},{"type":"number","exclusiveMinimum":1,"maximum":100},{"type":"string","minLength":1,"maxLength":80}],"description":"Known face/axis ratio. Examples: 55/45, 0.55, [55,45] (service alternative). A percentage within 0–100 (55 or 45; 1 is ambiguous and rejected), a fraction between 0 and 1 (0.55), or a pair summing to 100 or 1. Separators: / - – — : x or spaces; optional %. Axis suffix L/R or left/right for *_lr, T/B or top/bottom for *_tb. Normalized to the larger side; fractions are disclosed in normalizations.","examples":["55/45",0.55,"0.55/0.45"]},{"minItems":2,"maxItems":2,"type":"array","items":{"type":["number","string"]}}]},"back_tb":{"description":"Back top/bottom. Optional individually; supply at least one known axis. Do not guess the face or axis. Example: 55/45. Known face/axis ratio. Examples: 55/45, 0.55, [55,45] (service alternative). A percentage within 0–100 (55 or 45; 1 is ambiguous and rejected), a fraction between 0 and 1 (0.55), or a pair summing to 100 or 1. Separators: / - – — : x or spaces; optional %. Axis suffix L/R or left/right for *_lr, T/B or top/bottom for *_tb. Normalized to the larger side; fractions are disclosed in normalizations.","examples":["60/40",[60,40]],"anyOf":[{"anyOf":[{"type":"number","const":0},{"type":"number","exclusiveMinimum":0,"exclusiveMaximum":1},{"type":"number","exclusiveMinimum":1,"maximum":100},{"type":"string","minLength":1,"maxLength":80}],"description":"Known face/axis ratio. Examples: 55/45, 0.55, [55,45] (service alternative). A percentage within 0–100 (55 or 45; 1 is ambiguous and rejected), a fraction between 0 and 1 (0.55), or a pair summing to 100 or 1. Separators: / - – — : x or spaces; optional %. Axis suffix L/R or left/right for *_lr, T/B or top/bottom for *_tb. Normalized to the larger side; fractions are disclosed in normalizations.","examples":["55/45",0.55,"0.55/0.45"]},{"minItems":2,"maxItems":2,"type":"array","items":{"type":["number","string"]}}]},"house":{"description":"Optional: return only PSA/BGS/CGC/SGC. Case/outer spaces accepted. TAG excluded; never substitute a different house. Example: PSA.","examples":["PSA"],"type":"string","enum":["PSA","BGS","CGC","SGC"]},"front":{"type":"object","properties":{"lr":{"description":"Known left/right ratio. Example: 55/45.","examples":["55/45"],"anyOf":[{"anyOf":[{"type":"number","const":0},{"type":"number","exclusiveMinimum":0,"exclusiveMaximum":1},{"type":"number","exclusiveMinimum":1,"maximum":100},{"type":"string","minLength":1,"maxLength":80}],"description":"Known face/axis ratio. Examples: 55/45, 0.55, [55,45] (service alternative). A percentage within 0–100 (55 or 45; 1 is ambiguous and rejected), a fraction between 0 and 1 (0.55), or a pair summing to 100 or 1. Separators: / - – — : x or spaces; optional %. Axis suffix L/R or left/right for *_lr, T/B or top/bottom for *_tb. Normalized to the larger side; fractions are disclosed in normalizations.","examples":["55/45",0.55,"0.55/0.45"]},{"minItems":2,"maxItems":2,"type":"array","items":{"type":["number","string"]}}]},"tb":{"description":"Known top/bottom ratio. Example: 60/40.","examples":["60/40"],"anyOf":[{"anyOf":[{"type":"number","const":0},{"type":"number","exclusiveMinimum":0,"exclusiveMaximum":1},{"type":"number","exclusiveMinimum":1,"maximum":100},{"type":"string","minLength":1,"maxLength":80}],"description":"Known face/axis ratio. Examples: 55/45, 0.55, [55,45] (service alternative). A percentage within 0–100 (55 or 45; 1 is ambiguous and rejected), a fraction between 0 and 1 (0.55), or a pair summing to 100 or 1. Separators: / - – — : x or spaces; optional %. Axis suffix L/R or left/right for *_lr, T/B or top/bottom for *_tb. Normalized to the larger side; fractions are disclosed in normalizations.","examples":["55/45",0.55,"0.55/0.45"]},{"minItems":2,"maxItems":2,"type":"array","items":{"type":["number","string"]}}]}},"additionalProperties":false,"description":"Alternative nested form; supply lr and/or tb, never mix with the corresponding flat keys. Example: {lr:'55/45',tb:'60/40'}.","examples":[{"lr":"55/45","tb":"60/40"}],"anyOf":[{"required":["lr"]},{"required":["tb"]}]},"back":{"type":"object","properties":{"lr":{"description":"Known left/right ratio. Example: 55/45.","examples":["55/45"],"anyOf":[{"anyOf":[{"type":"number","const":0},{"type":"number","exclusiveMinimum":0,"exclusiveMaximum":1},{"type":"number","exclusiveMinimum":1,"maximum":100},{"type":"string","minLength":1,"maxLength":80}],"description":"Known face/axis ratio. Examples: 55/45, 0.55, [55,45] (service alternative). A percentage within 0–100 (55 or 45; 1 is ambiguous and rejected), a fraction between 0 and 1 (0.55), or a pair summing to 100 or 1. Separators: / - – — : x or spaces; optional %. Axis suffix L/R or left/right for *_lr, T/B or top/bottom for *_tb. Normalized to the larger side; fractions are disclosed in normalizations.","examples":["55/45",0.55,"0.55/0.45"]},{"minItems":2,"maxItems":2,"type":"array","items":{"type":["number","string"]}}]},"tb":{"description":"Known top/bottom ratio. Example: 60/40.","examples":["60/40"],"anyOf":[{"anyOf":[{"type":"number","const":0},{"type":"number","exclusiveMinimum":0,"exclusiveMaximum":1},{"type":"number","exclusiveMinimum":1,"maximum":100},{"type":"string","minLength":1,"maxLength":80}],"description":"Known face/axis ratio. Examples: 55/45, 0.55, [55,45] (service alternative). A percentage within 0–100 (55 or 45; 1 is ambiguous and rejected), a fraction between 0 and 1 (0.55), or a pair summing to 100 or 1. Separators: / - – — : x or spaces; optional %. Axis suffix L/R or left/right for *_lr, T/B or top/bottom for *_tb. Normalized to the larger side; fractions are disclosed in normalizations.","examples":["55/45",0.55,"0.55/0.45"]},{"minItems":2,"maxItems":2,"type":"array","items":{"type":["number","string"]}}]}},"additionalProperties":false,"description":"Alternative nested form; supply lr and/or tb, never mix with the corresponding flat keys. Example: {lr:'55/45',tb:'60/40'}.","examples":[{"lr":"55/45","tb":"60/40"}],"anyOf":[{"required":["lr"]},{"required":["tb"]}]}},"additionalProperties":false,"anyOf":[{"required":["front_lr"]},{"required":["front_tb"]},{"required":["back_lr"]},{"required":["back_tb"]},{"required":["front"]},{"required":["back"]}]}}}},"responses":{"200":{"description":"Centering result. Always distinguish a centering ceiling from a grade prediction.","headers":{"RateLimit-Limit":{"schema":{"type":"integer"},"description":"Partner only: limiting quota window limit."},"RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Partner only: remaining calls in that window."},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Partner only: delta seconds until that window resets."},"X-Request-Id":{"schema":{"type":"string","maxLength":128},"description":"Partner only: supplied visible ASCII request ID, echoed without storage."}},"content":{"application/json":{"schema":{"type":"object","properties":{"front":{"anyOf":[{"type":"object","properties":{"ratios":{"type":"object","properties":{"lr":{"type":["number","null"]},"tb":{"type":["number","null"]}},"required":["lr","tb"],"additionalProperties":false},"missing_axes":{"type":"array","items":{"type":"string","enum":["lr","tb"]}},"ceilings":{"type":"object","properties":{"PSA":{"type":"object","properties":{"maximum_grade":{"type":["number","null"]},"label":{"type":["string","null"]},"rank":{"type":["number","null"]},"limiting_face":{"type":"string","enum":["front","back"],"description":"Face: front or back, in English. Ask the user if unknown. Case and outer whitespace accepted; never use reverse/obverse or translated names. Example: front.","examples":["front","back"]},"limiting_axis":{"type":"string","enum":["lr","tb"]},"distance_to_next":{"type":["number","null"]},"next_grade":{"type":["number","null"]},"next_label":{"type":["string","null"]},"borderline":{"type":"boolean"},"unconstrained":{"type":"boolean"},"source_status":{"type":"string","enum":["official","interpreted","approximate"]},"standard_status":{"type":"string","enum":["official","interpreted","approximate"]},"source":{"type":"string"},"sources":{"type":"array","items":{"type":"string"}},"verified":{"type":"string"},"verification":{"type":"string"}},"required":["maximum_grade","label","rank","limiting_face","limiting_axis","distance_to_next","next_grade","next_label","borderline","unconstrained","source_status","standard_status","source","sources","verified","verification"],"additionalProperties":false},"BGS":{"type":"object","properties":{"maximum_grade":{"type":["number","null"]},"label":{"type":["string","null"]},"rank":{"type":["number","null"]},"limiting_face":{"type":"string","enum":["front","back"],"description":"Face: front or back, in English. Ask the user if unknown. Case and outer whitespace accepted; never use reverse/obverse or translated names. Example: front.","examples":["front","back"]},"limiting_axis":{"type":"string","enum":["lr","tb"]},"distance_to_next":{"type":["number","null"]},"next_grade":{"type":["number","null"]},"next_label":{"type":["string","null"]},"borderline":{"type":"boolean"},"unconstrained":{"type":"boolean"},"source_status":{"type":"string","enum":["official","interpreted","approximate"]},"standard_status":{"type":"string","enum":["official","interpreted","approximate"]},"source":{"type":"string"},"sources":{"type":"array","items":{"type":"string"}},"verified":{"type":"string"},"verification":{"type":"string"}},"required":["maximum_grade","label","rank","limiting_face","limiting_axis","distance_to_next","next_grade","next_label","borderline","unconstrained","source_status","standard_status","source","sources","verified","verification"],"additionalProperties":false},"CGC":{"type":"object","properties":{"maximum_grade":{"type":["number","null"]},"label":{"type":["string","null"]},"rank":{"type":["number","null"]},"limiting_face":{"type":"string","enum":["front","back"],"description":"Face: front or back, in English. Ask the user if unknown. Case and outer whitespace accepted; never use reverse/obverse or translated names. Example: front.","examples":["front","back"]},"limiting_axis":{"type":"string","enum":["lr","tb"]},"distance_to_next":{"type":["number","null"]},"next_grade":{"type":["number","null"]},"next_label":{"type":["string","null"]},"borderline":{"type":"boolean"},"unconstrained":{"type":"boolean"},"source_status":{"type":"string","enum":["official","interpreted","approximate"]},"standard_status":{"type":"string","enum":["official","interpreted","approximate"]},"source":{"type":"string"},"sources":{"type":"array","items":{"type":"string"}},"verified":{"type":"string"},"verification":{"type":"string"}},"required":["maximum_grade","label","rank","limiting_face","limiting_axis","distance_to_next","next_grade","next_label","borderline","unconstrained","source_status","standard_status","source","sources","verified","verification"],"additionalProperties":false},"SGC":{"type":"object","properties":{"maximum_grade":{"type":["number","null"]},"label":{"type":["string","null"]},"rank":{"type":["number","null"]},"limiting_face":{"type":"string","enum":["front","back"],"description":"Face: front or back, in English. Ask the user if unknown. Case and outer whitespace accepted; never use reverse/obverse or translated names. Example: front.","examples":["front","back"]},"limiting_axis":{"type":"string","enum":["lr","tb"]},"distance_to_next":{"type":["number","null"]},"next_grade":{"type":["number","null"]},"next_label":{"type":["string","null"]},"borderline":{"type":"boolean"},"unconstrained":{"type":"boolean"},"source_status":{"type":"string","enum":["official","interpreted","approximate"]},"standard_status":{"type":"string","enum":["official","interpreted","approximate"]},"source":{"type":"string"},"sources":{"type":"array","items":{"type":"string"}},"verified":{"type":"string"},"verification":{"type":"string"}},"required":["maximum_grade","label","rank","limiting_face","limiting_axis","distance_to_next","next_grade","next_label","borderline","unconstrained","source_status","standard_status","source","sources","verified","verification"],"additionalProperties":false}},"additionalProperties":false}},"required":["ratios","missing_axes","ceilings"],"additionalProperties":false},{"type":"null"}]},"back":{"anyOf":[{"type":"object","properties":{"ratios":{"type":"object","properties":{"lr":{"type":["number","null"]},"tb":{"type":["number","null"]}},"required":["lr","tb"],"additionalProperties":false},"missing_axes":{"type":"array","items":{"type":"string","enum":["lr","tb"]}},"ceilings":{"type":"object","properties":{"PSA":{"type":"object","properties":{"maximum_grade":{"type":["number","null"]},"label":{"type":["string","null"]},"rank":{"type":["number","null"]},"limiting_face":{"type":"string","enum":["front","back"],"description":"Face: front or back, in English. Ask the user if unknown. Case and outer whitespace accepted; never use reverse/obverse or translated names. Example: front.","examples":["front","back"]},"limiting_axis":{"type":"string","enum":["lr","tb"]},"distance_to_next":{"type":["number","null"]},"next_grade":{"type":["number","null"]},"next_label":{"type":["string","null"]},"borderline":{"type":"boolean"},"unconstrained":{"type":"boolean"},"source_status":{"type":"string","enum":["official","interpreted","approximate"]},"standard_status":{"type":"string","enum":["official","interpreted","approximate"]},"source":{"type":"string"},"sources":{"type":"array","items":{"type":"string"}},"verified":{"type":"string"},"verification":{"type":"string"}},"required":["maximum_grade","label","rank","limiting_face","limiting_axis","distance_to_next","next_grade","next_label","borderline","unconstrained","source_status","standard_status","source","sources","verified","verification"],"additionalProperties":false},"BGS":{"type":"object","properties":{"maximum_grade":{"type":["number","null"]},"label":{"type":["string","null"]},"rank":{"type":["number","null"]},"limiting_face":{"type":"string","enum":["front","back"],"description":"Face: front or back, in English. Ask the user if unknown. Case and outer whitespace accepted; never use reverse/obverse or translated names. Example: front.","examples":["front","back"]},"limiting_axis":{"type":"string","enum":["lr","tb"]},"distance_to_next":{"type":["number","null"]},"next_grade":{"type":["number","null"]},"next_label":{"type":["string","null"]},"borderline":{"type":"boolean"},"unconstrained":{"type":"boolean"},"source_status":{"type":"string","enum":["official","interpreted","approximate"]},"standard_status":{"type":"string","enum":["official","interpreted","approximate"]},"source":{"type":"string"},"sources":{"type":"array","items":{"type":"string"}},"verified":{"type":"string"},"verification":{"type":"string"}},"required":["maximum_grade","label","rank","limiting_face","limiting_axis","distance_to_next","next_grade","next_label","borderline","unconstrained","source_status","standard_status","source","sources","verified","verification"],"additionalProperties":false},"CGC":{"type":"object","properties":{"maximum_grade":{"type":["number","null"]},"label":{"type":["string","null"]},"rank":{"type":["number","null"]},"limiting_face":{"type":"string","enum":["front","back"],"description":"Face: front or back, in English. Ask the user if unknown. Case and outer whitespace accepted; never use reverse/obverse or translated names. Example: front.","examples":["front","back"]},"limiting_axis":{"type":"string","enum":["lr","tb"]},"distance_to_next":{"type":["number","null"]},"next_grade":{"type":["number","null"]},"next_label":{"type":["string","null"]},"borderline":{"type":"boolean"},"unconstrained":{"type":"boolean"},"source_status":{"type":"string","enum":["official","interpreted","approximate"]},"standard_status":{"type":"string","enum":["official","interpreted","approximate"]},"source":{"type":"string"},"sources":{"type":"array","items":{"type":"string"}},"verified":{"type":"string"},"verification":{"type":"string"}},"required":["maximum_grade","label","rank","limiting_face","limiting_axis","distance_to_next","next_grade","next_label","borderline","unconstrained","source_status","standard_status","source","sources","verified","verification"],"additionalProperties":false},"SGC":{"type":"object","properties":{"maximum_grade":{"type":["number","null"]},"label":{"type":["string","null"]},"rank":{"type":["number","null"]},"limiting_face":{"type":"string","enum":["front","back"],"description":"Face: front or back, in English. Ask the user if unknown. Case and outer whitespace accepted; never use reverse/obverse or translated names. Example: front.","examples":["front","back"]},"limiting_axis":{"type":"string","enum":["lr","tb"]},"distance_to_next":{"type":["number","null"]},"next_grade":{"type":["number","null"]},"next_label":{"type":["string","null"]},"borderline":{"type":"boolean"},"unconstrained":{"type":"boolean"},"source_status":{"type":"string","enum":["official","interpreted","approximate"]},"standard_status":{"type":"string","enum":["official","interpreted","approximate"]},"source":{"type":"string"},"sources":{"type":"array","items":{"type":"string"}},"verified":{"type":"string"},"verification":{"type":"string"}},"required":["maximum_grade","label","rank","limiting_face","limiting_axis","distance_to_next","next_grade","next_label","borderline","unconstrained","source_status","standard_status","source","sources","verified","verification"],"additionalProperties":false}},"additionalProperties":false}},"required":["ratios","missing_axes","ceilings"],"additionalProperties":false},{"type":"null"}]},"combined":{"type":"object","properties":{"PSA":{"type":"object","properties":{"maximum_grade":{"type":["number","null"]},"label":{"type":["string","null"]},"rank":{"type":["number","null"]},"limiting_face":{"type":"string","enum":["front","back"],"description":"Face: front or back, in English. Ask the user if unknown. Case and outer whitespace accepted; never use reverse/obverse or translated names. Example: front.","examples":["front","back"]},"limiting_axis":{"type":"string","enum":["lr","tb"]},"distance_to_next":{"type":["number","null"]},"next_grade":{"type":["number","null"]},"next_label":{"type":["string","null"]},"borderline":{"type":"boolean"},"unconstrained":{"type":"boolean"},"source_status":{"type":"string","enum":["official","interpreted","approximate"]},"standard_status":{"type":"string","enum":["official","interpreted","approximate"]},"source":{"type":"string"},"sources":{"type":"array","items":{"type":"string"}},"verified":{"type":"string"},"verification":{"type":"string"}},"required":["maximum_grade","label","rank","limiting_face","limiting_axis","distance_to_next","next_grade","next_label","borderline","unconstrained","source_status","standard_status","source","sources","verified","verification"],"additionalProperties":false},"BGS":{"type":"object","properties":{"maximum_grade":{"type":["number","null"]},"label":{"type":["string","null"]},"rank":{"type":["number","null"]},"limiting_face":{"type":"string","enum":["front","back"],"description":"Face: front or back, in English. Ask the user if unknown. Case and outer whitespace accepted; never use reverse/obverse or translated names. Example: front.","examples":["front","back"]},"limiting_axis":{"type":"string","enum":["lr","tb"]},"distance_to_next":{"type":["number","null"]},"next_grade":{"type":["number","null"]},"next_label":{"type":["string","null"]},"borderline":{"type":"boolean"},"unconstrained":{"type":"boolean"},"source_status":{"type":"string","enum":["official","interpreted","approximate"]},"standard_status":{"type":"string","enum":["official","interpreted","approximate"]},"source":{"type":"string"},"sources":{"type":"array","items":{"type":"string"}},"verified":{"type":"string"},"verification":{"type":"string"}},"required":["maximum_grade","label","rank","limiting_face","limiting_axis","distance_to_next","next_grade","next_label","borderline","unconstrained","source_status","standard_status","source","sources","verified","verification"],"additionalProperties":false},"CGC":{"type":"object","properties":{"maximum_grade":{"type":["number","null"]},"label":{"type":["string","null"]},"rank":{"type":["number","null"]},"limiting_face":{"type":"string","enum":["front","back"],"description":"Face: front or back, in English. Ask the user if unknown. Case and outer whitespace accepted; never use reverse/obverse or translated names. Example: front.","examples":["front","back"]},"limiting_axis":{"type":"string","enum":["lr","tb"]},"distance_to_next":{"type":["number","null"]},"next_grade":{"type":["number","null"]},"next_label":{"type":["string","null"]},"borderline":{"type":"boolean"},"unconstrained":{"type":"boolean"},"source_status":{"type":"string","enum":["official","interpreted","approximate"]},"standard_status":{"type":"string","enum":["official","interpreted","approximate"]},"source":{"type":"string"},"sources":{"type":"array","items":{"type":"string"}},"verified":{"type":"string"},"verification":{"type":"string"}},"required":["maximum_grade","label","rank","limiting_face","limiting_axis","distance_to_next","next_grade","next_label","borderline","unconstrained","source_status","standard_status","source","sources","verified","verification"],"additionalProperties":false},"SGC":{"type":"object","properties":{"maximum_grade":{"type":["number","null"]},"label":{"type":["string","null"]},"rank":{"type":["number","null"]},"limiting_face":{"type":"string","enum":["front","back"],"description":"Face: front or back, in English. Ask the user if unknown. Case and outer whitespace accepted; never use reverse/obverse or translated names. Example: front.","examples":["front","back"]},"limiting_axis":{"type":"string","enum":["lr","tb"]},"distance_to_next":{"type":["number","null"]},"next_grade":{"type":["number","null"]},"next_label":{"type":["string","null"]},"borderline":{"type":"boolean"},"unconstrained":{"type":"boolean"},"source_status":{"type":"string","enum":["official","interpreted","approximate"]},"standard_status":{"type":"string","enum":["official","interpreted","approximate"]},"source":{"type":"string"},"sources":{"type":"array","items":{"type":"string"}},"verified":{"type":"string"},"verification":{"type":"string"}},"required":["maximum_grade","label","rank","limiting_face","limiting_axis","distance_to_next","next_grade","next_label","borderline","unconstrained","source_status","standard_status","source","sources","verified","verification"],"additionalProperties":false}},"additionalProperties":false},"normalizations":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"input":{"type":["number","string"]},"ratio":{"type":"string"},"note":{"type":"string"}},"required":["field","note"],"additionalProperties":false}},"incomplete":{"type":"boolean"},"missing_faces":{"type":"array","items":{"type":"string","enum":["front","back"],"description":"Face: front or back, in English. Ask the user if unknown. Case and outer whitespace accepted; never use reverse/obverse or translated names. Example: front.","examples":["front","back"]}},"summary":{"type":"string"},"disclaimer":{"type":"string"}},"required":["front","back","combined","normalizations","incomplete","missing_faces","summary","disclaimer"],"additionalProperties":false}}}},"400":{"description":"Invalid input, unsafe image URL or unsupported image.","headers":{"RateLimit-Limit":{"schema":{"type":"integer"},"description":"Partner only: limiting quota window limit."},"RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Partner only: remaining calls in that window."},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Partner only: delta seconds until that window resets."},"X-Request-Id":{"schema":{"type":"string","maxLength":128},"description":"Partner only: supplied visible ASCII request ID, echoed without storage."}},"content":{"application/json":{"schema":{"type":"object","required":["status","code","message","disclaimer"],"properties":{"status":{"const":"failed","type":"string"},"code":{"type":"string","description":"Includes INVALID_GEOMETRY, INVALID_ARGUMENTS, INVALID_API_KEY, INVALID_REQUEST_ID and existing errors."},"message":{"type":"string"},"reason":{"type":"string"},"unknown_key":{"type":"string"},"field":{"type":"string"},"hint":{"type":"string"},"example":{"type":"object"},"disclaimer":{"type":"string"}}}}}},"401":{"description":"INVALID_API_KEY: unknown, inactive or malformed partner key.","headers":{"RateLimit-Limit":{"schema":{"type":"integer"},"description":"Partner only: limiting quota window limit."},"RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Partner only: remaining calls in that window."},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Partner only: delta seconds until that window resets."},"X-Request-Id":{"schema":{"type":"string","maxLength":128},"description":"Partner only: supplied visible ASCII request ID, echoed without storage."}},"content":{"application/json":{"schema":{"type":"object","required":["status","code","message","disclaimer"],"properties":{"status":{"const":"failed","type":"string"},"code":{"type":"string","description":"Includes INVALID_GEOMETRY, INVALID_ARGUMENTS, INVALID_API_KEY, INVALID_REQUEST_ID and existing errors."},"message":{"type":"string"},"reason":{"type":"string"},"unknown_key":{"type":"string"},"field":{"type":"string"},"hint":{"type":"string"},"example":{"type":"object"},"disclaimer":{"type":"string"}}}}}},"403":{"description":"Unrecognized Host header.","headers":{"RateLimit-Limit":{"schema":{"type":"integer"},"description":"Partner only: limiting quota window limit."},"RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Partner only: remaining calls in that window."},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Partner only: delta seconds until that window resets."},"X-Request-Id":{"schema":{"type":"string","maxLength":128},"description":"Partner only: supplied visible ASCII request ID, echoed without storage."}},"content":{"application/json":{"schema":{"type":"object","required":["status","code","message","disclaimer"],"properties":{"status":{"const":"failed","type":"string"},"code":{"type":"string","description":"Includes INVALID_GEOMETRY, INVALID_ARGUMENTS, INVALID_API_KEY, INVALID_REQUEST_ID and existing errors."},"message":{"type":"string"},"reason":{"type":"string"},"unknown_key":{"type":"string"},"field":{"type":"string"},"hint":{"type":"string"},"example":{"type":"object"},"disclaimer":{"type":"string"}}}}}},"405":{"description":"Use the documented HTTP method.","headers":{"RateLimit-Limit":{"schema":{"type":"integer"},"description":"Partner only: limiting quota window limit."},"RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Partner only: remaining calls in that window."},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Partner only: delta seconds until that window resets."},"X-Request-Id":{"schema":{"type":"string","maxLength":128},"description":"Partner only: supplied visible ASCII request ID, echoed without storage."}},"content":{"application/json":{"schema":{"type":"object","required":["status","code","message","disclaimer"],"properties":{"status":{"const":"failed","type":"string"},"code":{"type":"string","description":"Includes INVALID_GEOMETRY, INVALID_ARGUMENTS, INVALID_API_KEY, INVALID_REQUEST_ID and existing errors."},"message":{"type":"string"},"reason":{"type":"string"},"unknown_key":{"type":"string"},"field":{"type":"string"},"hint":{"type":"string"},"example":{"type":"object"},"disclaimer":{"type":"string"}}}}}},"413":{"description":"Request/image byte limit or decoded pixel limit exceeded.","headers":{"RateLimit-Limit":{"schema":{"type":"integer"},"description":"Partner only: limiting quota window limit."},"RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Partner only: remaining calls in that window."},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Partner only: delta seconds until that window resets."},"X-Request-Id":{"schema":{"type":"string","maxLength":128},"description":"Partner only: supplied visible ASCII request ID, echoed without storage."}},"content":{"application/json":{"schema":{"type":"object","required":["status","code","message","disclaimer"],"properties":{"status":{"const":"failed","type":"string"},"code":{"type":"string","description":"Includes INVALID_GEOMETRY, INVALID_ARGUMENTS, INVALID_API_KEY, INVALID_REQUEST_ID and existing errors."},"message":{"type":"string"},"reason":{"type":"string"},"unknown_key":{"type":"string"},"field":{"type":"string"},"hint":{"type":"string"},"example":{"type":"object"},"disclaimer":{"type":"string"}}}}}},"415":{"description":"Send uncompressed application/json.","headers":{"RateLimit-Limit":{"schema":{"type":"integer"},"description":"Partner only: limiting quota window limit."},"RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Partner only: remaining calls in that window."},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Partner only: delta seconds until that window resets."},"X-Request-Id":{"schema":{"type":"string","maxLength":128},"description":"Partner only: supplied visible ASCII request ID, echoed without storage."}},"content":{"application/json":{"schema":{"type":"object","required":["status","code","message","disclaimer"],"properties":{"status":{"const":"failed","type":"string"},"code":{"type":"string","description":"Includes INVALID_GEOMETRY, INVALID_ARGUMENTS, INVALID_API_KEY, INVALID_REQUEST_ID and existing errors."},"message":{"type":"string"},"reason":{"type":"string"},"unknown_key":{"type":"string"},"field":{"type":"string"},"hint":{"type":"string"},"example":{"type":"object"},"disclaimer":{"type":"string"}}}}}},"429":{"description":"Rate limit reached. Respect Retry-After.","headers":{"RateLimit-Limit":{"schema":{"type":"integer"},"description":"Partner only: limiting quota window limit."},"RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Partner only: remaining calls in that window."},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Partner only: delta seconds until that window resets."},"X-Request-Id":{"schema":{"type":"string","maxLength":128},"description":"Partner only: supplied visible ASCII request ID, echoed without storage."},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds until retry."}},"content":{"application/json":{"schema":{"type":"object","required":["status","code","message","disclaimer"],"properties":{"status":{"const":"failed","type":"string"},"code":{"type":"string","description":"Includes INVALID_GEOMETRY, INVALID_ARGUMENTS, INVALID_API_KEY, INVALID_REQUEST_ID and existing errors."},"message":{"type":"string"},"reason":{"type":"string"},"unknown_key":{"type":"string"},"field":{"type":"string"},"hint":{"type":"string"},"example":{"type":"object"},"disclaimer":{"type":"string"}}}}}},"500":{"description":"Internal error; retry or direct the user to the website.","headers":{"RateLimit-Limit":{"schema":{"type":"integer"},"description":"Partner only: limiting quota window limit."},"RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Partner only: remaining calls in that window."},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Partner only: delta seconds until that window resets."},"X-Request-Id":{"schema":{"type":"string","maxLength":128},"description":"Partner only: supplied visible ASCII request ID, echoed without storage."}},"content":{"application/json":{"schema":{"type":"object","required":["status","code","message","disclaimer"],"properties":{"status":{"const":"failed","type":"string"},"code":{"type":"string","description":"Includes INVALID_GEOMETRY, INVALID_ARGUMENTS, INVALID_API_KEY, INVALID_REQUEST_ID and existing errors."},"message":{"type":"string"},"reason":{"type":"string"},"unknown_key":{"type":"string"},"field":{"type":"string"},"hint":{"type":"string"},"example":{"type":"object"},"disclaimer":{"type":"string"}}}}}},"503":{"description":"Measurement queue or request capacity full. Respect Retry-After.","headers":{"RateLimit-Limit":{"schema":{"type":"integer"},"description":"Partner only: limiting quota window limit."},"RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Partner only: remaining calls in that window."},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Partner only: delta seconds until that window resets."},"X-Request-Id":{"schema":{"type":"string","maxLength":128},"description":"Partner only: supplied visible ASCII request ID, echoed without storage."},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds until retry."}},"content":{"application/json":{"schema":{"type":"object","required":["status","code","message","disclaimer"],"properties":{"status":{"const":"failed","type":"string"},"code":{"type":"string","description":"Includes INVALID_GEOMETRY, INVALID_ARGUMENTS, INVALID_API_KEY, INVALID_REQUEST_ID and existing errors."},"message":{"type":"string"},"reason":{"type":"string"},"unknown_key":{"type":"string"},"field":{"type":"string"},"hint":{"type":"string"},"example":{"type":"object"},"disclaimer":{"type":"string"}}}}}},"504":{"description":"Image download or measurement timed out.","headers":{"RateLimit-Limit":{"schema":{"type":"integer"},"description":"Partner only: limiting quota window limit."},"RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Partner only: remaining calls in that window."},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Partner only: delta seconds until that window resets."},"X-Request-Id":{"schema":{"type":"string","maxLength":128},"description":"Partner only: supplied visible ASCII request ID, echoed without storage."}},"content":{"application/json":{"schema":{"type":"object","required":["status","code","message","disclaimer"],"properties":{"status":{"const":"failed","type":"string"},"code":{"type":"string","description":"Includes INVALID_GEOMETRY, INVALID_ARGUMENTS, INVALID_API_KEY, INVALID_REQUEST_ID and existing errors."},"message":{"type":"string"},"reason":{"type":"string"},"unknown_key":{"type":"string"},"field":{"type":"string"},"hint":{"type":"string"},"example":{"type":"object"},"disclaimer":{"type":"string"}}}}}}}}},"/api/v1/standards":{"get":{"operationId":"get_centering_standards","summary":"Get centering standards and sources","description":"USE ONLY for questions about published THRESHOLDS, tolerance, rules or SOURCES without grading the user's supplied numeric ratios. For PSA 10 compatibility with supplied ratios use grade_centering instead; it applies rounding and house-specific rules. If face/axis is unknown, ask first without any call. Example: {\"house\":\"BGS\",\"face\":\"back\"}; fields optional, {} returns all. Houses PSA/BGS/CGC/SGC (case accepted), TAG excluded: explain proprietary assessment; never substitute another house. Face front/back in English; case/spaces accepted, reverse/obverse and translations rejected. SGC back has empty bands, no published table or ceiling; never invent one. Returns official/interpreted/approximate status, sources and verification. Not a final-grade prediction.","parameters":[{"name":"house","in":"query","required":false,"schema":{"type":"string","enum":["PSA","BGS","CGC","SGC"],"description":"Grading house: PSA, BGS, CGC or SGC; TAG is excluded. Case/outer whitespace accepted by the service. Example: PSA (psa also accepted).","examples":["PSA","BGS"]}},{"name":"face","in":"query","required":false,"schema":{"type":"string","enum":["front","back"],"description":"Face: front or back, in English. Ask the user if unknown. Case and outer whitespace accepted; never use reverse/obverse or translated names. Example: front.","examples":["front","back"]}}],"responses":{"200":{"description":"Centering result. Always distinguish a centering ceiling from a grade prediction.","headers":{"RateLimit-Limit":{"schema":{"type":"integer"},"description":"Partner only: limiting quota window limit."},"RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Partner only: remaining calls in that window."},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Partner only: delta seconds until that window resets."},"X-Request-Id":{"schema":{"type":"string","maxLength":128},"description":"Partner only: supplied visible ASCII request ID, echoed without storage."}},"content":{"application/json":{"schema":{"type":"object","properties":{"normalizations":{"default":[],"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"input":{"type":["number","string"]},"ratio":{"type":"string"},"note":{"type":"string"}},"required":["field","note"],"additionalProperties":false}},"standards":{"type":"array","items":{"type":"object","properties":{"house":{"type":"string","enum":["PSA","BGS","CGC","SGC"],"description":"Grading house: PSA, BGS, CGC or SGC; TAG is excluded. Case/outer whitespace accepted by the service. Example: PSA (psa also accepted).","examples":["PSA","BGS"]},"face":{"type":"string","enum":["front","back"],"description":"Face: front or back, in English. Ask the user if unknown. Case and outer whitespace accepted; never use reverse/obverse or translated names. Example: front.","examples":["front","back"]},"bands":{"type":"array","items":{"type":"object","properties":{"value":{"type":"number"},"label":{"type":"string"},"rank":{"type":"number"},"loose":{"type":"number"},"tight":{"type":"number"},"status":{"type":"string","enum":["official","interpreted","approximate"]}},"required":["value","label","rank","loose","status"],"additionalProperties":false}},"source":{"type":"string"},"sources":{"type":"array","items":{"type":"string"}},"status":{"type":"string","enum":["official","interpreted","approximate"]},"verified":{"type":"string"},"verification":{"type":"string"},"note":{"type":"string"}},"required":["house","face","bands","source","sources","status","verified","verification","note"],"additionalProperties":false}},"rounding_rule":{"type":"string"},"tag_note":{"type":"string"},"summary":{"type":"string"},"disclaimer":{"type":"string"}},"required":["normalizations","standards","rounding_rule","tag_note","summary","disclaimer"],"additionalProperties":false}}}},"400":{"description":"Invalid input, unsafe image URL or unsupported image.","headers":{"RateLimit-Limit":{"schema":{"type":"integer"},"description":"Partner only: limiting quota window limit."},"RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Partner only: remaining calls in that window."},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Partner only: delta seconds until that window resets."},"X-Request-Id":{"schema":{"type":"string","maxLength":128},"description":"Partner only: supplied visible ASCII request ID, echoed without storage."}},"content":{"application/json":{"schema":{"type":"object","required":["status","code","message","disclaimer"],"properties":{"status":{"const":"failed","type":"string"},"code":{"type":"string","description":"Includes INVALID_GEOMETRY, INVALID_ARGUMENTS, INVALID_API_KEY, INVALID_REQUEST_ID and existing errors."},"message":{"type":"string"},"reason":{"type":"string"},"unknown_key":{"type":"string"},"field":{"type":"string"},"hint":{"type":"string"},"example":{"type":"object"},"disclaimer":{"type":"string"}}}}}},"401":{"description":"INVALID_API_KEY: unknown, inactive or malformed partner key.","headers":{"RateLimit-Limit":{"schema":{"type":"integer"},"description":"Partner only: limiting quota window limit."},"RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Partner only: remaining calls in that window."},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Partner only: delta seconds until that window resets."},"X-Request-Id":{"schema":{"type":"string","maxLength":128},"description":"Partner only: supplied visible ASCII request ID, echoed without storage."}},"content":{"application/json":{"schema":{"type":"object","required":["status","code","message","disclaimer"],"properties":{"status":{"const":"failed","type":"string"},"code":{"type":"string","description":"Includes INVALID_GEOMETRY, INVALID_ARGUMENTS, INVALID_API_KEY, INVALID_REQUEST_ID and existing errors."},"message":{"type":"string"},"reason":{"type":"string"},"unknown_key":{"type":"string"},"field":{"type":"string"},"hint":{"type":"string"},"example":{"type":"object"},"disclaimer":{"type":"string"}}}}}},"403":{"description":"Unrecognized Host header.","headers":{"RateLimit-Limit":{"schema":{"type":"integer"},"description":"Partner only: limiting quota window limit."},"RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Partner only: remaining calls in that window."},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Partner only: delta seconds until that window resets."},"X-Request-Id":{"schema":{"type":"string","maxLength":128},"description":"Partner only: supplied visible ASCII request ID, echoed without storage."}},"content":{"application/json":{"schema":{"type":"object","required":["status","code","message","disclaimer"],"properties":{"status":{"const":"failed","type":"string"},"code":{"type":"string","description":"Includes INVALID_GEOMETRY, INVALID_ARGUMENTS, INVALID_API_KEY, INVALID_REQUEST_ID and existing errors."},"message":{"type":"string"},"reason":{"type":"string"},"unknown_key":{"type":"string"},"field":{"type":"string"},"hint":{"type":"string"},"example":{"type":"object"},"disclaimer":{"type":"string"}}}}}},"405":{"description":"Use the documented HTTP method.","headers":{"RateLimit-Limit":{"schema":{"type":"integer"},"description":"Partner only: limiting quota window limit."},"RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Partner only: remaining calls in that window."},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Partner only: delta seconds until that window resets."},"X-Request-Id":{"schema":{"type":"string","maxLength":128},"description":"Partner only: supplied visible ASCII request ID, echoed without storage."}},"content":{"application/json":{"schema":{"type":"object","required":["status","code","message","disclaimer"],"properties":{"status":{"const":"failed","type":"string"},"code":{"type":"string","description":"Includes INVALID_GEOMETRY, INVALID_ARGUMENTS, INVALID_API_KEY, INVALID_REQUEST_ID and existing errors."},"message":{"type":"string"},"reason":{"type":"string"},"unknown_key":{"type":"string"},"field":{"type":"string"},"hint":{"type":"string"},"example":{"type":"object"},"disclaimer":{"type":"string"}}}}}},"413":{"description":"Request/image byte limit or decoded pixel limit exceeded.","headers":{"RateLimit-Limit":{"schema":{"type":"integer"},"description":"Partner only: limiting quota window limit."},"RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Partner only: remaining calls in that window."},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Partner only: delta seconds until that window resets."},"X-Request-Id":{"schema":{"type":"string","maxLength":128},"description":"Partner only: supplied visible ASCII request ID, echoed without storage."}},"content":{"application/json":{"schema":{"type":"object","required":["status","code","message","disclaimer"],"properties":{"status":{"const":"failed","type":"string"},"code":{"type":"string","description":"Includes INVALID_GEOMETRY, INVALID_ARGUMENTS, INVALID_API_KEY, INVALID_REQUEST_ID and existing errors."},"message":{"type":"string"},"reason":{"type":"string"},"unknown_key":{"type":"string"},"field":{"type":"string"},"hint":{"type":"string"},"example":{"type":"object"},"disclaimer":{"type":"string"}}}}}},"415":{"description":"Send uncompressed application/json.","headers":{"RateLimit-Limit":{"schema":{"type":"integer"},"description":"Partner only: limiting quota window limit."},"RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Partner only: remaining calls in that window."},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Partner only: delta seconds until that window resets."},"X-Request-Id":{"schema":{"type":"string","maxLength":128},"description":"Partner only: supplied visible ASCII request ID, echoed without storage."}},"content":{"application/json":{"schema":{"type":"object","required":["status","code","message","disclaimer"],"properties":{"status":{"const":"failed","type":"string"},"code":{"type":"string","description":"Includes INVALID_GEOMETRY, INVALID_ARGUMENTS, INVALID_API_KEY, INVALID_REQUEST_ID and existing errors."},"message":{"type":"string"},"reason":{"type":"string"},"unknown_key":{"type":"string"},"field":{"type":"string"},"hint":{"type":"string"},"example":{"type":"object"},"disclaimer":{"type":"string"}}}}}},"429":{"description":"Rate limit reached. Respect Retry-After.","headers":{"RateLimit-Limit":{"schema":{"type":"integer"},"description":"Partner only: limiting quota window limit."},"RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Partner only: remaining calls in that window."},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Partner only: delta seconds until that window resets."},"X-Request-Id":{"schema":{"type":"string","maxLength":128},"description":"Partner only: supplied visible ASCII request ID, echoed without storage."},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds until retry."}},"content":{"application/json":{"schema":{"type":"object","required":["status","code","message","disclaimer"],"properties":{"status":{"const":"failed","type":"string"},"code":{"type":"string","description":"Includes INVALID_GEOMETRY, INVALID_ARGUMENTS, INVALID_API_KEY, INVALID_REQUEST_ID and existing errors."},"message":{"type":"string"},"reason":{"type":"string"},"unknown_key":{"type":"string"},"field":{"type":"string"},"hint":{"type":"string"},"example":{"type":"object"},"disclaimer":{"type":"string"}}}}}},"500":{"description":"Internal error; retry or direct the user to the website.","headers":{"RateLimit-Limit":{"schema":{"type":"integer"},"description":"Partner only: limiting quota window limit."},"RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Partner only: remaining calls in that window."},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Partner only: delta seconds until that window resets."},"X-Request-Id":{"schema":{"type":"string","maxLength":128},"description":"Partner only: supplied visible ASCII request ID, echoed without storage."}},"content":{"application/json":{"schema":{"type":"object","required":["status","code","message","disclaimer"],"properties":{"status":{"const":"failed","type":"string"},"code":{"type":"string","description":"Includes INVALID_GEOMETRY, INVALID_ARGUMENTS, INVALID_API_KEY, INVALID_REQUEST_ID and existing errors."},"message":{"type":"string"},"reason":{"type":"string"},"unknown_key":{"type":"string"},"field":{"type":"string"},"hint":{"type":"string"},"example":{"type":"object"},"disclaimer":{"type":"string"}}}}}},"503":{"description":"Measurement queue or request capacity full. Respect Retry-After.","headers":{"RateLimit-Limit":{"schema":{"type":"integer"},"description":"Partner only: limiting quota window limit."},"RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Partner only: remaining calls in that window."},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Partner only: delta seconds until that window resets."},"X-Request-Id":{"schema":{"type":"string","maxLength":128},"description":"Partner only: supplied visible ASCII request ID, echoed without storage."},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds until retry."}},"content":{"application/json":{"schema":{"type":"object","required":["status","code","message","disclaimer"],"properties":{"status":{"const":"failed","type":"string"},"code":{"type":"string","description":"Includes INVALID_GEOMETRY, INVALID_ARGUMENTS, INVALID_API_KEY, INVALID_REQUEST_ID and existing errors."},"message":{"type":"string"},"reason":{"type":"string"},"unknown_key":{"type":"string"},"field":{"type":"string"},"hint":{"type":"string"},"example":{"type":"object"},"disclaimer":{"type":"string"}}}}}},"504":{"description":"Image download or measurement timed out.","headers":{"RateLimit-Limit":{"schema":{"type":"integer"},"description":"Partner only: limiting quota window limit."},"RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Partner only: remaining calls in that window."},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Partner only: delta seconds until that window resets."},"X-Request-Id":{"schema":{"type":"string","maxLength":128},"description":"Partner only: supplied visible ASCII request ID, echoed without storage."}},"content":{"application/json":{"schema":{"type":"object","required":["status","code","message","disclaimer"],"properties":{"status":{"const":"failed","type":"string"},"code":{"type":"string","description":"Includes INVALID_GEOMETRY, INVALID_ARGUMENTS, INVALID_API_KEY, INVALID_REQUEST_ID and existing errors."},"message":{"type":"string"},"reason":{"type":"string"},"unknown_key":{"type":"string"},"field":{"type":"string"},"hint":{"type":"string"},"example":{"type":"object"},"disclaimer":{"type":"string"}}}}}}}}},"/api/v1/measure":{"post":{"operationId":"measure_card_centering","summary":"Measure one card photograph","description":"Measure one ACTUAL photograph. Example shape: {\"face\":\"front\",\"image_base64\":\"<complete actual image bytes>\"}. Ask front/back BEFORE calling if unknown. Exactly one user-provided public HTTPS image URL (port 443) or complete base64 source, never both. Never decode, repair or re-encode bytes yourself; never invent, shorten or rewrite base64; pass it verbatim, including an image data-URL prefix or whitespace (service normalizes). If chat attachment cannot be forwarded, send user to https://centeringlab.com/. card_size standard=63×88 mm including Japanese Pokémon; small=59×86 mm including Yu-Gi-Oh!, not inferred from language. Request a whole card flat from above on dark surface; if sleeved/toploader or tilted, recommend a retake first. Borderless: suggest back/manual site. API photos reach server memory; site stays local. needs-review/failed gives ceilings=null: retake or adjust manually, no grade prediction. Inspect status/code even on HTTP 200; respect Retry-After. REST also returns editable geometry and accepts corrected corners. After a person reviews the lines, use /api/v1/measure/confirm.","x-openai-isConsequential":false,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["face"],"properties":{"face":{"type":"string","enum":["front","back"],"description":"Required: front or back (English). Ask the user before calling if unclear. Case/outer whitespace accepted, e.g. Front; reverse/obverse are rejected.","examples":["front","back"]},"card_size":{"default":"standard","description":"standard = 63×88 mm; small = 59×86 mm. Japanese Pokémon uses standard; Yu-Gi-Oh! uses small. Case/outer whitespace accepted. Example: standard.","examples":["standard","small"],"type":"string","enum":["standard","small"]},"corners":{"type":"array","prefixItems":[{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false}],"items":false,"minItems":4,"maxItems":4,"description":"Card corners in engine image pixels: top-left, top-right, bottom-right, bottom-left. Engine applies EXIF orientation and reduces the longest edge to at most 2560 px."},"image_url":{"description":"Public HTTPS image URL, port 443. Private network addresses and non-image responses are rejected. Use only a URL supplied by the user: never invent one. Example syntax: https://images.example.org/card.jpg (placeholder, never fetch it).","examples":["https://images.example.org/card.jpg"],"type":"string","maxLength":8192,"format":"uri"},"openaiFileIdRefs":{"type":"array","minItems":1,"maxItems":1,"items":{"type":"string"},"examples":[["file-abc"]],"description":"Exactly one photograph of a collectible card uploaded by the user: JPG, PNG or WebP recommended. Pass its file ID. ChatGPT expands this to {name,id,mime_type,download_link} at runtime; the server downloads the image immediately. Do not fabricate a download link."}},"oneOf":[{"required":["image_url"],"not":{"required":["openaiFileIdRefs"]}},{"required":["openaiFileIdRefs"],"not":{"required":["image_url"]}}]}}}},"responses":{"200":{"description":"Centering result. Always distinguish a centering ceiling from a grade prediction.","headers":{"RateLimit-Limit":{"schema":{"type":"integer"},"description":"Partner only: limiting quota window limit."},"RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Partner only: remaining calls in that window."},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Partner only: delta seconds until that window resets."},"X-Request-Id":{"schema":{"type":"string","maxLength":128},"description":"Partner only: supplied visible ASCII request ID, echoed without storage."}},"content":{"application/json":{"schema":{"type":"object","properties":{"normalizations":{"default":[],"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"input":{"type":["number","string"]},"ratio":{"type":"string"},"note":{"type":"string"}},"required":["field","note"],"additionalProperties":false}},"status":{"type":"string","enum":["ok","needs-review","failed"]},"code":{"type":"string"},"face":{"type":"string","enum":["front","back"],"description":"Face: front or back, in English. Ask the user if unknown. Case and outer whitespace accepted; never use reverse/obverse or translated names. Example: front.","examples":["front","back"]},"card_size":{"type":"string","enum":["standard","small"]},"lr":{"anyOf":[{"type":"object","properties":{"ratio":{"type":"string"},"major_percent":{"type":"number"},"minor_percent":{"type":"number"},"uncertainty_pp":{"type":"number"},"sigma_pp":{"type":"number"},"worst_station_px":{"type":"number"},"stations_major_percent":{"type":"array","items":{"type":"number"}}},"required":["ratio","major_percent","minor_percent","uncertainty_pp","sigma_pp","worst_station_px","stations_major_percent"],"additionalProperties":false},{"type":"null"}]},"tb":{"anyOf":[{"type":"object","properties":{"ratio":{"type":"string"},"major_percent":{"type":"number"},"minor_percent":{"type":"number"},"uncertainty_pp":{"type":"number"},"sigma_pp":{"type":"number"},"worst_station_px":{"type":"number"},"stations_major_percent":{"type":"array","items":{"type":"number"}}},"required":["ratio","major_percent","minor_percent","uncertainty_pp","sigma_pp","worst_station_px","stations_major_percent"],"additionalProperties":false},{"type":"null"}]},"confidence":{"anyOf":[{"type":"number","minimum":0,"maximum":1},{"type":"null"}]},"warnings":{"type":"array","items":{"type":"string"}},"ceilings":{"anyOf":[{"type":"object","properties":{"PSA":{"type":"object","properties":{"maximum_grade":{"type":["number","null"]},"label":{"type":["string","null"]},"rank":{"type":["number","null"]},"limiting_face":{"type":"string","enum":["front","back"],"description":"Face: front or back, in English. Ask the user if unknown. Case and outer whitespace accepted; never use reverse/obverse or translated names. Example: front.","examples":["front","back"]},"limiting_axis":{"type":"string","enum":["lr","tb"]},"distance_to_next":{"type":["number","null"]},"next_grade":{"type":["number","null"]},"next_label":{"type":["string","null"]},"borderline":{"type":"boolean"},"unconstrained":{"type":"boolean"},"source_status":{"type":"string","enum":["official","interpreted","approximate"]},"standard_status":{"type":"string","enum":["official","interpreted","approximate"]},"source":{"type":"string"},"sources":{"type":"array","items":{"type":"string"}},"verified":{"type":"string"},"verification":{"type":"string"}},"required":["maximum_grade","label","rank","limiting_face","limiting_axis","distance_to_next","next_grade","next_label","borderline","unconstrained","source_status","standard_status","source","sources","verified","verification"],"additionalProperties":false},"BGS":{"type":"object","properties":{"maximum_grade":{"type":["number","null"]},"label":{"type":["string","null"]},"rank":{"type":["number","null"]},"limiting_face":{"type":"string","enum":["front","back"],"description":"Face: front or back, in English. Ask the user if unknown. Case and outer whitespace accepted; never use reverse/obverse or translated names. Example: front.","examples":["front","back"]},"limiting_axis":{"type":"string","enum":["lr","tb"]},"distance_to_next":{"type":["number","null"]},"next_grade":{"type":["number","null"]},"next_label":{"type":["string","null"]},"borderline":{"type":"boolean"},"unconstrained":{"type":"boolean"},"source_status":{"type":"string","enum":["official","interpreted","approximate"]},"standard_status":{"type":"string","enum":["official","interpreted","approximate"]},"source":{"type":"string"},"sources":{"type":"array","items":{"type":"string"}},"verified":{"type":"string"},"verification":{"type":"string"}},"required":["maximum_grade","label","rank","limiting_face","limiting_axis","distance_to_next","next_grade","next_label","borderline","unconstrained","source_status","standard_status","source","sources","verified","verification"],"additionalProperties":false},"CGC":{"type":"object","properties":{"maximum_grade":{"type":["number","null"]},"label":{"type":["string","null"]},"rank":{"type":["number","null"]},"limiting_face":{"type":"string","enum":["front","back"],"description":"Face: front or back, in English. Ask the user if unknown. Case and outer whitespace accepted; never use reverse/obverse or translated names. Example: front.","examples":["front","back"]},"limiting_axis":{"type":"string","enum":["lr","tb"]},"distance_to_next":{"type":["number","null"]},"next_grade":{"type":["number","null"]},"next_label":{"type":["string","null"]},"borderline":{"type":"boolean"},"unconstrained":{"type":"boolean"},"source_status":{"type":"string","enum":["official","interpreted","approximate"]},"standard_status":{"type":"string","enum":["official","interpreted","approximate"]},"source":{"type":"string"},"sources":{"type":"array","items":{"type":"string"}},"verified":{"type":"string"},"verification":{"type":"string"}},"required":["maximum_grade","label","rank","limiting_face","limiting_axis","distance_to_next","next_grade","next_label","borderline","unconstrained","source_status","standard_status","source","sources","verified","verification"],"additionalProperties":false},"SGC":{"type":"object","properties":{"maximum_grade":{"type":["number","null"]},"label":{"type":["string","null"]},"rank":{"type":["number","null"]},"limiting_face":{"type":"string","enum":["front","back"],"description":"Face: front or back, in English. Ask the user if unknown. Case and outer whitespace accepted; never use reverse/obverse or translated names. Example: front.","examples":["front","back"]},"limiting_axis":{"type":"string","enum":["lr","tb"]},"distance_to_next":{"type":["number","null"]},"next_grade":{"type":["number","null"]},"next_label":{"type":["string","null"]},"borderline":{"type":"boolean"},"unconstrained":{"type":"boolean"},"source_status":{"type":"string","enum":["official","interpreted","approximate"]},"standard_status":{"type":"string","enum":["official","interpreted","approximate"]},"source":{"type":"string"},"sources":{"type":"array","items":{"type":"string"}},"verified":{"type":"string"},"verification":{"type":"string"}},"required":["maximum_grade","label","rank","limiting_face","limiting_axis","distance_to_next","next_grade","next_label","borderline","unconstrained","source_status","standard_status","source","sources","verified","verification"],"additionalProperties":false}},"required":["PSA","BGS","CGC","SGC"],"additionalProperties":false},{"type":"null"}]},"adjust_url":{"type":"string"},"advice":{"type":"string"},"elapsed_ms":{"type":"number"},"image_bytes":{"type":"number"},"summary":{"type":"string"},"disclaimer":{"type":"string"},"geometry":{"type":"object","properties":{"geometry_version":{"type":"number","const":1},"image":{"type":"object","properties":{"width":{"type":"integer","minimum":1,"maximum":2560},"height":{"type":"integer","minimum":1,"maximum":2560}},"required":["width","height"],"additionalProperties":false},"corners":{"type":"array","prefixItems":[{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false}],"items":false,"minItems":4,"maxItems":4,"description":"Card corners in engine image pixels: top-left, top-right, bottom-right, bottom-left. Engine applies EXIF orientation and reduces the longest edge to at most 2560 px."},"rectified":{"type":"object","properties":{"width":{"type":"integer","minimum":1,"maximum":2560},"height":{"type":"integer","minimum":1,"maximum":2560},"rotations":{"default":0,"type":"integer","minimum":0,"maximum":3},"corner_offset":{"default":0,"description":"Core rectification maps corners[(i + corner_offset) % 4] to canonical cut corner i, before clockwise rotations. Needed when the card is sideways in the image; corners always stay in image top-left order.","type":"integer","minimum":0,"maximum":3}},"required":["width","height","rotations","corner_offset"],"additionalProperties":false},"lines":{"type":"object","properties":{"cut":{"type":"object","properties":{"left":{"type":"object","properties":{"intercept":{"type":"number"},"slope":{"type":"number"}},"required":["intercept","slope"],"additionalProperties":false},"right":{"type":"object","properties":{"intercept":{"type":"number"},"slope":{"type":"number"}},"required":["intercept","slope"],"additionalProperties":false},"top":{"type":"object","properties":{"intercept":{"type":"number"},"slope":{"type":"number"}},"required":["intercept","slope"],"additionalProperties":false},"bottom":{"type":"object","properties":{"intercept":{"type":"number"},"slope":{"type":"number"}},"required":["intercept","slope"],"additionalProperties":false}},"required":["left","right","top","bottom"],"additionalProperties":false},"print":{"type":"object","properties":{"left":{"type":"object","properties":{"intercept":{"type":"number"},"slope":{"type":"number"}},"required":["intercept","slope"],"additionalProperties":false},"right":{"type":"object","properties":{"intercept":{"type":"number"},"slope":{"type":"number"}},"required":["intercept","slope"],"additionalProperties":false},"top":{"type":"object","properties":{"intercept":{"type":"number"},"slope":{"type":"number"}},"required":["intercept","slope"],"additionalProperties":false},"bottom":{"type":"object","properties":{"intercept":{"type":"number"},"slope":{"type":"number"}},"required":["intercept","slope"],"additionalProperties":false}},"required":["left","right","top","bottom"],"additionalProperties":false}},"required":["cut","print"],"additionalProperties":false,"description":"Rectified coordinates including padding. Vertical sides: x = intercept + slope*y. Horizontal sides: y = intercept + slope*x. Use these lines and corners to draw overlays and allow a person to correct them."},"card_size":{"type":"string","enum":["standard","small"]},"warnings":{"default":[],"description":"Preserve the engine warnings for the website confidence calculation.","maxItems":9,"type":"array","items":{"type":"string","enum":["TILTED_PRINT","BLURRY","GLARE","STRONG_ANGLE","LENS_CURVE","POSSIBLE_MISCUT","SMALL_CARD_SIZE","GET_CLOSER","PLASTIC"]}},"positioning_sigma":{"description":"Rectified-pixel cut placement uncertainty from the engine. Preserve when editing lines, for exactly the same uncertainty calculation as the website; omit for the core geometric fallback.","type":"number","minimum":0,"maximum":1000}},"required":["geometry_version","image","corners","rectified","lines","card_size","warnings"],"additionalProperties":false,"description":"Transient editable geometry for overlays on the photo and rectified card; not a Centering Lab verification. Never store images or geometry on the server."}},"required":["normalizations","status","code","face","card_size","lr","tb","confidence","warnings","ceilings","adjust_url","advice","elapsed_ms","image_bytes","summary","disclaimer"],"additionalProperties":false}}}},"400":{"description":"Invalid input, unsafe image URL or unsupported image.","headers":{"RateLimit-Limit":{"schema":{"type":"integer"},"description":"Partner only: limiting quota window limit."},"RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Partner only: remaining calls in that window."},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Partner only: delta seconds until that window resets."},"X-Request-Id":{"schema":{"type":"string","maxLength":128},"description":"Partner only: supplied visible ASCII request ID, echoed without storage."}},"content":{"application/json":{"schema":{"type":"object","required":["status","code","message","disclaimer"],"properties":{"status":{"const":"failed","type":"string"},"code":{"type":"string","description":"Includes INVALID_GEOMETRY, INVALID_ARGUMENTS, INVALID_API_KEY, INVALID_REQUEST_ID and existing errors."},"message":{"type":"string"},"reason":{"type":"string"},"unknown_key":{"type":"string"},"field":{"type":"string"},"hint":{"type":"string"},"example":{"type":"object"},"disclaimer":{"type":"string"}}}}}},"401":{"description":"INVALID_API_KEY: unknown, inactive or malformed partner key.","headers":{"RateLimit-Limit":{"schema":{"type":"integer"},"description":"Partner only: limiting quota window limit."},"RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Partner only: remaining calls in that window."},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Partner only: delta seconds until that window resets."},"X-Request-Id":{"schema":{"type":"string","maxLength":128},"description":"Partner only: supplied visible ASCII request ID, echoed without storage."}},"content":{"application/json":{"schema":{"type":"object","required":["status","code","message","disclaimer"],"properties":{"status":{"const":"failed","type":"string"},"code":{"type":"string","description":"Includes INVALID_GEOMETRY, INVALID_ARGUMENTS, INVALID_API_KEY, INVALID_REQUEST_ID and existing errors."},"message":{"type":"string"},"reason":{"type":"string"},"unknown_key":{"type":"string"},"field":{"type":"string"},"hint":{"type":"string"},"example":{"type":"object"},"disclaimer":{"type":"string"}}}}}},"403":{"description":"Unrecognized Host header.","headers":{"RateLimit-Limit":{"schema":{"type":"integer"},"description":"Partner only: limiting quota window limit."},"RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Partner only: remaining calls in that window."},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Partner only: delta seconds until that window resets."},"X-Request-Id":{"schema":{"type":"string","maxLength":128},"description":"Partner only: supplied visible ASCII request ID, echoed without storage."}},"content":{"application/json":{"schema":{"type":"object","required":["status","code","message","disclaimer"],"properties":{"status":{"const":"failed","type":"string"},"code":{"type":"string","description":"Includes INVALID_GEOMETRY, INVALID_ARGUMENTS, INVALID_API_KEY, INVALID_REQUEST_ID and existing errors."},"message":{"type":"string"},"reason":{"type":"string"},"unknown_key":{"type":"string"},"field":{"type":"string"},"hint":{"type":"string"},"example":{"type":"object"},"disclaimer":{"type":"string"}}}}}},"405":{"description":"Use the documented HTTP method.","headers":{"RateLimit-Limit":{"schema":{"type":"integer"},"description":"Partner only: limiting quota window limit."},"RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Partner only: remaining calls in that window."},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Partner only: delta seconds until that window resets."},"X-Request-Id":{"schema":{"type":"string","maxLength":128},"description":"Partner only: supplied visible ASCII request ID, echoed without storage."}},"content":{"application/json":{"schema":{"type":"object","required":["status","code","message","disclaimer"],"properties":{"status":{"const":"failed","type":"string"},"code":{"type":"string","description":"Includes INVALID_GEOMETRY, INVALID_ARGUMENTS, INVALID_API_KEY, INVALID_REQUEST_ID and existing errors."},"message":{"type":"string"},"reason":{"type":"string"},"unknown_key":{"type":"string"},"field":{"type":"string"},"hint":{"type":"string"},"example":{"type":"object"},"disclaimer":{"type":"string"}}}}}},"413":{"description":"Request/image byte limit or decoded pixel limit exceeded.","headers":{"RateLimit-Limit":{"schema":{"type":"integer"},"description":"Partner only: limiting quota window limit."},"RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Partner only: remaining calls in that window."},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Partner only: delta seconds until that window resets."},"X-Request-Id":{"schema":{"type":"string","maxLength":128},"description":"Partner only: supplied visible ASCII request ID, echoed without storage."}},"content":{"application/json":{"schema":{"type":"object","required":["status","code","message","disclaimer"],"properties":{"status":{"const":"failed","type":"string"},"code":{"type":"string","description":"Includes INVALID_GEOMETRY, INVALID_ARGUMENTS, INVALID_API_KEY, INVALID_REQUEST_ID and existing errors."},"message":{"type":"string"},"reason":{"type":"string"},"unknown_key":{"type":"string"},"field":{"type":"string"},"hint":{"type":"string"},"example":{"type":"object"},"disclaimer":{"type":"string"}}}}}},"415":{"description":"Send uncompressed application/json.","headers":{"RateLimit-Limit":{"schema":{"type":"integer"},"description":"Partner only: limiting quota window limit."},"RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Partner only: remaining calls in that window."},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Partner only: delta seconds until that window resets."},"X-Request-Id":{"schema":{"type":"string","maxLength":128},"description":"Partner only: supplied visible ASCII request ID, echoed without storage."}},"content":{"application/json":{"schema":{"type":"object","required":["status","code","message","disclaimer"],"properties":{"status":{"const":"failed","type":"string"},"code":{"type":"string","description":"Includes INVALID_GEOMETRY, INVALID_ARGUMENTS, INVALID_API_KEY, INVALID_REQUEST_ID and existing errors."},"message":{"type":"string"},"reason":{"type":"string"},"unknown_key":{"type":"string"},"field":{"type":"string"},"hint":{"type":"string"},"example":{"type":"object"},"disclaimer":{"type":"string"}}}}}},"429":{"description":"Rate limit reached. Respect Retry-After.","headers":{"RateLimit-Limit":{"schema":{"type":"integer"},"description":"Partner only: limiting quota window limit."},"RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Partner only: remaining calls in that window."},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Partner only: delta seconds until that window resets."},"X-Request-Id":{"schema":{"type":"string","maxLength":128},"description":"Partner only: supplied visible ASCII request ID, echoed without storage."},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds until retry."}},"content":{"application/json":{"schema":{"type":"object","required":["status","code","message","disclaimer"],"properties":{"status":{"const":"failed","type":"string"},"code":{"type":"string","description":"Includes INVALID_GEOMETRY, INVALID_ARGUMENTS, INVALID_API_KEY, INVALID_REQUEST_ID and existing errors."},"message":{"type":"string"},"reason":{"type":"string"},"unknown_key":{"type":"string"},"field":{"type":"string"},"hint":{"type":"string"},"example":{"type":"object"},"disclaimer":{"type":"string"}}}}}},"500":{"description":"Internal error; retry or direct the user to the website.","headers":{"RateLimit-Limit":{"schema":{"type":"integer"},"description":"Partner only: limiting quota window limit."},"RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Partner only: remaining calls in that window."},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Partner only: delta seconds until that window resets."},"X-Request-Id":{"schema":{"type":"string","maxLength":128},"description":"Partner only: supplied visible ASCII request ID, echoed without storage."}},"content":{"application/json":{"schema":{"type":"object","required":["status","code","message","disclaimer"],"properties":{"status":{"const":"failed","type":"string"},"code":{"type":"string","description":"Includes INVALID_GEOMETRY, INVALID_ARGUMENTS, INVALID_API_KEY, INVALID_REQUEST_ID and existing errors."},"message":{"type":"string"},"reason":{"type":"string"},"unknown_key":{"type":"string"},"field":{"type":"string"},"hint":{"type":"string"},"example":{"type":"object"},"disclaimer":{"type":"string"}}}}}},"503":{"description":"Measurement queue or request capacity full. Respect Retry-After.","headers":{"RateLimit-Limit":{"schema":{"type":"integer"},"description":"Partner only: limiting quota window limit."},"RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Partner only: remaining calls in that window."},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Partner only: delta seconds until that window resets."},"X-Request-Id":{"schema":{"type":"string","maxLength":128},"description":"Partner only: supplied visible ASCII request ID, echoed without storage."},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds until retry."}},"content":{"application/json":{"schema":{"type":"object","required":["status","code","message","disclaimer"],"properties":{"status":{"const":"failed","type":"string"},"code":{"type":"string","description":"Includes INVALID_GEOMETRY, INVALID_ARGUMENTS, INVALID_API_KEY, INVALID_REQUEST_ID and existing errors."},"message":{"type":"string"},"reason":{"type":"string"},"unknown_key":{"type":"string"},"field":{"type":"string"},"hint":{"type":"string"},"example":{"type":"object"},"disclaimer":{"type":"string"}}}}}},"504":{"description":"Image download or measurement timed out.","headers":{"RateLimit-Limit":{"schema":{"type":"integer"},"description":"Partner only: limiting quota window limit."},"RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Partner only: remaining calls in that window."},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Partner only: delta seconds until that window resets."},"X-Request-Id":{"schema":{"type":"string","maxLength":128},"description":"Partner only: supplied visible ASCII request ID, echoed without storage."}},"content":{"application/json":{"schema":{"type":"object","required":["status","code","message","disclaimer"],"properties":{"status":{"const":"failed","type":"string"},"code":{"type":"string","description":"Includes INVALID_GEOMETRY, INVALID_ARGUMENTS, INVALID_API_KEY, INVALID_REQUEST_ID and existing errors."},"message":{"type":"string"},"reason":{"type":"string"},"unknown_key":{"type":"string"},"field":{"type":"string"},"hint":{"type":"string"},"example":{"type":"object"},"disclaimer":{"type":"string"}}}}}}}}},"/api/v1/measure/confirm":{"post":{"operationId":"confirm_card_centering","summary":"Calculate from lines confirmed by the client","description":"No image required. A person must check or correct the supplied geometry before confirmed_by=person is sent. Uses the website core calculation, independently of the automatic confidence gate. basis=client-confirmed-lines is a client assertion, not a Centering Lab verification. Simple quota. This is a ceiling from centering alone, not a prediction of the final grade.","x-openai-isConsequential":false,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"face":{"type":"string","enum":["front","back"],"description":"front or back, in lowercase. Use the same face as the reviewed measurement.","examples":["front","back"]},"card_size":{"type":"string","enum":["standard","small"]},"geometry":{"type":"object","properties":{"geometry_version":{"type":"number","const":1},"image":{"type":"object","properties":{"width":{"type":"integer","minimum":1,"maximum":2560},"height":{"type":"integer","minimum":1,"maximum":2560}},"required":["width","height"],"additionalProperties":false},"corners":{"type":"array","prefixItems":[{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false}],"items":false,"minItems":4,"maxItems":4,"description":"Card corners in engine image pixels: top-left, top-right, bottom-right, bottom-left. Engine applies EXIF orientation and reduces the longest edge to at most 2560 px."},"rectified":{"type":"object","properties":{"width":{"type":"integer","minimum":1,"maximum":2560},"height":{"type":"integer","minimum":1,"maximum":2560},"rotations":{"default":0,"type":"integer","minimum":0,"maximum":3},"corner_offset":{"default":0,"description":"Core rectification maps corners[(i + corner_offset) % 4] to canonical cut corner i, before clockwise rotations. Needed when the card is sideways in the image; corners always stay in image top-left order.","type":"integer","minimum":0,"maximum":3}},"required":["width","height"],"additionalProperties":false},"lines":{"type":"object","properties":{"cut":{"type":"object","properties":{"left":{"type":"object","properties":{"intercept":{"type":"number"},"slope":{"type":"number"}},"required":["intercept","slope"],"additionalProperties":false},"right":{"type":"object","properties":{"intercept":{"type":"number"},"slope":{"type":"number"}},"required":["intercept","slope"],"additionalProperties":false},"top":{"type":"object","properties":{"intercept":{"type":"number"},"slope":{"type":"number"}},"required":["intercept","slope"],"additionalProperties":false},"bottom":{"type":"object","properties":{"intercept":{"type":"number"},"slope":{"type":"number"}},"required":["intercept","slope"],"additionalProperties":false}},"required":["left","right","top","bottom"],"additionalProperties":false},"print":{"type":"object","properties":{"left":{"type":"object","properties":{"intercept":{"type":"number"},"slope":{"type":"number"}},"required":["intercept","slope"],"additionalProperties":false},"right":{"type":"object","properties":{"intercept":{"type":"number"},"slope":{"type":"number"}},"required":["intercept","slope"],"additionalProperties":false},"top":{"type":"object","properties":{"intercept":{"type":"number"},"slope":{"type":"number"}},"required":["intercept","slope"],"additionalProperties":false},"bottom":{"type":"object","properties":{"intercept":{"type":"number"},"slope":{"type":"number"}},"required":["intercept","slope"],"additionalProperties":false}},"required":["left","right","top","bottom"],"additionalProperties":false}},"required":["cut","print"],"additionalProperties":false,"description":"Rectified coordinates including padding. Vertical sides: x = intercept + slope*y. Horizontal sides: y = intercept + slope*x. Use these lines and corners to draw overlays and allow a person to correct them."},"card_size":{"type":"string","enum":["standard","small"]},"warnings":{"default":[],"description":"Preserve the engine warnings for the website confidence calculation.","maxItems":9,"type":"array","items":{"type":"string","enum":["TILTED_PRINT","BLURRY","GLARE","STRONG_ANGLE","LENS_CURVE","POSSIBLE_MISCUT","SMALL_CARD_SIZE","GET_CLOSER","PLASTIC"]}},"positioning_sigma":{"description":"Rectified-pixel cut placement uncertainty from the engine. Preserve when editing lines, for exactly the same uncertainty calculation as the website; omit for the core geometric fallback.","type":"number","minimum":0,"maximum":1000}},"required":["geometry_version","image","corners","rectified","lines","card_size"],"additionalProperties":false,"description":"Transient editable geometry for overlays on the photo and rectified card; not a Centering Lab verification. Never store images or geometry on the server."},"confirmed_by":{"type":"string","const":"person","description":"Required: a person checked or corrected these lines. This is a client assertion, not a Centering Lab verification."}},"required":["face","card_size","geometry","confirmed_by"],"additionalProperties":false}}}},"responses":{"200":{"description":"Centering result. Always distinguish a centering ceiling from a grade prediction.","headers":{"RateLimit-Limit":{"schema":{"type":"integer"},"description":"Partner only: limiting quota window limit."},"RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Partner only: remaining calls in that window."},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Partner only: delta seconds until that window resets."},"X-Request-Id":{"schema":{"type":"string","maxLength":128},"description":"Partner only: supplied visible ASCII request ID, echoed without storage."}},"content":{"application/json":{"schema":{"type":"object","properties":{"normalizations":{"default":[],"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"input":{"type":["number","string"]},"ratio":{"type":"string"},"note":{"type":"string"}},"required":["field","note"],"additionalProperties":false}},"status":{"type":"string","const":"ok"},"code":{"type":"string","const":"OK"},"face":{"type":"string","enum":["front","back"],"description":"Face: front or back, in English. Ask the user if unknown. Case and outer whitespace accepted; never use reverse/obverse or translated names. Example: front.","examples":["front","back"]},"card_size":{"type":"string","enum":["standard","small"]},"lr":{"anyOf":[{"type":"object","properties":{"ratio":{"type":"string"},"major_percent":{"type":"number"},"minor_percent":{"type":"number"},"uncertainty_pp":{"type":"number"},"sigma_pp":{"type":"number"},"worst_station_px":{"type":"number"},"stations_major_percent":{"type":"array","items":{"type":"number"}}},"required":["ratio","major_percent","minor_percent","uncertainty_pp","sigma_pp","worst_station_px","stations_major_percent"],"additionalProperties":false},{"type":"null"}]},"tb":{"anyOf":[{"type":"object","properties":{"ratio":{"type":"string"},"major_percent":{"type":"number"},"minor_percent":{"type":"number"},"uncertainty_pp":{"type":"number"},"sigma_pp":{"type":"number"},"worst_station_px":{"type":"number"},"stations_major_percent":{"type":"array","items":{"type":"number"}}},"required":["ratio","major_percent","minor_percent","uncertainty_pp","sigma_pp","worst_station_px","stations_major_percent"],"additionalProperties":false},{"type":"null"}]},"confidence":{"anyOf":[{"type":"number","minimum":0,"maximum":1},{"type":"null"}]},"warnings":{"type":"array","items":{"type":"string"}},"ceilings":{"type":"object","properties":{"PSA":{"type":"object","properties":{"maximum_grade":{"type":["number","null"]},"label":{"type":["string","null"]},"rank":{"type":["number","null"]},"limiting_face":{"type":"string","enum":["front","back"],"description":"Face: front or back, in English. Ask the user if unknown. Case and outer whitespace accepted; never use reverse/obverse or translated names. Example: front.","examples":["front","back"]},"limiting_axis":{"type":"string","enum":["lr","tb"]},"distance_to_next":{"type":["number","null"]},"next_grade":{"type":["number","null"]},"next_label":{"type":["string","null"]},"borderline":{"type":"boolean"},"unconstrained":{"type":"boolean"},"source_status":{"type":"string","enum":["official","interpreted","approximate"]},"standard_status":{"type":"string","enum":["official","interpreted","approximate"]},"source":{"type":"string"},"sources":{"type":"array","items":{"type":"string"}},"verified":{"type":"string"},"verification":{"type":"string"}},"required":["maximum_grade","label","rank","limiting_face","limiting_axis","distance_to_next","next_grade","next_label","borderline","unconstrained","source_status","standard_status","source","sources","verified","verification"],"additionalProperties":false},"BGS":{"type":"object","properties":{"maximum_grade":{"type":["number","null"]},"label":{"type":["string","null"]},"rank":{"type":["number","null"]},"limiting_face":{"type":"string","enum":["front","back"],"description":"Face: front or back, in English. Ask the user if unknown. Case and outer whitespace accepted; never use reverse/obverse or translated names. Example: front.","examples":["front","back"]},"limiting_axis":{"type":"string","enum":["lr","tb"]},"distance_to_next":{"type":["number","null"]},"next_grade":{"type":["number","null"]},"next_label":{"type":["string","null"]},"borderline":{"type":"boolean"},"unconstrained":{"type":"boolean"},"source_status":{"type":"string","enum":["official","interpreted","approximate"]},"standard_status":{"type":"string","enum":["official","interpreted","approximate"]},"source":{"type":"string"},"sources":{"type":"array","items":{"type":"string"}},"verified":{"type":"string"},"verification":{"type":"string"}},"required":["maximum_grade","label","rank","limiting_face","limiting_axis","distance_to_next","next_grade","next_label","borderline","unconstrained","source_status","standard_status","source","sources","verified","verification"],"additionalProperties":false},"CGC":{"type":"object","properties":{"maximum_grade":{"type":["number","null"]},"label":{"type":["string","null"]},"rank":{"type":["number","null"]},"limiting_face":{"type":"string","enum":["front","back"],"description":"Face: front or back, in English. Ask the user if unknown. Case and outer whitespace accepted; never use reverse/obverse or translated names. Example: front.","examples":["front","back"]},"limiting_axis":{"type":"string","enum":["lr","tb"]},"distance_to_next":{"type":["number","null"]},"next_grade":{"type":["number","null"]},"next_label":{"type":["string","null"]},"borderline":{"type":"boolean"},"unconstrained":{"type":"boolean"},"source_status":{"type":"string","enum":["official","interpreted","approximate"]},"standard_status":{"type":"string","enum":["official","interpreted","approximate"]},"source":{"type":"string"},"sources":{"type":"array","items":{"type":"string"}},"verified":{"type":"string"},"verification":{"type":"string"}},"required":["maximum_grade","label","rank","limiting_face","limiting_axis","distance_to_next","next_grade","next_label","borderline","unconstrained","source_status","standard_status","source","sources","verified","verification"],"additionalProperties":false},"SGC":{"type":"object","properties":{"maximum_grade":{"type":["number","null"]},"label":{"type":["string","null"]},"rank":{"type":["number","null"]},"limiting_face":{"type":"string","enum":["front","back"],"description":"Face: front or back, in English. Ask the user if unknown. Case and outer whitespace accepted; never use reverse/obverse or translated names. Example: front.","examples":["front","back"]},"limiting_axis":{"type":"string","enum":["lr","tb"]},"distance_to_next":{"type":["number","null"]},"next_grade":{"type":["number","null"]},"next_label":{"type":["string","null"]},"borderline":{"type":"boolean"},"unconstrained":{"type":"boolean"},"source_status":{"type":"string","enum":["official","interpreted","approximate"]},"standard_status":{"type":"string","enum":["official","interpreted","approximate"]},"source":{"type":"string"},"sources":{"type":"array","items":{"type":"string"}},"verified":{"type":"string"},"verification":{"type":"string"}},"required":["maximum_grade","label","rank","limiting_face","limiting_axis","distance_to_next","next_grade","next_label","borderline","unconstrained","source_status","standard_status","source","sources","verified","verification"],"additionalProperties":false}},"required":["PSA","BGS","CGC","SGC"],"additionalProperties":false},"adjust_url":{"type":"string"},"advice":{"type":"string"},"elapsed_ms":{"type":"number"},"image_bytes":{"type":"number"},"summary":{"type":"string"},"disclaimer":{"type":"string"},"basis":{"type":"string","const":"client-confirmed-lines"}},"required":["normalizations","status","code","face","card_size","lr","tb","confidence","warnings","ceilings","adjust_url","advice","elapsed_ms","image_bytes","summary","disclaimer","basis"],"additionalProperties":false}}}},"400":{"description":"Invalid input, unsafe image URL or unsupported image.","headers":{"RateLimit-Limit":{"schema":{"type":"integer"},"description":"Partner only: limiting quota window limit."},"RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Partner only: remaining calls in that window."},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Partner only: delta seconds until that window resets."},"X-Request-Id":{"schema":{"type":"string","maxLength":128},"description":"Partner only: supplied visible ASCII request ID, echoed without storage."}},"content":{"application/json":{"schema":{"type":"object","required":["status","code","message","disclaimer"],"properties":{"status":{"const":"failed","type":"string"},"code":{"type":"string","description":"Includes INVALID_GEOMETRY, INVALID_ARGUMENTS, INVALID_API_KEY, INVALID_REQUEST_ID and existing errors."},"message":{"type":"string"},"reason":{"type":"string"},"unknown_key":{"type":"string"},"field":{"type":"string"},"hint":{"type":"string"},"example":{"type":"object"},"disclaimer":{"type":"string"}}}}}},"401":{"description":"INVALID_API_KEY: unknown, inactive or malformed partner key.","headers":{"RateLimit-Limit":{"schema":{"type":"integer"},"description":"Partner only: limiting quota window limit."},"RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Partner only: remaining calls in that window."},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Partner only: delta seconds until that window resets."},"X-Request-Id":{"schema":{"type":"string","maxLength":128},"description":"Partner only: supplied visible ASCII request ID, echoed without storage."}},"content":{"application/json":{"schema":{"type":"object","required":["status","code","message","disclaimer"],"properties":{"status":{"const":"failed","type":"string"},"code":{"type":"string","description":"Includes INVALID_GEOMETRY, INVALID_ARGUMENTS, INVALID_API_KEY, INVALID_REQUEST_ID and existing errors."},"message":{"type":"string"},"reason":{"type":"string"},"unknown_key":{"type":"string"},"field":{"type":"string"},"hint":{"type":"string"},"example":{"type":"object"},"disclaimer":{"type":"string"}}}}}},"403":{"description":"Unrecognized Host header.","headers":{"RateLimit-Limit":{"schema":{"type":"integer"},"description":"Partner only: limiting quota window limit."},"RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Partner only: remaining calls in that window."},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Partner only: delta seconds until that window resets."},"X-Request-Id":{"schema":{"type":"string","maxLength":128},"description":"Partner only: supplied visible ASCII request ID, echoed without storage."}},"content":{"application/json":{"schema":{"type":"object","required":["status","code","message","disclaimer"],"properties":{"status":{"const":"failed","type":"string"},"code":{"type":"string","description":"Includes INVALID_GEOMETRY, INVALID_ARGUMENTS, INVALID_API_KEY, INVALID_REQUEST_ID and existing errors."},"message":{"type":"string"},"reason":{"type":"string"},"unknown_key":{"type":"string"},"field":{"type":"string"},"hint":{"type":"string"},"example":{"type":"object"},"disclaimer":{"type":"string"}}}}}},"405":{"description":"Use the documented HTTP method.","headers":{"RateLimit-Limit":{"schema":{"type":"integer"},"description":"Partner only: limiting quota window limit."},"RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Partner only: remaining calls in that window."},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Partner only: delta seconds until that window resets."},"X-Request-Id":{"schema":{"type":"string","maxLength":128},"description":"Partner only: supplied visible ASCII request ID, echoed without storage."}},"content":{"application/json":{"schema":{"type":"object","required":["status","code","message","disclaimer"],"properties":{"status":{"const":"failed","type":"string"},"code":{"type":"string","description":"Includes INVALID_GEOMETRY, INVALID_ARGUMENTS, INVALID_API_KEY, INVALID_REQUEST_ID and existing errors."},"message":{"type":"string"},"reason":{"type":"string"},"unknown_key":{"type":"string"},"field":{"type":"string"},"hint":{"type":"string"},"example":{"type":"object"},"disclaimer":{"type":"string"}}}}}},"413":{"description":"Request/image byte limit or decoded pixel limit exceeded.","headers":{"RateLimit-Limit":{"schema":{"type":"integer"},"description":"Partner only: limiting quota window limit."},"RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Partner only: remaining calls in that window."},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Partner only: delta seconds until that window resets."},"X-Request-Id":{"schema":{"type":"string","maxLength":128},"description":"Partner only: supplied visible ASCII request ID, echoed without storage."}},"content":{"application/json":{"schema":{"type":"object","required":["status","code","message","disclaimer"],"properties":{"status":{"const":"failed","type":"string"},"code":{"type":"string","description":"Includes INVALID_GEOMETRY, INVALID_ARGUMENTS, INVALID_API_KEY, INVALID_REQUEST_ID and existing errors."},"message":{"type":"string"},"reason":{"type":"string"},"unknown_key":{"type":"string"},"field":{"type":"string"},"hint":{"type":"string"},"example":{"type":"object"},"disclaimer":{"type":"string"}}}}}},"415":{"description":"Send uncompressed application/json.","headers":{"RateLimit-Limit":{"schema":{"type":"integer"},"description":"Partner only: limiting quota window limit."},"RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Partner only: remaining calls in that window."},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Partner only: delta seconds until that window resets."},"X-Request-Id":{"schema":{"type":"string","maxLength":128},"description":"Partner only: supplied visible ASCII request ID, echoed without storage."}},"content":{"application/json":{"schema":{"type":"object","required":["status","code","message","disclaimer"],"properties":{"status":{"const":"failed","type":"string"},"code":{"type":"string","description":"Includes INVALID_GEOMETRY, INVALID_ARGUMENTS, INVALID_API_KEY, INVALID_REQUEST_ID and existing errors."},"message":{"type":"string"},"reason":{"type":"string"},"unknown_key":{"type":"string"},"field":{"type":"string"},"hint":{"type":"string"},"example":{"type":"object"},"disclaimer":{"type":"string"}}}}}},"429":{"description":"Rate limit reached. Respect Retry-After.","headers":{"RateLimit-Limit":{"schema":{"type":"integer"},"description":"Partner only: limiting quota window limit."},"RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Partner only: remaining calls in that window."},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Partner only: delta seconds until that window resets."},"X-Request-Id":{"schema":{"type":"string","maxLength":128},"description":"Partner only: supplied visible ASCII request ID, echoed without storage."},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds until retry."}},"content":{"application/json":{"schema":{"type":"object","required":["status","code","message","disclaimer"],"properties":{"status":{"const":"failed","type":"string"},"code":{"type":"string","description":"Includes INVALID_GEOMETRY, INVALID_ARGUMENTS, INVALID_API_KEY, INVALID_REQUEST_ID and existing errors."},"message":{"type":"string"},"reason":{"type":"string"},"unknown_key":{"type":"string"},"field":{"type":"string"},"hint":{"type":"string"},"example":{"type":"object"},"disclaimer":{"type":"string"}}}}}},"500":{"description":"Internal error; retry or direct the user to the website.","headers":{"RateLimit-Limit":{"schema":{"type":"integer"},"description":"Partner only: limiting quota window limit."},"RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Partner only: remaining calls in that window."},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Partner only: delta seconds until that window resets."},"X-Request-Id":{"schema":{"type":"string","maxLength":128},"description":"Partner only: supplied visible ASCII request ID, echoed without storage."}},"content":{"application/json":{"schema":{"type":"object","required":["status","code","message","disclaimer"],"properties":{"status":{"const":"failed","type":"string"},"code":{"type":"string","description":"Includes INVALID_GEOMETRY, INVALID_ARGUMENTS, INVALID_API_KEY, INVALID_REQUEST_ID and existing errors."},"message":{"type":"string"},"reason":{"type":"string"},"unknown_key":{"type":"string"},"field":{"type":"string"},"hint":{"type":"string"},"example":{"type":"object"},"disclaimer":{"type":"string"}}}}}},"503":{"description":"Measurement queue or request capacity full. Respect Retry-After.","headers":{"RateLimit-Limit":{"schema":{"type":"integer"},"description":"Partner only: limiting quota window limit."},"RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Partner only: remaining calls in that window."},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Partner only: delta seconds until that window resets."},"X-Request-Id":{"schema":{"type":"string","maxLength":128},"description":"Partner only: supplied visible ASCII request ID, echoed without storage."},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds until retry."}},"content":{"application/json":{"schema":{"type":"object","required":["status","code","message","disclaimer"],"properties":{"status":{"const":"failed","type":"string"},"code":{"type":"string","description":"Includes INVALID_GEOMETRY, INVALID_ARGUMENTS, INVALID_API_KEY, INVALID_REQUEST_ID and existing errors."},"message":{"type":"string"},"reason":{"type":"string"},"unknown_key":{"type":"string"},"field":{"type":"string"},"hint":{"type":"string"},"example":{"type":"object"},"disclaimer":{"type":"string"}}}}}},"504":{"description":"Image download or measurement timed out.","headers":{"RateLimit-Limit":{"schema":{"type":"integer"},"description":"Partner only: limiting quota window limit."},"RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Partner only: remaining calls in that window."},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Partner only: delta seconds until that window resets."},"X-Request-Id":{"schema":{"type":"string","maxLength":128},"description":"Partner only: supplied visible ASCII request ID, echoed without storage."}},"content":{"application/json":{"schema":{"type":"object","required":["status","code","message","disclaimer"],"properties":{"status":{"const":"failed","type":"string"},"code":{"type":"string","description":"Includes INVALID_GEOMETRY, INVALID_ARGUMENTS, INVALID_API_KEY, INVALID_REQUEST_ID and existing errors."},"message":{"type":"string"},"reason":{"type":"string"},"unknown_key":{"type":"string"},"field":{"type":"string"},"hint":{"type":"string"},"example":{"type":"object"},"disclaimer":{"type":"string"}}}}}}}}},"/api/v1/health":{"get":{"operationId":"get_api_health","summary":"Check service health","description":"Operational health check. No image or grading analysis.","responses":{"200":{"description":"Service is running.","headers":{"RateLimit-Limit":{"schema":{"type":"integer"},"description":"Partner only: limiting quota window limit."},"RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Partner only: remaining calls in that window."},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Partner only: delta seconds until that window resets."},"X-Request-Id":{"schema":{"type":"string","maxLength":128},"description":"Partner only: supplied visible ASCII request ID, echoed without storage."}},"content":{"application/json":{"schema":{"type":"object","required":["status","name","version","disclaimer"],"properties":{"status":{"const":"ok","type":"string"},"name":{"type":"string"},"version":{"type":"string"},"disclaimer":{"type":"string"}}}}}}}}},"/api/v1/openapi.json":{"get":{"operationId":"get_openapi_schema","summary":"Get the complete REST schema","description":"OpenAPI 3.1 REST schema, including URL, raw base64 and runtime GPT file metadata. GPT Actions use /api/v1/openapi-gpt.json. No image processing.","responses":{"200":{"description":"OpenAPI 3.1 document.","headers":{"RateLimit-Limit":{"schema":{"type":"integer"},"description":"Partner only: limiting quota window limit."},"RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Partner only: remaining calls in that window."},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Partner only: delta seconds until that window resets."},"X-Request-Id":{"schema":{"type":"string","maxLength":128},"description":"Partner only: supplied visible ASCII request ID, echoed without storage."}},"content":{"application/json":{"schema":{"type":"object","required":["openapi","info","servers","paths"],"properties":{"openapi":{"type":"string"},"info":{"type":"object"},"servers":{"type":"array","items":{"type":"object"}},"paths":{"type":"object"}}}}}}}}}}}