Preview. This site is still being built. Features, prices and terms may change, and nothing here is a binding offer. Read the preview notice

Preview. Still being built; nothing here is a binding offer. Details

Read marks

5 routes. Paths are relative to https://api.intersink.com/v1.

All groups

When I read each of these records (null = unread)

GET/read-marks/{list}

Needs a signed-in user (Bearer token or access_token cookie).

Pass the ids of the rows on screen. Ids that are not records of this list in the channel are left out.

Parameters

NameTypeDescription
listrequiredstring, pathcrm.contacts (leads), crm.deals, orders One of: "crm.contacts", "crm.deals", "orders".
channel_idstring (uuid), queryThe channel; the session's channel when left out
idsrequiredstring, queryRecord ids, comma separated (at most 200) Example: "id1,id2"

Response

200. data is object (ReadMarksStateDto).

FieldTypeDescription
listrequiredstringExample: "crm.contacts"
channel_idrequiredstring (uuid)
readrequiredobjectEach asked id → when this person read it, or null (unread). Ids not in the channel are left out.

How many records of the list I have and have not read

GET/read-marks/{list}/counts

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
listrequiredstring, pathcrm.contacts (leads), crm.deals, orders One of: "crm.contacts", "crm.deals", "orders".
channel_idstring (uuid), queryThe channel; the session's channel when left out

Response

200. data is object (ReadMarksCountsDto).

FieldTypeDescription
listrequiredstringExample: "crm.contacts"
channel_idrequiredstring (uuid)
totalrequirednumberRecords in the list Example: 40
readrequirednumberRead by this person Example: 15
unreadrequirednumberNot read by this person Example: 25

Mark records read (opening a record does this)

POST/read-marks/{list}/read

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
listrequiredstring, pathcrm.contacts (leads), crm.deals, orders One of: "crm.contacts", "crm.deals", "orders".

Request body application/json

FieldTypeDescription
channel_idstring (uuid)The channel; the session's channel when left out
idsrequiredstring[]At most 200 items.

Response

200. data is object (ReadMarksChangeDto).

FieldTypeDescription
listrequiredstringExample: "crm.contacts"
channel_idrequiredstring (uuid)
changedrequirednumberMarks added (read) or removed (unread); ones already right are not counted Example: 3
unreadrequirednumberUnread records left in the list for this person Example: 25
morebooleanread-all only: more records remain past the per-call cap; call again Example: false

Mark every record of the list read

POST/read-marks/{list}/read-all

Needs a signed-in user (Bearer token or access_token cookie).

Up to 5000 records per call; more: true means call again.

Parameters

NameTypeDescription
listrequiredstring, pathcrm.contacts (leads), crm.deals, orders One of: "crm.contacts", "crm.deals", "orders".

Request body application/json

FieldTypeDescription
channel_idstring (uuid)The channel; the session's channel when left out

Response

200. data is object (ReadMarksChangeDto).

FieldTypeDescription
listrequiredstringExample: "crm.contacts"
channel_idrequiredstring (uuid)
changedrequirednumberMarks added (read) or removed (unread); ones already right are not counted Example: 3
unreadrequirednumberUnread records left in the list for this person Example: 25
morebooleanread-all only: more records remain past the per-call cap; call again Example: false

Mark records unread again

POST/read-marks/{list}/unread

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
listrequiredstring, pathcrm.contacts (leads), crm.deals, orders One of: "crm.contacts", "crm.deals", "orders".

Request body application/json

FieldTypeDescription
channel_idstring (uuid)The channel; the session's channel when left out
idsrequiredstring[]At most 200 items.

Response

200. data is object (ReadMarksChangeDto).

FieldTypeDescription
listrequiredstringExample: "crm.contacts"
channel_idrequiredstring (uuid)
changedrequirednumberMarks added (read) or removed (unread); ones already right are not counted Example: 3
unreadrequirednumberUnread records left in the list for this person Example: 25
morebooleanread-all only: more records remain past the per-call cap; call again Example: false