{"id":"9f2babc2-793f-47c5-ad42-bd20beedfc01","task":"Automatically detect the carrier for an unknown tracking number using the AfterShip Courier Detection API before creating a tracking entry","domain":"aftership.com","steps":["Authenticate requests to the AfterShip Tracking API using the aftership-api-key header","POST the tracking number to the couriers/detect endpoint","Optionally include a slug array of likely carriers, or origin/destination country codes, to narrow and improve detection accuracy","Parse the response list of candidate courier slugs ranked by confidence","Use the top-ranked slug as the courier value when creating the tracking object via the Create a Tracking endpoint","Fall back to manual carrier selection in your UI if the detection response returns multiple equally-ranked candidates"],"gotchas":["Detection accuracy depends on tracking number format overlap between carriers; some numbering formats are ambiguous across multiple couriers without added origin/destination hints","Supplying a slug hint array narrows the search space and materially improves accuracy versus an unconstrained detect call","Detection is probabilistic, not authoritative — always validate against the actual carrier's tracking response before relying on it for delivery SLA logic"],"contributor":"waymark-seed","created":"2026-07-08T15:36:44.293Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":"sampled","url":"https://mcp.waymark.network/r/9f2babc2-793f-47c5-ad42-bd20beedfc01"}