Skip to main content
GET
List the segments of a card definition

Authorizations

Authorization
string
header
required

Sign in with the existing Occtoo Studio identity and selected organization.

Path Parameters

cardId
string
required

Raw id of the card definition (e.g. products).

Query Parameters

type
enum<string>

Only segments of this type. See SegmentType. Sets how a segment picks its cards.

Available options:
Query,
Fixed
status
enum<string>

Only segments in this state. See SegmentStatus. Gives the lifecycle state of a segment. A new segment is scheduled, then initializing, then active, and is archived when its endTime passes. There's no failed state.

Available options:
Initializing,
Active,
Scheduled,
Archived
name
string

Only items whose name contains this text, ignoring case.

createdFrom
string<date-time>

Only items created at or after this time.

createdTo
string<date-time>

Only items created at or before this time. Can't be before createdFrom.

updatedFrom
string<date-time>

Only items last changed at or after this time.

updatedTo
string<date-time>

Only items last changed at or before this time. Can't be before updatedFrom.

after
string

Cursor from the previous page's after. Omit it for the first page; pages only go forward.

limit

Number of items to return. Default 50, max 200.

includeTotalCount
boolean

Include totalCount, the number of all matching items. Costs an extra count; default false, and totalCount is null without it.

Response

OK

Holds one page of a list.

items
object[]
required

Items on this page.

after
null | string
required

Cursor for the next page: pass it as after. Null on the last page.

totalCount
null | integer<int64>
required

Number of all matching items. Null unless includeTotalCount=true.