{"openapi":"3.1.0","info":{"title":"AutoMarket Atlas","summary":"Used-car asking-price trends and comparable-listing valuations by market.","description":"Vehicle price amounts use the market currency. Usage and account balances use integer USD cents.","version":"0.2.0"},"servers":[{"url":"https://automarketatlas.com"}],"paths":{"/v1/markets":{"get":{"tags":["Market data"],"summary":"List supported markets","operationId":"markets_v1_markets_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketsResponse"}}}}}}},"/v1/markets/{country}/trends":{"get":{"tags":["Market data"],"summary":"Weekly listing-price trends","operationId":"trends_v1_markets__country__trends_get","parameters":[{"name":"country","in":"path","required":true,"schema":{"type":"string","title":"Country"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketTrend"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/vehicles/search":{"get":{"tags":["Market data"],"summary":"Find observed vehicle names and years","operationId":"vehicles_v1_vehicles_search_get","parameters":[{"name":"country","in":"query","required":true,"schema":{"type":"string","minLength":2,"maxLength":2,"title":"Country"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":96,"default":"","title":"Q"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":24,"minimum":1,"default":12,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VehicleMatch"},"title":"Response Vehicles V1 Vehicles Search Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/market/availability":{"get":{"tags":["Market data"],"summary":"Check whether the exact request qualifies before spending","operationId":"market_availability_v1_market_availability_get","parameters":[{"name":"country","in":"query","required":true,"schema":{"type":"string","minLength":2,"maxLength":2,"examples":["US"],"title":"Country"}},{"name":"make","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":90,"examples":["Toyota"],"title":"Make"}},{"name":"model","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":110,"examples":["Camry"],"title":"Model"}},{"name":"year","in":"query","required":true,"schema":{"type":"integer","maximum":2100,"minimum":1900,"examples":[2022],"title":"Year"}},{"name":"mileage_km","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":800000,"minimum":0},{"type":"null"}],"title":"Mileage Km"}},{"name":"fuel","in":"query","required":false,"schema":{"anyOf":[{"enum":["gasoline","diesel","hybrid","electric","other"],"type":"string"},{"type":"null"}],"title":"Fuel"}},{"name":"transmission","in":"query","required":false,"schema":{"anyOf":[{"enum":["automatic","manual"],"type":"string"},{"type":"null"}],"title":"Transmission"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/market/valuation":{"get":{"tags":["Market data"],"summary":"Estimate a used vehicle from comparable asking prices","operationId":"valuation_get_v1_market_valuation_get","parameters":[{"name":"country","in":"query","required":true,"schema":{"type":"string","minLength":2,"maxLength":2,"examples":["US"],"title":"Country"}},{"name":"make","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":90,"examples":["Toyota"],"title":"Make"}},{"name":"model","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":110,"examples":["Camry"],"title":"Model"}},{"name":"year","in":"query","required":true,"schema":{"type":"integer","maximum":2100,"minimum":1900,"examples":[2022],"title":"Year"}},{"name":"mileage_km","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":800000,"minimum":0},{"type":"null"}],"title":"Mileage Km"}},{"name":"fuel","in":"query","required":false,"schema":{"anyOf":[{"enum":["gasoline","diesel","hybrid","electric","other"],"type":"string"},{"type":"null"}],"title":"Fuel"}},{"name":"transmission","in":"query","required":false,"schema":{"anyOf":[{"enum":["automatic","manual"],"type":"string"},{"type":"null"}],"title":"Transmission"}},{"name":"idempotency-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Reuse this key for retries of the exact same authenticated request.","title":"Idempotency-Key"},"description":"Reuse this key for retries of the exact same authenticated request."},{"name":"max-charge-cents","in":"header","required":false,"schema":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}],"description":"Maximum debit in USD cents. Send 0 to use signup rewards only.","title":"Max-Charge-Cents"},"description":"Maximum debit in USD cents. Send 0 to use signup rewards only."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValuationResult"}}}},"400":{"description":"An authenticated valuation needs an Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"401":{"description":"The API key is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"402":{"description":"Insufficient USD balance or a request spending limit below the valuation cost.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"404":{"description":"Market not available.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"409":{"description":"Idempotency key belongs to different inputs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"422":{"description":"Invalid inputs or no matching observed prices.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"429":{"description":"The daily trial limit has been reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}}},"security":[{"AtlasKey":[]},{}]},"post":{"tags":["Market data"],"summary":"Estimate a used vehicle using a JSON request","operationId":"valuation_post_v1_market_valuation_post","parameters":[{"name":"idempotency-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Reuse this key for retries of the exact same authenticated request.","title":"Idempotency-Key"},"description":"Reuse this key for retries of the exact same authenticated request."},{"name":"max-charge-cents","in":"header","required":false,"schema":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}],"description":"Maximum debit in USD cents. Send 0 to use signup rewards only.","title":"Max-Charge-Cents"},"description":"Maximum debit in USD cents. Send 0 to use signup rewards only."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValuationQuery"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValuationResult"}}}},"400":{"description":"An authenticated valuation needs an Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"401":{"description":"The API key is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"402":{"description":"Insufficient USD balance or a request spending limit below the valuation cost.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"404":{"description":"Market not available.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"409":{"description":"Idempotency key belongs to different inputs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"422":{"description":"Invalid inputs or no matching observed prices.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"429":{"description":"The daily trial limit has been reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}}},"security":[{"AtlasKey":[]},{}]}},"/v1/products":{"get":{"tags":["Market data","Products"],"summary":"Discover usage prices and product endpoints","operationId":"product_catalog_v1_products_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/market/comparables":{"post":{"tags":["Market data","Products"],"summary":"Estimate a vehicle and inspect observed listings","description":"Returns up to 20 listings behind a qualifying valuation. Read the rate from GET /v1/pricing.","operationId":"comparables_v1_market_comparables_post","parameters":[{"name":"idempotency-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Reuse this key for retries of the exact same authenticated request.","title":"Idempotency-Key"},"description":"Reuse this key for retries of the exact same authenticated request."},{"name":"max-charge-cents","in":"header","required":false,"schema":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}],"description":"Maximum debit in USD cents. Send 0 to use signup rewards only.","title":"Max-Charge-Cents"},"description":"Maximum debit in USD cents. Send 0 to use signup rewards only."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComparableRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComparableResult"}}}},"400":{"description":"An authenticated valuation needs an Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"401":{"description":"The API key is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"402":{"description":"Insufficient USD balance or a request spending limit below the valuation cost.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"404":{"description":"Market not available.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"409":{"description":"Idempotency key belongs to different inputs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"422":{"description":"Invalid inputs or no matching observed prices.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}}},"security":[{"AtlasKey":[]}]}},"/v1/market/model-trends":{"post":{"tags":["Market data","Products"],"summary":"Get weekly asking-price observations for a specific vehicle","description":"Charges apply with at least three weeks of five or more observations. Limited history is free.","operationId":"model_price_trends_v1_market_model_trends_post","parameters":[{"name":"idempotency-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Reuse this key for retries of the exact same authenticated request.","title":"Idempotency-Key"},"description":"Reuse this key for retries of the exact same authenticated request."},{"name":"max-charge-cents","in":"header","required":false,"schema":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}],"description":"Maximum debit in USD cents. Send 0 to use signup rewards only.","title":"Max-Charge-Cents"},"description":"Maximum debit in USD cents. Send 0 to use signup rewards only."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelTrendRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"description":"An authenticated valuation needs an Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"401":{"description":"The API key is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"402":{"description":"Insufficient USD balance or a request spending limit below the valuation cost.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"404":{"description":"Market not available.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"409":{"description":"Idempotency key belongs to different inputs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"422":{"description":"Invalid inputs or no matching observed prices.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}}},"security":[{"AtlasKey":[]}]}},"/v1/market/cross-market":{"post":{"tags":["Market data","Products"],"summary":"Compare the same vehicle in two or three countries","description":"Charges apply when at least two qualifying markets can be compared in the display currency. Partial coverage checks are free.","operationId":"cross_market_values_v1_market_cross_market_post","parameters":[{"name":"idempotency-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Reuse this key for retries of the exact same authenticated request.","title":"Idempotency-Key"},"description":"Reuse this key for retries of the exact same authenticated request."},{"name":"max-charge-cents","in":"header","required":false,"schema":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}],"description":"Maximum debit in USD cents. Send 0 to use signup rewards only.","title":"Max-Charge-Cents"},"description":"Maximum debit in USD cents. Send 0 to use signup rewards only."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrossMarketRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"description":"An authenticated valuation needs an Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"401":{"description":"The API key is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"402":{"description":"Insufficient USD balance or a request spending limit below the valuation cost.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"404":{"description":"Market not available.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"409":{"description":"Idempotency key belongs to different inputs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"422":{"description":"Invalid inputs or no matching observed prices.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}}},"security":[{"AtlasKey":[]}]}},"/v1/market/batch":{"post":{"tags":["Market data","Products"],"summary":"Value up to 50 used vehicles","description":"The batch rate applies when 10 or more vehicles qualify. Smaller matched sets use the standard rate. The whole request stays within the supplied charge ceiling.","operationId":"batch_values_v1_market_batch_post","parameters":[{"name":"idempotency-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Reuse this key for retries of the exact same authenticated request.","title":"Idempotency-Key"},"description":"Reuse this key for retries of the exact same authenticated request."},{"name":"max-charge-cents","in":"header","required":false,"schema":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}],"description":"Maximum debit in USD cents. Send 0 to use signup rewards only.","title":"Max-Charge-Cents"},"description":"Maximum debit in USD cents. Send 0 to use signup rewards only."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"description":"An authenticated valuation needs an Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"401":{"description":"The API key is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"402":{"description":"Insufficient USD balance or a request spending limit below the valuation cost.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"404":{"description":"Market not available.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"409":{"description":"Idempotency key belongs to different inputs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"422":{"description":"Invalid inputs or no matching observed prices.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}}},"security":[{"AtlasKey":[]}]}},"/v1/market/reports":{"post":{"tags":["Market data","Products"],"summary":"Create a downloadable valuation report","description":"A qualifying vehicle is charged once at the report rate. Each download format is included.","operationId":"create_report_v1_market_reports_post","parameters":[{"name":"idempotency-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Reuse this key for retries of the exact same authenticated request.","title":"Idempotency-Key"},"description":"Reuse this key for retries of the exact same authenticated request."},{"name":"max-charge-cents","in":"header","required":false,"schema":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}],"description":"Maximum debit in USD cents. Send 0 to use signup rewards only.","title":"Max-Charge-Cents"},"description":"Maximum debit in USD cents. Send 0 to use signup rewards only."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValuationQuery"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValuationReport"}}}},"400":{"description":"An authenticated valuation needs an Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"401":{"description":"The API key is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"402":{"description":"Insufficient USD balance or a request spending limit below the valuation cost.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"404":{"description":"Market not available.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"409":{"description":"Idempotency key belongs to different inputs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"422":{"description":"Invalid inputs or no matching observed prices.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}}},"security":[{"AtlasKey":[]}]}},"/v1/market/reports/{receipt_id}/{format}":{"get":{"tags":["Market data","Products"],"summary":"Download a report you purchased in PDF, HTML or JSON","operationId":"download_report_v1_market_reports__receipt_id___format__get","parameters":[{"name":"receipt_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Receipt Id"}},{"name":"format","in":"path","required":true,"schema":{"enum":["pdf","html","json"],"type":"string","title":"Format"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"AtlasKey":[]}]}},"/v1/pricing":{"get":{"tags":["Market data","Billing"],"summary":"Read USD usage prices and top-up packages","operationId":"pricing_v1_pricing_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/account":{"post":{"tags":["Market data","Accounts"],"summary":"Create a free account and get a reusable API key","description":"No email, password, or payment method is required. Eligible new accounts receive signup valuations.","operationId":"account_create_v1_account_post","requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SignupRequest"},{"type":"null"}],"title":"Payload"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountCredentials"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/account/recover":{"post":{"tags":["Market data","Accounts"],"summary":"Replace a lost API key with an account recovery code","description":"Keep the recovery code private. Replacing the key preserves the account and balance.","operationId":"account_recover_v1_account_recover_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecoveryRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountCredentials"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/account/me":{"get":{"tags":["Market data","Accounts"],"summary":"Read your USD balance and remaining signup valuations","operationId":"account_me_v1_account_me_get","parameters":[],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountBalance"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"AtlasKey":[]}]}},"/v1/account/usage":{"get":{"tags":["Market data","Accounts"],"summary":"List your latest usage and funding entries","operationId":"usage_v1_account_usage_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":30,"title":"Limit"}},{"name":"before","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"Before"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"AtlasKey":[]}]}},"/v1/account/checkout":{"post":{"tags":["Market data","Billing"],"summary":"Start a Stripe Checkout USD top-up","operationId":"account_checkout_v1_account_checkout_post","parameters":[{"name":"idempotency-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Reuse this key for retries of the exact same authenticated request.","title":"Idempotency-Key"},"description":"Reuse this key for retries of the exact same authenticated request."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TopUpRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"AtlasKey":[]}]}},"/v1/account/checkout/{order_id}":{"get":{"tags":["Market data","Billing"],"summary":"Check whether a Stripe top-up has funded this account","operationId":"account_checkout_status_v1_account_checkout__order_id__get","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Order Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"AtlasKey":[]}]}},"/v1/support/requests":{"post":{"tags":["Market data","Support"],"summary":"Submit a support request","operationId":"support_request_v1_support_requests_post","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupportRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"AtlasKey":[]},{}]}},"/v1/account/email-link":{"post":{"tags":["Market data","Accounts"],"summary":"Request an email sign-in or verification link","operationId":"email_link_v1_account_email_link_post","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountEmailLink"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"AtlasKey":[]},{}]}},"/v1/sandbox/valuation":{"get":{"tags":["Sandbox"],"summary":"Return a stable synthetic valuation or a simulated API error","description":"A deterministic fixture for SDKs and CI. Requests do not consume trial or account credits.","operationId":"demo_valuation_v1_sandbox_valuation_get","parameters":[{"name":"market","in":"query","required":false,"schema":{"enum":["US","DE","GB"],"type":"string","default":"US","title":"Market"}},{"name":"scenario","in":"query","required":false,"schema":{"enum":["success","insufficient_sample","trial_exhausted","payment_required"],"type":"string","default":"success","title":"Scenario"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValuationResult"}}}},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}},"description":"Payment Required"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}},"description":"Unprocessable Entity"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}},"description":"Too Many Requests"}}}}},"components":{"schemas":{"APIError":{"properties":{"error":{"$ref":"#/components/schemas/APIErrorDetail"}},"type":"object","required":["error"],"title":"APIError"},"APIErrorDetail":{"properties":{"code":{"type":"string","title":"Code"},"message":{"type":"string","title":"Message"},"next_action":{"anyOf":[{"$ref":"#/components/schemas/NextAction"},{"type":"null"}]},"trial_remaining":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Trial Remaining"},"signup_valuations_remaining":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Signup Valuations Remaining"},"retry_after":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Retry After"},"resets_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Resets At"},"required_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Required Cents"},"available_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Available Cents"}},"type":"object","required":["code","message"],"title":"APIErrorDetail"},"AccountBalance":{"properties":{"account_id":{"type":"string","format":"uuid","title":"Account Id"},"currency":{"type":"string","title":"Currency"},"available_cents":{"type":"integer","title":"Available Cents"},"paid_cents":{"type":"integer","title":"Paid Cents"},"bonus_cents":{"type":"integer","title":"Bonus Cents"},"signup_valuations_granted":{"type":"integer","title":"Signup Valuations Granted"},"signup_valuations_remaining":{"type":"integer","title":"Signup Valuations Remaining"},"recovery_code_configured":{"type":"boolean","title":"Recovery Code Configured"},"email_verified":{"type":"boolean","title":"Email Verified"}},"type":"object","required":["account_id","currency","available_cents","paid_cents","bonus_cents","signup_valuations_granted","signup_valuations_remaining","recovery_code_configured","email_verified"],"title":"AccountBalance"},"AccountCredentials":{"properties":{"account_id":{"type":"string","format":"uuid","title":"Account Id"},"currency":{"type":"string","title":"Currency"},"available_cents":{"type":"integer","title":"Available Cents"},"paid_cents":{"type":"integer","title":"Paid Cents"},"bonus_cents":{"type":"integer","title":"Bonus Cents"},"signup_valuations_granted":{"type":"integer","title":"Signup Valuations Granted"},"signup_valuations_remaining":{"type":"integer","title":"Signup Valuations Remaining"},"recovery_code_configured":{"type":"boolean","title":"Recovery Code Configured"},"email_verified":{"type":"boolean","title":"Email Verified"},"api_key":{"type":"string","title":"Api Key","description":"Reusable bearer key. Store it in a secrets manager."},"recovery_code":{"type":"string","title":"Recovery Code","description":"Save separately to restore access and replace a lost API key."}},"type":"object","required":["account_id","currency","available_cents","paid_cents","bonus_cents","signup_valuations_granted","signup_valuations_remaining","recovery_code_configured","email_verified","api_key","recovery_code"],"title":"AccountCredentials"},"AccountEmailLink":{"properties":{"email":{"type":"string","maxLength":320,"title":"Email"},"package_id":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Package Id"}},"type":"object","required":["email"],"title":"AccountEmailLink"},"BatchRequest":{"properties":{"vehicles":{"items":{"$ref":"#/components/schemas/ValuationQuery"},"type":"array","maxItems":50,"minItems":1,"title":"Vehicles"}},"type":"object","required":["vehicles"],"title":"BatchRequest"},"Charge":{"properties":{"mode":{"type":"string","title":"Mode"},"charged_cents":{"type":"integer","title":"Charged Cents"},"currency":{"type":"string","title":"Currency"},"receipt_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Receipt Id"},"remaining_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Remaining Cents"},"trial_remaining":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Trial Remaining","description":"Guest valuation requests remaining today, UTC."},"signup_valuations_remaining":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Signup Valuations Remaining"},"next_action":{"anyOf":[{"$ref":"#/components/schemas/NextAction"},{"type":"null"}]}},"type":"object","required":["mode","charged_cents","currency"],"title":"Charge"},"Comparable":{"properties":{"price":{"type":"number","title":"Price"},"observed_at":{"type":"string","format":"date-time","title":"Observed At"},"source":{"type":"string","title":"Source"},"mileage_km":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Mileage Km"},"fuel":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fuel"},"transmission":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transmission"},"includes_vat":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Includes Vat"}},"type":"object","required":["price","observed_at","source","mileage_km","fuel","transmission","includes_vat"],"title":"Comparable"},"ComparableRequest":{"properties":{"country":{"type":"string","maxLength":2,"minLength":2,"title":"Country","examples":["US"]},"make":{"type":"string","maxLength":90,"minLength":1,"title":"Make","examples":["Toyota"]},"model":{"type":"string","maxLength":110,"minLength":1,"title":"Model","examples":["Camry"]},"year":{"type":"integer","maximum":2100.0,"minimum":1900.0,"title":"Year","examples":[2022]},"mileage_km":{"anyOf":[{"type":"integer","maximum":800000.0,"minimum":0.0},{"type":"null"}],"title":"Mileage Km"},"fuel":{"anyOf":[{"type":"string","enum":["gasoline","diesel","hybrid","electric","other"]},{"type":"null"}],"title":"Fuel"},"transmission":{"anyOf":[{"type":"string","enum":["automatic","manual"]},{"type":"null"}],"title":"Transmission"},"limit":{"type":"integer","maximum":20.0,"minimum":1.0,"title":"Limit","default":20}},"type":"object","required":["country","make","model","year"],"title":"ComparableRequest"},"ComparableResult":{"properties":{"country":{"type":"string","title":"Country"},"currency":{"type":"string","title":"Currency"},"vehicle":{"$ref":"#/components/schemas/Vehicle"},"median":{"type":"number","title":"Median"},"range":{"anyOf":[{"$ref":"#/components/schemas/MoneyRange"},{"type":"null"}]},"result_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Result Type"},"valuation_eligible":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Valuation Eligible"},"sample_size":{"type":"integer","title":"Sample Size"},"recent_sample_size":{"type":"integer","title":"Recent Sample Size"},"price_basis":{"type":"string","title":"Price Basis"},"match_level":{"type":"string","title":"Match Level"},"year_bases":{"items":{"type":"string"},"type":"array","title":"Year Bases"},"window_days":{"type":"integer","title":"Window Days"},"observations":{"$ref":"#/components/schemas/ObservationWindow"},"filters":{"$ref":"#/components/schemas/EstimateFilters"},"sources":{"items":{"type":"string"},"type":"array","title":"Sources"},"as_of":{"type":"string","format":"date-time","title":"As Of"},"snapshot_id":{"type":"integer","title":"Snapshot Id"},"method_version":{"type":"string","title":"Method Version"},"vat":{"anyOf":[{"$ref":"#/components/schemas/VATBreakdown"},{"type":"null"}]},"comparables":{"items":{"$ref":"#/components/schemas/Comparable"},"type":"array","title":"Comparables"},"billing":{"$ref":"#/components/schemas/Charge"}},"type":"object","required":["country","currency","vehicle","median","range","sample_size","recent_sample_size","price_basis","match_level","year_bases","window_days","observations","filters","sources","as_of","snapshot_id","method_version","comparables","billing"],"title":"ComparableResult"},"CrossMarketRequest":{"properties":{"vehicle":{"$ref":"#/components/schemas/ValuationQuery"},"other_countries":{"items":{"type":"string","pattern":"^[A-Za-z]{2}$"},"type":"array","maxItems":2,"minItems":1,"title":"Other Countries"},"display_currency":{"type":"string","pattern":"^[A-Za-z]{3}$","title":"Display Currency","default":"USD"}},"type":"object","required":["vehicle","other_countries"],"title":"CrossMarketRequest"},"EstimateFilters":{"properties":{"mileage_km":{"anyOf":[{"$ref":"#/components/schemas/MileageRange"},{"type":"null"}]},"fuel":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fuel"},"transmission":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transmission"}},"type":"object","required":["mileage_km","fuel","transmission"],"title":"EstimateFilters"},"EstimateWithComparables":{"properties":{"country":{"type":"string","title":"Country"},"currency":{"type":"string","title":"Currency"},"vehicle":{"$ref":"#/components/schemas/Vehicle"},"median":{"type":"number","title":"Median"},"range":{"anyOf":[{"$ref":"#/components/schemas/MoneyRange"},{"type":"null"}]},"result_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Result Type"},"valuation_eligible":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Valuation Eligible"},"sample_size":{"type":"integer","title":"Sample Size"},"recent_sample_size":{"type":"integer","title":"Recent Sample Size"},"price_basis":{"type":"string","title":"Price Basis"},"match_level":{"type":"string","title":"Match Level"},"year_bases":{"items":{"type":"string"},"type":"array","title":"Year Bases"},"window_days":{"type":"integer","title":"Window Days"},"observations":{"$ref":"#/components/schemas/ObservationWindow"},"filters":{"$ref":"#/components/schemas/EstimateFilters"},"sources":{"items":{"type":"string"},"type":"array","title":"Sources"},"as_of":{"type":"string","format":"date-time","title":"As Of"},"snapshot_id":{"type":"integer","title":"Snapshot Id"},"method_version":{"type":"string","title":"Method Version"},"vat":{"anyOf":[{"$ref":"#/components/schemas/VATBreakdown"},{"type":"null"}]},"comparables":{"items":{"$ref":"#/components/schemas/Comparable"},"type":"array","title":"Comparables"}},"type":"object","required":["country","currency","vehicle","median","range","sample_size","recent_sample_size","price_basis","match_level","year_bases","window_days","observations","filters","sources","as_of","snapshot_id","method_version","comparables"],"title":"EstimateWithComparables"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"MarketInfo":{"properties":{"code":{"type":"string","title":"Code"},"slug":{"type":"string","title":"Slug"},"name":{"type":"string","title":"Name"},"short_name":{"type":"string","title":"Short Name"},"currency":{"type":"string","title":"Currency"},"odometer":{"type":"string","title":"Odometer"},"tax_note":{"type":"string","title":"Tax Note"},"snapshot_id":{"type":"integer","title":"Snapshot Id"},"as_of":{"type":"string","format":"date-time","title":"As Of"},"latest_seen":{"type":"string","format":"date-time","title":"Latest Seen"},"sample_size":{"type":"integer","title":"Sample Size"},"sources":{"items":{"type":"string"},"type":"array","title":"Sources"},"capabilities":{"items":{"type":"string"},"type":"array","title":"Capabilities"},"example":{"anyOf":[{"$ref":"#/components/schemas/VehicleMatch"},{"type":"null"}]},"observation_example":{"anyOf":[{"$ref":"#/components/schemas/VehicleMatch"},{"type":"null"}]}},"type":"object","required":["code","slug","name","short_name","currency","odometer","tax_note","snapshot_id","as_of","latest_seen","sample_size","sources","capabilities","example"],"title":"MarketInfo"},"MarketTrend":{"properties":{"country":{"type":"string","title":"Country"},"currency":{"type":"string","title":"Currency"},"basis":{"type":"string","title":"Basis"},"period":{"type":"string","title":"Period"},"points":{"items":{"$ref":"#/components/schemas/TrendPoint"},"type":"array","title":"Points"}},"type":"object","required":["country","currency","basis","period","points"],"title":"MarketTrend"},"MarketsResponse":{"properties":{"markets":{"items":{"$ref":"#/components/schemas/MarketInfo"},"type":"array","title":"Markets"},"billing_currency":{"type":"string","title":"Billing Currency"}},"type":"object","required":["markets","billing_currency"],"title":"MarketsResponse"},"MileageRange":{"properties":{"from":{"type":"integer","title":"From"},"through":{"type":"integer","title":"Through"}},"type":"object","required":["from","through"],"title":"MileageRange"},"ModelTrendRequest":{"properties":{"country":{"type":"string","maxLength":2,"minLength":2,"title":"Country","examples":["US"]},"make":{"type":"string","maxLength":90,"minLength":1,"title":"Make","examples":["Toyota"]},"model":{"type":"string","maxLength":110,"minLength":1,"title":"Model","examples":["Camry"]},"year":{"type":"integer","maximum":2100.0,"minimum":1900.0,"title":"Year","examples":[2022]},"mileage_km":{"type":"null","title":"Mileage Km"},"fuel":{"type":"null","title":"Fuel"},"transmission":{"type":"null","title":"Transmission"}},"type":"object","required":["country","make","model","year"],"title":"ModelTrendRequest"},"MoneyRange":{"properties":{"p25":{"type":"number","title":"P25"},"p75":{"type":"number","title":"P75"}},"type":"object","required":["p25","p75"],"title":"MoneyRange"},"NextAction":{"properties":{"method":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Method"},"path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Path"},"web_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Web Path"},"pricing_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pricing Path"},"header":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Header"},"requires_payment_approval":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Requires Payment Approval"}},"type":"object","title":"NextAction"},"ObservationWindow":{"properties":{"from":{"type":"string","format":"date-time","title":"From"},"through":{"type":"string","format":"date-time","title":"Through"}},"type":"object","required":["from","through"],"title":"ObservationWindow"},"RecoveryRequest":{"properties":{"recovery_code":{"type":"string","pattern":"^aar_[A-Za-z0-9_-]{43}$","title":"Recovery Code"}},"type":"object","required":["recovery_code"],"title":"RecoveryRequest"},"SignupRequest":{"properties":{"registration_token":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{43}$"},{"type":"null"}],"title":"Registration Token","description":"Optional private random token from 32 bytes, URL-safe Base64 without padding. Reuse only to retry account creation; handle it as a credential."}},"type":"object","title":"SignupRequest"},"SupportRequest":{"properties":{"topic":{"type":"string","pattern":"^(billing|account|valuation|integration)$","title":"Topic"},"email":{"type":"string","maxLength":254,"title":"Email"},"order_reference":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Order Reference"},"message":{"type":"string","maxLength":2500,"minLength":10,"title":"Message"}},"type":"object","required":["topic","email","message"],"title":"SupportRequest"},"TopUpRequest":{"properties":{"package_id":{"type":"string","title":"Package Id","examples":["starter"]}},"type":"object","required":["package_id"],"title":"TopUpRequest"},"TrendPoint":{"properties":{"week":{"type":"string","format":"date","title":"Week"},"sample_size":{"type":"integer","title":"Sample Size"},"median":{"type":"number","title":"Median"},"p25":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"P25"},"p75":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"P75"},"sources":{"items":{"type":"string"},"type":"array","title":"Sources"}},"type":"object","required":["week","sample_size","median","p25","p75","sources"],"title":"TrendPoint"},"VATBreakdown":{"properties":{"included":{"type":"integer","title":"Included"},"unknown":{"type":"integer","title":"Unknown"},"explicit_ex_vat_excluded":{"type":"boolean","title":"Explicit Ex Vat Excluded"},"excluded_vat":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Excluded Vat"}},"type":"object","required":["included","unknown","explicit_ex_vat_excluded"],"title":"VATBreakdown"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"ValuationQuery":{"properties":{"country":{"type":"string","maxLength":2,"minLength":2,"title":"Country","examples":["US"]},"make":{"type":"string","maxLength":90,"minLength":1,"title":"Make","examples":["Toyota"]},"model":{"type":"string","maxLength":110,"minLength":1,"title":"Model","examples":["Camry"]},"year":{"type":"integer","maximum":2100.0,"minimum":1900.0,"title":"Year","examples":[2022]},"mileage_km":{"anyOf":[{"type":"integer","maximum":800000.0,"minimum":0.0},{"type":"null"}],"title":"Mileage Km"},"fuel":{"anyOf":[{"type":"string","enum":["gasoline","diesel","hybrid","electric","other"]},{"type":"null"}],"title":"Fuel"},"transmission":{"anyOf":[{"type":"string","enum":["automatic","manual"]},{"type":"null"}],"title":"Transmission"}},"type":"object","required":["country","make","model","year"],"title":"ValuationQuery"},"ValuationReport":{"properties":{"type":{"type":"string","title":"Type"},"valuation":{"$ref":"#/components/schemas/EstimateWithComparables"},"billing":{"$ref":"#/components/schemas/Charge"},"downloads":{"anyOf":[{"additionalProperties":{"type":"string"},"propertyNames":{"enum":["pdf","html","json"]},"type":"object"},{"type":"null"}],"title":"Downloads"}},"type":"object","required":["type","valuation","billing"],"title":"ValuationReport"},"ValuationResult":{"properties":{"country":{"type":"string","title":"Country"},"currency":{"type":"string","title":"Currency"},"vehicle":{"$ref":"#/components/schemas/Vehicle"},"median":{"type":"number","title":"Median"},"range":{"anyOf":[{"$ref":"#/components/schemas/MoneyRange"},{"type":"null"}]},"result_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Result Type"},"valuation_eligible":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Valuation Eligible"},"sample_size":{"type":"integer","title":"Sample Size"},"recent_sample_size":{"type":"integer","title":"Recent Sample Size"},"price_basis":{"type":"string","title":"Price Basis"},"match_level":{"type":"string","title":"Match Level"},"year_bases":{"items":{"type":"string"},"type":"array","title":"Year Bases"},"window_days":{"type":"integer","title":"Window Days"},"observations":{"$ref":"#/components/schemas/ObservationWindow"},"filters":{"$ref":"#/components/schemas/EstimateFilters"},"sources":{"items":{"type":"string"},"type":"array","title":"Sources"},"as_of":{"type":"string","format":"date-time","title":"As Of"},"snapshot_id":{"type":"integer","title":"Snapshot Id"},"method_version":{"type":"string","title":"Method Version"},"vat":{"anyOf":[{"$ref":"#/components/schemas/VATBreakdown"},{"type":"null"}]},"billing":{"$ref":"#/components/schemas/Charge"}},"type":"object","required":["country","currency","vehicle","median","range","sample_size","recent_sample_size","price_basis","match_level","year_bases","window_days","observations","filters","sources","as_of","snapshot_id","method_version","billing"],"title":"ValuationResult"},"Vehicle":{"properties":{"make":{"type":"string","title":"Make"},"model":{"type":"string","title":"Model"},"year":{"type":"integer","title":"Year"}},"type":"object","required":["make","model","year"],"title":"Vehicle"},"VehicleMatch":{"properties":{"make":{"type":"string","title":"Make"},"model":{"type":"string","title":"Model"},"year":{"type":"integer","title":"Year"},"sample_size":{"type":"integer","title":"Sample Size"}},"type":"object","required":["make","model","year","sample_size"],"title":"VehicleMatch"}},"securitySchemes":{"AtlasKey":{"type":"http","scheme":"bearer","description":"Reusable key returned by POST /v1/account."}}}}