Skip to content

List product base campaigns​

GET
/campaigns/product-base

List all product base campaigns. Requires campaigns: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 product base campaigns (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,
  
  
  
"name": "My Product Base Campaign",
  
  
  
"product_tags": "spring,sale",
  
  
  
"vendor": "Acme",
  
  
  
"product_type": "T-Shirt",
  
  
  
"product_display_type": "grid",
  
  
  
"label_available_product": "Choose a product",
  
  
  
"internal_tags": "DONE",
  
  
  
"status": 1,
  
  
  
"created_at": "2025-01-15T10:30:00Z",
  
  
  
"updated_at": "2025-01-15T10:30:00Z",
  
  
  
"artworks": [
  
  
  
  
{
  
  
  
  
  
"id": 1234567890,
  
  
  
  
  
"name": "My Artwork",
  
  
  
  
  
"description": "My Artwork Description",
  
  
  
  
  
"width": 1000,
  
  
  
  
  
"height": 1000,
  
  
  
  
  
"thumbnail": "https://cdn.teeinblue.com/examples/platform-mockups/thumbnail.webp",
  
  
  
  
  
"status": 1,
  
  
  
  
  
"position": 1,
  
  
  
  
  
"platform_variants_id": [
  
  
  
  
  
  
1234567890,
  
  
  
  
  
  
1234567891
  
  
  
  
  
]
  
  
  
  
}
  
  
  
],
  
  
  
"mockups": [
  
  
  
  
{
  
  
  
  
  
"id": 1234567890,
  
  
  
  
  
"width": 1000,
  
  
  
  
  
"height": 1000,
  
  
  
  
  
"position": 1,
  
  
  
  
  
"preview_url": "https://cdn.teeinblue.com/examples/platform-mockups/preview.png",
  
  
  
  
  
"preview_thumbnail": "https://cdn.teeinblue.com/examples/platform-mockups/thumbnail.webp"
  
  
  
  
}
  
  
  
]
  
  
}
  
]
}

Samples​

Powered by VitePress OpenAPI

Teeinblue API documentation.