{"openapi":"3.1.0","info":{"title":"LIFETIME API","version":"1.0.0","description":"Evidence-backed laptop lifecycle intelligence for Bangladesh. Every value is a FACT (with evidence), an ESTIMATE (a range from a named model) or UNKNOWN (with a reason). Sandbox keys (lt_test_…) return real data for a fixed subset of popular products."},"servers":[{"url":"https://lifetime.arioron.com/api/v1"}],"security":[{"bearer":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"lt_live_<id>_<secret> or lt_test_<id>_<secret>"}},"schemas":{"Problem":{"type":"object","properties":{"type":{"type":"string"},"title":{"type":"string"},"status":{"type":"integer"},"detail":{"type":"string"},"requestId":{"type":"string"}},"required":["title","status"]}}},"paths":{"/identify":{"post":{"operationId":"identify","summary":"Canonical product/configuration candidates for a query, URL, SKU or EAN","parameters":[{"name":"Accept-Language","in":"header","required":false,"schema":{"type":"string","enum":["en","bn"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"query":{"type":"string","maxLength":300},"url":{"type":"string","maxLength":1000,"format":"uri"},"sku":{"type":"string","maxLength":100},"ean":{"type":"string","pattern":"^\\d{8,14}$"},"hints":{"type":"object","properties":{"brand":{"type":"string","maxLength":60},"cpu":{"type":"string","maxLength":80},"ram":{"type":"integer","exclusiveMinimum":0,"maximum":512},"ssd":{"type":"integer","exclusiveMinimum":0,"maximum":16384}}},"limit":{"type":"integer","minimum":1,"maximum":20}}}}}},"responses":{"200":{"description":"Candidates with match confidence and disambiguation hints","headers":{"ETag":{"schema":{"type":"string"}},"X-Request-Id":{"schema":{"type":"string"}},"X-RateLimit-Limit":{"schema":{"type":"integer"}},"X-RateLimit-Remaining":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"RFC 9457 problem details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"RFC 9457 problem details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"RFC 9457 problem details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"RFC 9457 problem details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"RFC 9457 problem details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/products/{id}":{"get":{"operationId":"getProduct","summary":"Product profile: configurations, FACT claims with evidence, software outlook, flags, listings","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"product id (or slug for /products/{id})"},{"name":"Accept-Language","in":"header","required":false,"schema":{"type":"string","enum":["en","bn"]}}],"responses":{"200":{"description":"Product profile","headers":{"ETag":{"schema":{"type":"string"}},"X-Request-Id":{"schema":{"type":"string"}},"X-RateLimit-Limit":{"schema":{"type":"integer"}},"X-RateLimit-Remaining":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object"}}}},"304":{"description":"Not modified (If-None-Match)"},"400":{"description":"RFC 9457 problem details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"RFC 9457 problem details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"RFC 9457 problem details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"RFC 9457 problem details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"RFC 9457 problem details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/products/{id}/components":{"get":{"operationId":"getComponents","summary":"Component scores, graph, repairability, replacement part prices","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"product id (or slug for /products/{id})"},{"name":"config","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Component intelligence","headers":{"ETag":{"schema":{"type":"string"}},"X-Request-Id":{"schema":{"type":"string"}},"X-RateLimit-Limit":{"schema":{"type":"integer"}},"X-RateLimit-Remaining":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"RFC 9457 problem details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"RFC 9457 problem details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"RFC 9457 problem details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"RFC 9457 problem details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"RFC 9457 problem details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/products/{id}/lifecycle":{"get":{"operationId":"getLifecycle","summary":"Usable, digital, physical and economic life ranges with limiting factors and assumptions","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"product id (or slug for /products/{id})"},{"name":"config","in":"query","required":false,"schema":{"type":"string","maxLength":64}},{"name":"use","in":"query","required":false,"schema":{"default":"office","type":"string","enum":["basic","office","programming","design","gaming","travel"]}},{"name":"usage","in":"query","required":false,"schema":{"default":"normal","type":"string","enum":["light","normal","heavy"]}},{"name":"horizon","in":"query","required":false,"schema":{"default":3,"type":"integer","minimum":1,"maximum":8}}],"responses":{"200":{"description":"Lifecycle estimate","headers":{"ETag":{"schema":{"type":"string"}},"X-Request-Id":{"schema":{"type":"string"}},"X-RateLimit-Limit":{"schema":{"type":"integer"}},"X-RateLimit-Remaining":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"RFC 9457 problem details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"RFC 9457 problem details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"RFC 9457 problem details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"RFC 9457 problem details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"RFC 9457 problem details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/compare":{"post":{"operationId":"compare","summary":"Structured comparison with trade-off, crossover points and per-use rankings","parameters":[{"name":"Accept-Language","in":"header","required":false,"schema":{"type":"string","enum":["en","bn"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ids":{"minItems":2,"maxItems":4,"type":"array","items":{"type":"string","maxLength":64}},"use":{"default":"office","type":"string","enum":["basic","office","programming","design","gaming","travel"]},"usage":{"default":"normal","type":"string","enum":["light","normal","heavy"]},"horizon":{"default":3,"type":"integer","minimum":1,"maximum":8},"budget":{"type":"number","minimum":0}},"required":["ids"]}}}},"responses":{"200":{"description":"Comparison","headers":{"ETag":{"schema":{"type":"string"}},"X-Request-Id":{"schema":{"type":"string"}},"X-RateLimit-Limit":{"schema":{"type":"integer"}},"X-RateLimit-Remaining":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"RFC 9457 problem details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"RFC 9457 problem details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"RFC 9457 problem details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"RFC 9457 problem details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"RFC 9457 problem details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"RFC 9457 problem details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/trueprice":{"post":{"operationId":"trueprice","summary":"TruePrice breakdown with assumption ledger","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","maxLength":64,"description":"configuration id"},"years":{"default":3,"type":"number","minimum":1,"maximum":8},"use":{"default":"office","type":"string","enum":["basic","office","programming","design","gaming","travel"]},"usage":{"default":"normal","type":"string","enum":["light","normal","heavy"]},"region":{"default":"BD","type":"string","const":"BD"},"assumptions":{"default":{},"type":"object","properties":{"purchaseBdt":{"type":"number","exclusiveMinimum":0,"maximum":10000000},"tariffBdtKwh":{"type":"number","minimum":0,"maximum":100},"discountRate":{"type":"number","minimum":0,"maximum":0.5},"subscriptionsMonthlyBdt":{"type":"number","minimum":0,"maximum":100000},"repairCostMultiplier":{"type":"number","minimum":0.5,"maximum":2},"includeResale":{"type":"boolean"}}}},"required":["id"]}}}},"responses":{"200":{"description":"TruePrice","headers":{"ETag":{"schema":{"type":"string"}},"X-Request-Id":{"schema":{"type":"string"}},"X-RateLimit-Limit":{"schema":{"type":"integer"}},"X-RateLimit-Remaining":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"RFC 9457 problem details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"RFC 9457 problem details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"RFC 9457 problem details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"RFC 9457 problem details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"RFC 9457 problem details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"RFC 9457 problem details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/changes":{"get":{"operationId":"changes","summary":"Evidence and change feed (cursor-paginated)","parameters":[{"name":"since","in":"query","required":false,"schema":{"type":"string","maxLength":200}},{"name":"product","in":"query","required":false,"schema":{"type":"string","maxLength":64}},{"name":"kind","in":"query","required":false,"schema":{"type":"string","maxLength":40}},{"name":"limit","in":"query","required":false,"schema":{"default":100,"type":"integer","minimum":1,"maximum":500}}],"responses":{"200":{"description":"Changes and next cursor","headers":{"ETag":{"schema":{"type":"string"}},"X-Request-Id":{"schema":{"type":"string"}},"X-RateLimit-Limit":{"schema":{"type":"integer"}},"X-RateLimit-Remaining":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"RFC 9457 problem details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"RFC 9457 problem details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"RFC 9457 problem details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"RFC 9457 problem details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"RFC 9457 problem details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/bulk/identify":{"post":{"operationId":"bulkIdentify","summary":"Business+: queue up to 1 000 lines (JSON or CSV); fleet planner output with refresh_year and risk","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"lines":{"minItems":1,"maxItems":1000,"type":"array","items":{"anyOf":[{"type":"string","maxLength":300},{"type":"object","properties":{"query":{"type":"string","maxLength":300},"purchaseYear":{"type":"integer","minimum":2000,"maximum":2100}},"required":["query"]}]}},"webhook":{"type":"boolean"}},"required":["lines"]}},"text/csv":{"schema":{"type":"string","description":"query[,purchase_year] per line"}}}},"responses":{"202":{"description":"Job queued","headers":{"ETag":{"schema":{"type":"string"}},"X-Request-Id":{"schema":{"type":"string"}},"X-RateLimit-Limit":{"schema":{"type":"integer"}},"X-RateLimit-Remaining":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"RFC 9457 problem details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"RFC 9457 problem details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"RFC 9457 problem details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"RFC 9457 problem details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"RFC 9457 problem details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/bulk/{id}":{"get":{"operationId":"bulkStatus","summary":"Bulk job status and results","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"job id"}],"responses":{"200":{"description":"Job status","headers":{"ETag":{"schema":{"type":"string"}},"X-Request-Id":{"schema":{"type":"string"}},"X-RateLimit-Limit":{"schema":{"type":"integer"}},"X-RateLimit-Remaining":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"RFC 9457 problem details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"RFC 9457 problem details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"RFC 9457 problem details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"RFC 9457 problem details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"RFC 9457 problem details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/usage":{"get":{"operationId":"usage","summary":"Current quotas, counts and (for sandbox keys) the product subset","responses":{"200":{"description":"Usage","headers":{"ETag":{"schema":{"type":"string"}},"X-Request-Id":{"schema":{"type":"string"}},"X-RateLimit-Limit":{"schema":{"type":"integer"}},"X-RateLimit-Remaining":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"RFC 9457 problem details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"RFC 9457 problem details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"RFC 9457 problem details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"RFC 9457 problem details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"RFC 9457 problem details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}}},"webhooks":{"product.updated":{"post":{"summary":"product.updated event. Verify LT-Signature: t=<unix>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\" with your webhook secret>; reject if |now − t| > 300 s.","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","const":"product.updated"},"createdAt":{"type":"string"},"data":{"type":"object"}}}}}},"responses":{"2XX":{"description":"Acknowledged"}}}},"support_date.changed":{"post":{"summary":"support_date.changed event. Verify LT-Signature: t=<unix>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\" with your webhook secret>; reject if |now − t| > 300 s.","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","const":"support_date.changed"},"createdAt":{"type":"string"},"data":{"type":"object"}}}}}},"responses":{"2XX":{"description":"Acknowledged"}}}},"price.moved":{"post":{"summary":"price.moved event. Verify LT-Signature: t=<unix>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\" with your webhook secret>; reject if |now − t| > 300 s.","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","const":"price.moved"},"createdAt":{"type":"string"},"data":{"type":"object"}}}}}},"responses":{"2XX":{"description":"Acknowledged"}}}}}}