Skip to content

List platform base campaigns​

GET
/campaigns/platform-base

List all platform 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"
platforms

Filter by the platform(s).

Note: This API expects array query params in the bracket form:

  • Single value: platforms[]=etsy
  • Multiple values: platforms[]=etsy&platforms[]=shopify

Using platforms=etsy will result in a validation error.

Valid platforms include:

  • etsy
  • shopify
  • boundless
Type
array

Responses​

List of platform 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,
  
  
  
"uuid": "6d823e4d-8f21-41f8-b461-e97c981880bc",
  
  
  
"instance_id": 1234567890,
  
  
  
"domain": "my-shop.myshopify.com",
  
  
  
"platform_domain": "my-shop.myshopify.com",
  
  
  
"platform": "shopify",
  
  
  
"platform_linked_id": 1234567890,
  
  
  
"name": "My Campaign",
  
  
  
"internal_tags": "DONE",
  
  
  
"preview_url": "https://cdn.teeinblue.com/examples/platform-mockups/preview.png",
  
  
  
"preview_thumbnail": "https://cdn.teeinblue.com/examples/platform-mockups/thumbnail.webp",
  
  
  
"version": 1,
  
  
  
"enable_artwork_variant_assignment": true,
  
  
  
"published_at": "2025-01-15T10:30:00Z",
  
  
  
"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,
  
  
  
  
  
"platform_variants_id": [
  
  
  
  
  
  
1234567890,
  
  
  
  
  
  
1234567891
  
  
  
  
  
],
  
  
  
  
  
"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.