Objects

objects

Methods

Add Subscriptions -> Array<>
post/v1/objects/{collection}/{object_id}/subscriptions

Add subscriptions for an object. If a subscription already exists, it will be updated.

Delete An Object -> string
delete/v1/objects/{collection}/{object_id}

Delete an object

Delete Subscriptions -> Array<>
delete/v1/objects/{collection}/{object_id}/subscriptions

Delete subscriptions

Get An Object ->
get/v1/objects/{collection}/{object_id}

Get an object

Get Channel Data ->
get/v1/objects/{collection}/{object_id}/channel_data/{channel_id}

Get channel data

Get A Preference Set ->
get/v1/objects/{collection}/{object_id}/preferences/{preference_set_id}

Get a preference set

List Objects In A Collection -> EntriesCursor<>
get/v1/objects/{collection}

List objects in a collection

Parameters
collection: string
after: string
Optional

The cursor to fetch entries after

before: string
Optional

The cursor to fetch entries before

page_size: number
Optional

The page size to fetch

Response fields
entries: Array<>

The list of objects

page_info: { __typename, page_size, after, 1 more... }

The information about a paginated result

Request example
200Example
List Messages -> EntriesCursor<>
get/v1/objects/{collection}/{object_id}/messages

List messages

Parameters
collection: string
object_id: string
after: string
Optional

The cursor to fetch entries after

before: string
Optional

The cursor to fetch entries before

channel_id: string
Optional

The channel ID

engagement_status: Array<
Optional

The engagement status of the message

"seen"
"read"
"interacted"
"link_clicked"
"archived"
>
message_ids: Array<string>
Optional

The message IDs to filter messages by

page_size: number
Optional

The page size to fetch

source: string
Optional

The source of the message (workflow key)

status: Array<
Optional

The status of the message

"queued"
"sent"
"delivered"
"delivery_attempted"
"undelivered"
"not_sent"
"bounced"
>
tenant: string
Optional

The tenant ID

trigger_data: string
Optional

The trigger data to filter messages by. Must be a valid JSON object.

workflow_categories: Array<string>
Optional

The workflow categories to filter messages by

workflow_recipient_run_id: string
Optional
(format: uuid)

The workflow recipient run ID to filter messages by

workflow_run_id: string
Optional
(format: uuid)

The workflow run ID to filter messages by

Response fields
entries: Array<>

The list of messages

page_info: { __typename, page_size, after, 1 more... }

The information about a paginated result

Request example
200Example
List Schedules -> EntriesCursor<>
get/v1/objects/{collection}/{object_id}/schedules

List schedules

List Subscriptions -> EntriesCursor<>
get/v1/objects/{collection}/{object_id}/subscriptions

List subscriptions for an object. Either list all subscriptions that belong to the object, or all subscriptions that this object has. Determined by the mode query parameter.

Set Identify An Object ->
put/v1/objects/{collection}/{object_id}

Set (identify) an object

Set Channel Data ->
put/v1/objects/{collection}/{object_id}/channel_data/{channel_id}

Set channel data

Update A Preference Set ->
put/v1/objects/{collection}/{object_id}/preferences/{preference_set_id}

Update a preference set

Unset Channel Data -> string
delete/v1/objects/{collection}/{object_id}/channel_data/{channel_id}

Unset channel data

Domain types

InlineObjectRequest = { id, collection, channel_data, 2 more... }

Inline identifies a custom object belonging to a collection

Object = { id, __typename, collection, 2 more... }

A custom-object entity which belongs to a collection.

objects.bulk

Methods

Bulk Add Subscriptions ->
post/v1/objects/{collection}/bulk/subscriptions/add

Add subscriptions for a set of objects in a single collection. If a subscription already exists, it will be updated.

Bulk Delete Objects ->
post/v1/objects/{collection}/bulk/delete

Bulk delete objects

Bulk Set Objects ->
post/v1/objects/{collection}/bulk/set

Bulk set objects