Skip to content

List products​

GET
/products

List all products. Requires products:read ability.

Authorizations​

bearerAuth

Include Authorization: Bearer <token> header. Token must have the required abilities.

Type
HTTP (bearer)

Parameters​

Query Parameters

s

Search orders by order name (fuzzy search). Searches through the order's display name/reference. Useful for finding orders by customer reference numbers or partial name matches.

Type
string
Example"ORDER-123"
sort

Field to sort the results by. Determines the primary ordering of returned orders. Most commonly used fields: created_at for chronological order, total_price for value-based sorting. Default is created_at when not specified.

Type
string
Valid values
"created_at""total_price""updated_at"
Example"created_at"
Default
"created_at"
sort_type

Sort direction for the specified sort field. Use desc for newest/highest first, asc for oldest/lowest first. When sorting by created_at, desc shows most recent orders first. Default is desc when not specified.

Type
string
Valid values
"asc""desc"
Example"desc"
Default
"desc"
per_page

Number of orders to return per page using cursor-based pagination. Higher values reduce API calls but increase response size and processing time. Recommended range: 10-100 for most use cases. Maximum allowed: 500.

Type
integer
Example25
Minimum
1
Maximum
500
Default
25
cursor

Pagination cursor for retrieving the next set of results. This is an opaque string returned in the meta.next_cursor field of the previous response. Do not manually construct cursor values - always use the exact string provided by the API. For first page requests, omit this parameter entirely.

Type
string
Example"eyJjcmVhdGVkX2F0IjoiMjAyNS0wMS0xNSAxMDozMDowMCIsImlkIjoxMjM0NX0"

Responses​

List of products (cursor-paginated)

application/json
JSON
{
  
"links": {
  
  
"next": "https://example.com",
  
  
"prev": "https://example.com"
  
},
  
"meta": {
  
  
"per_page": 0,
  
  
"next_cursor": "string",
  
  
"prev_cursor": "string"
  
},
  
"data": [
  
  
{
  
  
  
"id": 1234567890,
  
  
  
"title": "Holiday T-Shirt",
  
  
  
"label": "string",
  
  
  
"internal_tags": "holiday, t-shirt",
  
  
  
"created_at": "2025-01-15T10:30:00Z",
  
  
  
"updated_at": "2025-01-15T10:30:00Z",
  
  
  
"mockups": [
  
  
  
  
{
  
  
  
  
  
"id": 1234567890,
  
  
  
  
  
"url": "https://cdn.teeinblue.com/examples/products/mockup.png",
  
  
  
  
  
"thumbnail": "https://cdn.teeinblue.com/examples/products/mockup.png",
  
  
  
  
  
"master": "https://cdn.teeinblue.com/examples/products/mockup.png",
  
  
  
  
  
"old_url": "https://cdn.teeinblue.com/examples/products/mockup.png",
  
  
  
  
  
"preview_url": "https://cdn.teeinblue.com/examples/products/mockup.png",
  
  
  
  
  
"preview_thumbnail": "https://cdn.teeinblue.com/examples/products/mockup.png",
  
  
  
  
  
"alt": "Holiday T-Shirt",
  
  
  
  
  
"width": 1000,
  
  
  
  
  
"height": 1000
  
  
  
  
}
  
  
  
],
  
  
  
"printareas": [
  
  
  
  
{
  
  
  
  
  
"id": 1234567890,
  
  
  
  
  
"name": "Front",
  
  
  
  
  
"width": 1000,
  
  
  
  
  
"height": 1000,
  
  
  
  
  
"position": 1,
  
  
  
  
  
"display_name": "Front"
  
  
  
  
}
  
  
  
],
  
  
  
"variants": [
  
  
  
  
{
  
  
  
  
  
"id": 1234567890,
  
  
  
  
  
"sku": "TSHIRT-BELLA-LG-NAVY",
  
  
  
  
  
"color": "Navy Blue",
  
  
  
  
  
"size": "Large"
  
  
  
  
}
  
  
  
]
  
  
}
  
]
}

Samples​

Powered by VitePress OpenAPI

Teeinblue API documentation.