API: Products
What It Does
The read routes give your own system the products in your tieback workspace: a paged list, 1 product with its field values and identifiers, its evidence documents with a short-lived download link, and the list of fields you can import.
Who It’s For
Developers keeping another system in step with tieback.
Before You Start
- Any API key works: Read products or Import products (see API: Credentials). Send
Authorization: Bearer <token>. - A key reads only its own workspace. Anything else is
404.
GET /v1/products
next_cursor is null on the last page.
What changed_at covers: the product’s own details and its field values. It does not change when only an identifier or an evidence document changes, or when a product is deleted. To find those, read the product itself.
GET /v1/products/{id} and GET /v1/products/by-sku/{sku}
The SKU is URL-encoded and matched exactly, ignoring case.
field_valueslists only fields that hold a value, by field key.external_idis the id your system sent when it imported the product through the API or Shopify (nullotherwise).custom_fieldslists values of your workspace’s active product custom fields.
POST /v1/products/lookup
Finds products in your workspace by SKU, GTIN or your own id: up to 500 of each and 999 in all per call (body up to 64 KB).
- SKUs match exactly, ignoring case and spaces at either end.
- GTINs are 8 to 14 digits; leading zeros don’t matter (
05014500990315finds5014500990315). - External ids match the
external_idsent when products were imported: a key from Connect Shopify finds products that came from Shopify into your workspace; any other key finds products sent through the API. - A value with no match is simply absent from
matches. Send at least 1 value. - If 1,000 or more products match, the call answers
422: send fewer values per call.
GET /v1/products/{id}/evidence
The product’s current evidence documents (up to 100): those it owns and those linked to it.
textis the document’s extracted text, up to 50,000 characters (text_truncatedsays if it was cut).- Text is included only for documents the product owns.
text_scopesays why it is missing otherwise: for examplelinked(the document belongs to another product),not_scanned,unavailable, or the text’s own status while it is still being read.
GET /v1/products/{id}/evidence/{document_id}/download
Open the link within 120 seconds. Only clean, current files of this product can be downloaded; anything else is 404. Each download is recorded in the workspace’s audit log.
GET /v1/schema
The fields your workspace can import, from its active field packs.
mandatory_to_mint fields must hold a value before a passport can be issued for the product. An import never refuses a product for a missing field.
Errors
Errors are application/problem+json with title, status, detail and request_id (also in the X-Request-Id header; quote it to support).