Ownerly API for marketplaces
Check a device's serial number against Ownerly's registry of stolen and lost devices before a listing goes live, keep watching live listings, and show buyers a "Verified in Ownerly" badge. Owner data is never returned.
Getting started
- Get your organization verified in the Ownerly app: Organizations → apply. We check the company registry, that you may act for the company, and a code sent through the company's own channel (company email, phone or data box).
- The owner of the organization opens Organization → API in the app and creates a live key (
own_live_…) and a sandbox key (own_test_…). Keys are shown once; we store only a hash. - Send the key in the
X-Api-Keyheader (orAuthorization: Bearer …) tohttps://ownerly.onrender.com/api/v1. Call the API from your server only: never put the key into a web page or a mobile app.
Endpoints
| Endpoint | What it does |
|---|---|
| POST/check | Check one serial before a listing goes live; optionally watch the listing and issue a badge |
| POST/check/bulk | Up to 500 serials per request, for existing listings |
| PUT/watch/{listing_id} | Keep watching a live listing's serial for new theft reports |
| DELETE/watch/{listing_id} | Stop watching when the listing ends |
| GET/matches | Watched listings that matched a new report (fallback for webhooks) |
| POST/sightings | Tell us that a listed device was offered for sale |
| HOOKreport.matched | We call your server when a new report matches a watched listing |
Check before publishing
curl -X POST https://ownerly.onrender.com/api/v1/check -H "X-Api-Key: own_live_…" -H "Content-Type: application/json" -d '{"serial": "C39XK2PLN72Q", "listing_id": "a-48213",
"listing_url": "https://bazar.example/a-48213", "watch": true, "badge": true}'
| Field | Meaning |
|---|---|
| serial | Required. Device serial number, any case, spaces and dashes are ignored. |
| listing_id | Your listing ID: 1–64 characters, letters, digits and . _ : -. Needed for watch and badge. |
| listing_url | Optional link to the listing; shown on the badge page so buyers can match it. |
| watch | If true, we keep watching this listing (120 days, renew with another check or PUT). |
| badge | If true and the device is not reported, we issue a badge for this listing. |
Answer: device is not reported
200 OK
{
"serial": "C39XK2PLN72Q",
"status": "clear",
"action": "allow",
"checked_at": "2026-11-25T14:32:00+00:00",
"listing_id": "a-48213",
"watching": true,
"badge": {
"ref": "OWN-7KQ2M4XP",
"url": "https://ownerly.onrender.com/v/OWN-7KQ2M4XP",
"image": "https://ownerly.onrender.com/v/OWN-7KQ2M4XP.svg"
}
}
Answer: device is reported
200 OK
{
"serial": "C39XK2PLN72Q",
"status": "stolen",
"action": "block_listing",
"reported_at": "2026-11-20",
"ref": "OWN-3PX8DK2M",
"checked_at": "2026-11-25T14:32:00+00:00"
}
| status | action | What to do |
|---|---|---|
| clear | allow | Publish; you may show the badge. |
| stolen | block_listing | Do not publish. Tell the seller to contact the police if they bought it in good faith. Keep the listing data: police may ask for it. Optionally send a sighting. |
| lost | hold_for_review | Hold the listing for your moderators; the owner reported the device lost. |
| invalid | ask_seller | Not a serial number. reason is format or imei_not_supported. |
IMEI: Ownerly indexes serial numbers only and does not store IMEI numbers, so a 15-digit IMEI returns invalid with imei_not_supported. Ask the seller for the serial number (iPhone: Settings → General → About).
ref is an anonymous reference to the report. Quote it when you contact us or the police; it reveals nothing about the owner.
Bulk check
POST https://ownerly.onrender.com/api/v1/check/bulk
{
"watch": true,
"items": [
{"serial": "C39XK2PLN72Q", "listing_id": "a-48213"},
{"serial": "F2LXK9QJ0D", "listing_id": "a-48214"}
]
}
200 OK
{
"results": [
{"serial": "C39XK2PLN72Q", "status": "clear", "action": "allow", "listing_id": "a-48213"},
{"serial": "F2LXK9QJ0D", "status": "stolen", "action": "block_listing",
"reported_at": "2026-11-20", "ref": "OWN-3PX8DK2M", "listing_id": "a-48214"}
],
"checked_at": "2026-11-25T14:32:00+00:00",
"watching": 2
}
Up to 500 items per request. A plain list also works: {"serials": ["C39XK2PLN72Q", "F2LXK9QJ0D"]}. Results come back in the same order.
Watch listings
A listing that is clear today can match a theft reported tomorrow. Watch it, and we tell you as soon as the owner's report becomes active.
PUT https://ownerly.onrender.com/api/v1/watch/a-48213
{"serial": "C39XK2PLN72Q", "listing_url": "https://bazar.example/a-48213"}
200 OK
{"listing_id": "a-48213", "watching": true, "serial": "C39XK2PLN72Q", "status": "clear", "action": "allow"}
DELETE https://ownerly.onrender.com/api/v1/watch/a-48213
204 No Content
Watches end after 120 days or when you delete them; renew by calling PUT again. Up to 100,000 watched listings per organization. If the device is already reported, the answer says so and the watch is closed.
Missed a webhook? GET https://ownerly.onrender.com/api/v1/matches?since=2026-11-01T00:00:00 lists watched listings that matched since that time (default: last 30 days).
Webhooks
The owner sets the webhook URL in the app (Organization → API → Webhook) and gets a signing secret whsec_… once. HTTPS only. When a new report matches a watched listing, we send:
POST https://your-server.example/ownerly
X-Ownerly-Event: report.matched
X-Ownerly-Timestamp: 1764081120
X-Ownerly-Signature: v1=<hex HMAC-SHA256, see below>
{
"id": "evt_3f9c2a7b1e0d4c5a6b7c8d9e",
"type": "report.matched",
"created": "2026-11-25T14:32:00+00:00",
"data": {
"listing_id": "a-48213",
"listing_url": "https://bazar.example/a-48213",
"status": "stolen",
"reported_at": "2026-11-25",
"ref": "OWN-3PX8DK2M",
"action": "block_listing"
}
}
Answer with any 2xx within 8 seconds. We try three times: right away, after 5 and after 30 seconds. The signature is HMAC-SHA256 of timestamp + "." + raw body with your secret. Check it and reject requests older than 5 minutes:
# Python
import hashlib, hmac, time
def verify(secret: str, raw_body: bytes, ts: str, signature: str) -> bool:
if abs(time.time() - int(ts)) > 300:
return False
mac = hmac.new(secret.encode(), ts.encode() + b"." + raw_body, hashlib.sha256).hexdigest()
return hmac.compare_digest("v1=" + mac, signature)
// Node.js
const crypto = require('crypto');
function verify(secret, rawBody, ts, signature) {
if (Math.abs(Date.now() / 1000 - Number(ts)) > 300) return false;
const mac = 'v1=' + crypto.createHmac('sha256', secret).update(ts + '.').update(rawBody).digest('hex');
return mac.length === signature.length && crypto.timingSafeEqual(Buffer.from(mac), Buffer.from(signature));
}
The same event may arrive twice: use id to ignore repeats. The app has a Send test button that sends a sample event marked "test": true.
Sightings
When someone tries to sell a reported device, tell us where and when. An Ownerly moderator reviews it before the owner sees it.
POST https://ownerly.onrender.com/api/v1/sightings
{
"serial": "C39XK2PLN72Q",
"listing_id": "a-48213",
"listing_url": "https://bazar.example/a-48213",
"city": "Brno",
"title": "iPhone 14 Pro 256 GB",
"seen_at": "2026-11-25T14:30:00+01:00"
}
202 Accepted
{"status": "received", "review": "moderation", "ref": "OWN-3PX8DK2M"}
Only for reported serials (otherwise 409 not_listed). Do not send the seller's name, phone or email: the police request them from you directly, with a legal basis. A repeated sighting for the same listing returns "status": "duplicate".
"Verified in Ownerly" badge
Ask for a badge in /check and show it next to the listing. The image and the page always show the current state: if the device is reported later, the badge turns red and says so.
<a href="https://ownerly.onrender.com/v/OWN-7KQ2M4XP" target="_blank" rel="noopener">
<img src="https://ownerly.onrender.com/v/OWN-7KQ2M4XP.svg" width="250" height="44" alt="Ověřeno v Ownerly">
</a>
Add ?lang=cs, en or ru to choose the language (default: the visitor's browser). Badges expire after 365 days. See a sample badge page.
Sandbox
With a sandbox key (own_test_…) nothing is stored and nothing is counted. Use these serials:
| Serial | Answer |
|---|---|
| TESTSTOLEN1 | stolen / block_listing |
| TESTLOST1 | lost / hold_for_review |
| TESTMATCH1 | PUT /watch/… answers clear, then we send a test report.matched to your webhook |
| any other valid serial | clear; badges point to the sample page |
Limits & errors
Per organization and minute: 300 checks, 20 bulk requests, 600 watch calls, 60 sightings. Errors are JSON:
401 {"error": "invalid_api_key", "message": "Missing or invalid API key (X-Api-Key header)."}
429 {"error": "rate_limited", "message": "Too many requests: max 300 per minute."}
Other codes: invalid_listing, invalid_request, too_many_items, invalid_serial, city_required, not_listed, watch_limit, not_found. Rotating a key in the app disables the old one immediately.
How we treat your queries
- Owner data is never returned: only the status, the report date and an anonymous reference.
- Serials that are not reported are not stored. For watched listings and badges we keep only a keyed hash of the serial, until the watch ends (120 days) or the badge expires (365 days).
- A sighting reaches the owner only after an Ownerly moderator reviews it. Seller contacts never go through Ownerly.
- We count calls per day for your usage statistics. Keys are rate-limited and can be rotated at any time.
- If the company is struck off the registry, access is suspended automatically.
Questions: support@ownerly.eu