Documentation / Schemas

Schema Reference

Complete type definitions for all API data models. These schemas reflect the exact structure returned by the API.

Device

Represents a device model in the registry. Contains metadata, specifications, and variant list.

FieldTypeRequiredDescriptionExample
idstringUnique device identifier"apple-iphone-14-pro"
namestringDisplay name of the device"Apple iPhone 14 Pro"
slugstringURL-friendly identifier"apple-iphone-14-pro"
categoryobjectDevice category information{ name: "Smartphones", thumbnail: "..." }
makeobjectManufacturer information{ name: "Apple", thumbnail: "..." }
model_numbersstring[]Official model numbers["A2650", "A2889"]
technical_specificationsobjectKey-value pairs of technical specs{ "Display": "6.1 inch", "Processor": "A16 Bionic" }
release_datestringISO 8601 release date"2022-09-16"
thumbnailstringDevice image URL"https://cdn.souratlas.io/..."
statusstringDevice status"active" or "discontinued"
model_identifiersstring[]Additional model identifiers["iPhone15,2"]
variantsVariant[]Array of device variantsSee Variant schema

Variant

Represents a specific SKU/configuration of a device (e.g., 128GB Space Black).

FieldTypeRequiredDescriptionExample
idstringUnique variant identifier"var_abc123"
skustringInternal SKU code"MPXV3LL/A"
pricenumberMSRP in cents99900
namestringVariant display name"128GB Space Black"
part_numbersstring[]Manufacturer part numbers["MPXV3LL/A"]
model_numbersstring[]Model numbers for this variant["A2650"]
thumbnailstring | nullVariant-specific image URL"https://cdn.souratlas.io/..." or null
attributesVariantAttribute[]Variant attributes (storage, color, etc.)[{ attribute_name: "Storage", attribute_value: "128GB" }]
disabledbooleanWhether variant is disabledfalse

VariantPricing

Pricing intelligence for a specific variant including buyback, resale, and market data.

FieldTypeRequiredDescriptionExample
variant_idstringVariant identifier"var_abc123"
device_namestringParent device name"Apple iPhone 14 Pro"
variant_namestringVariant name"128GB Space Black"
buybackobjectBuyback/trade-in pricing dataSee nested structure below
buyback.currentConditionPricingCurrent buyback prices by condition{ Excellent: 65000, Good: 55000, Fair: 45000, Poor: 30000 }
buyback.historicalPricePoint[]Historical price data[{ date: "2024-01-15", value: 65000, currency: "USD" }]
buyback.last_updatedstringISO 8601 timestamp"2024-01-15T10:30:00Z"
buyback.sourcestringData source"internal" | "external" | "aggregated"
resaleobjectResale/market value pricing dataSee nested structure below
resale.currentConditionPricingCurrent resale prices by condition{ Excellent: 85000, Good: 75000, Fair: 60000, Poor: 45000 }
resale.historicalPricePoint[]Historical price data[{ date: "2024-01-15", value: 85000, currency: "USD" }]
resale.trendstringPrice trend direction"rising" | "stable" | "falling"
resale.liquidity_scorenumberMarket liquidity (1-100)85
resale.last_updatedstringISO 8601 timestamp"2024-01-15T10:30:00Z"
resale.sourcestringData source"internal" | "external" | "aggregated"
market_confidencenumberData confidence score (1-100)92
data_pointsnumberNumber of data points used1247
currencystringISO 4217 currency code"USD"

IMEILookupResult

Result of an IMEI/serial number risk assessment lookup.

FieldTypeRequiredDescriptionExample
lookup_idstringUnique lookup identifier"lookup_xyz789"
identifierstringThe IMEI/serial queried"358742012345678"
identifier_typestringType of identifier"imei" | "serial" | "esn"
timestampstringISO 8601 lookup timestamp"2024-01-15T10:30:00Z"
device_matchobjectDevice identification resultsSee nested structure below
device_match.confidencenumberMatch confidence (0-100)95
device_match.matched_device_idstring | undefinedMatched device ID"apple-iphone-14-pro"
device_match.matched_device_namestring | undefinedMatched device name"Apple iPhone 14 Pro"
device_match.matched_variant_idstring | undefinedMatched variant ID"var_abc123"
device_match.matched_variant_namestring | undefinedMatched variant name"128GB Space Black"
blacklist_statusstringBlacklist status"clean" | "blacklisted" | "lost_stolen" | "unknown"
carrier_lockstringCarrier lock status"unlocked" | "locked" | "unknown"
carrier_namestring | undefinedCarrier name if locked"T-Mobile US"
risk_scorenumberOverall risk score (0-100)15
risk_levelstringRisk classification"low" | "medium" | "high" | "critical"
gsma_statusstring | undefinedGSMA database status"clean"
ctia_statusstring | undefinedCTIA database status"clean"
reported_lost_stolenbooleanLost/stolen report flagfalse
activation_lockboolean | undefinedActivation lock statusfalse
sourcestringData source"sickw" | "internal" | "mock"
freshnessstringData freshness"real-time" | "cached" | "stale"
cache_age_minutesnumber | undefinedCache age in minutes5

DeviceRepairIntelligence

Repair intelligence data including repairability scores, common repairs, and cost estimates.

FieldTypeRequiredDescriptionExample
device_idstringDevice identifier"apple-iphone-14-pro"
device_namestringDevice name"Apple iPhone 14 Pro"
variant_idstring | undefinedVariant identifier if applicable"var_abc123"
ifixit_scorenumber | nulliFixit repairability score (0-10), null if unavailable6
repairability_ratingstringQualitative rating"Excellent" | "Good" | "Fair" | "Poor" | "Very Poor" | "Not Available"
common_repairsCommonRepair[]List of common repairsSee CommonRepair schema
common_failure_pointsstring[]Known failure points["Battery degradation", "Screen cracks"]
average_repair_costobject | nullAverage repair cost range, null if unavailable{ min: 5000, max: 35000, currency: "USD" }
repair_roi_indicatorstringROI classification"High" | "Medium" | "Low" | "Unknown"
technical_notesstring[]Technical repair notes["Requires heat gun for adhesive removal"]
proprietary_partsstring[]Proprietary parts list["Pentalobe screws", "Tri-point screws"]
special_tools_requiredstring[]Required special tools["Suction cup", "Spudger", "Pentalobe screwdriver"]
last_updatedstringISO 8601 timestamp"2024-01-15T10:30:00Z"
sourcestringData source"ifixit" | "internal" | "aggregated" | "mock"
data_completenessnumberData completeness score (0-100)85

CommonRepair

Details about a common repair procedure.

FieldTypeRequiredDescriptionExample
namestringRepair name"Battery Replacement"
difficultystringRepair difficulty"Easy" | "Moderate" | "Difficult" | "Very Difficult"
estimated_time_minutesnumberEstimated repair time45
partsRepairPart[]Required partsSee RepairPart schema
ifixit_guide_urlstring | undefinediFixit guide URL"https://www.ifixit.com/Guide/..."

RepairPart

Information about a repair part.

FieldTypeRequiredDescriptionExample
namestringPart name"Battery"
cost_minnumberMinimum cost in cents2500
cost_maxnumberMaximum cost in cents5000
currencystringISO 4217 currency code"USD"
availabilitystringPart availability"available" | "limited" | "unavailable" | "unknown"

UsageEvent

API usage tracking event for analytics.

FieldTypeRequiredDescriptionExample
datestringISO 8601 date"2024-01-15"
api_requestsnumberTotal API requests1247
pricing_queriesnumberPricing endpoint requests342
imei_lookupsnumberIMEI lookup requests89
repair_queriesnumberRepair endpoint requests156
errorsnumberError responses12