Skip to navigation

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.

RouteReturns
GET /v1/productsA page of products, newest change first by cursor
GET /v1/products/{id}1 product with field values and identifiers
GET /v1/products/by-sku/{sku}The same, by SKU
POST /v1/products/lookupProducts matching SKUs, GTINs or your own ids
GET /v1/products/{id}/evidenceThe product’s evidence documents
GET /v1/products/{id}/evidence/{document_id}/downloadA download link valid for 120 seconds
GET /v1/schemaThe 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

QueryMeaning
limit1 to 100; 100 if left out.
cursornext_cursor from the previous page.
changed_sinceA date and time, such as 2026-11-01T00:00:00Z.
statusDRAFT, ACTIVE, DISCONTINUED or ARCHIVED.
curl "https://api.tieback.io/v1/products?limit=50&changed_since=2026-11-01T00:00:00Z" \
-H "Authorization: Bearer $TOKEN"
{
"data": [
{
"id": "9a00…",
"sku": "TEE-RED-M",
"name": "Red tee",
"commercial_status": "ACTIVE",
"family_id": null,
"gtin": "5014500990315",
"changed_at": "2026-11-12T13:48:28.915Z"
}
],
"next_cursor": "MjAyNi0xMS0xMlQxMzo0ODoyOC45MTVa…"
}

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.

{
"id": "9a00…",
"sku": "TEE-RED-M",
"name": "Red tee",
"description": null,
"commercial_status": "ACTIVE",
"passport_visibility": "PUBLISHED",
"gtin": "5014500990315",
"family_id": null,
"external_id": null,
"created_at": "2026-11-01T09:00:00Z",
"updated_at": "2026-11-12T13:48:28Z",
"field_values": {
"core.performance.expected_lifetime_years": { "value": 5, "unit": "ANN", "status": "approved" }
},
"identifiers": [{ "type": "GTIN", "value": "5014500990315", "status": "active" }],
"custom_fields": { "custom.fabric_note": "Organic cotton" }
}
  • field_values lists only fields that hold a value, by field key.
  • external_id is the id your system sent when it imported the product through the API or Shopify (null otherwise).
  • custom_fields lists 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).

curl -X POST https://api.tieback.io/v1/products/lookup \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{ "skus": ["TEE-RED-M"], "gtins": ["5014500990315"], "external_ids": ["gid://shopify/ProductVariant/1"] }'
{
"matches": [
{
"product_id": "9a00…",
"sku": "TEE-RED-M",
"external_id": "gid://shopify/ProductVariant/1",
"gtin": "5014500990315"
}
]
}
  • SKUs match exactly, ignoring case and spaces at either end.
  • GTINs are 8 to 14 digits; leading zeros don’t matter (05014500990315 finds 5014500990315).
  • External ids match the external_id sent 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.

{
"data": [
{
"id": "ed00…",
"filename": "test-report.pdf",
"content_type": "application/pdf",
"size_bytes": 182344,
"source_kind": "upload",
"scan_status": "clean",
"created_at": "2026-11-10T09:00:00Z",
"updated_at": "2026-11-10T09:01:00Z",
"text": "…",
"text_truncated": false,
"text_scope": "own"
}
]
}
  • text is the document’s extracted text, up to 50,000 characters (text_truncated says if it was cut).
  • Text is included only for documents the product owns. text_scope says why it is missing otherwise: for example linked (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

{ "url": "https://…", "expires_in": 120 }

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.

{
"fields": [
{
"key": "core.performance.expected_lifetime_years",
"label": "Expected lifetime",
"description": null,
"data_type": "integer",
"allowed_values": null,
"unit": "years",
"mandatory_to_mint": true,
"pack": "tieback-dpp-core-pack"
}
]
}

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).