POST
/
v1
/
subscribers
/
{subscriberId}
/
messages
/
mark-as

Authorizations

Authorization
string
header
required

API key authentication. Allowed headers-- "Authorization: ApiKey <api_key>".

Headers

idempotency-key
string

A header for idempotency purposes

Path Parameters

subscriberId
string
required

Body

application/json
markAs
enum<string>
required
Available options:
read,
seen,
unread,
unseen
messageId
required

Response

201 - application/json
_environmentId
string
required

Environment ID where the message is sent

_messageTemplateId
string
required

Message template ID

_notificationId
string
required

Notification ID associated with the message

_organizationId
string
required

Organization ID associated with the message

_subscriberId
string
required

Subscriber ID associated with the message

_templateId
string
required

Template ID associated with the message

channel
enum<string>
required

Channel type through which the message is sent

Available options:
in_app,
email,
sms,
chat,
push
content
required

Content of the message, can be an email block or a string

createdAt
string
required

Creation date of the message

cta
object
required

Call to action associated with the message

read
boolean
required

Indicates if the message has been read

seen
boolean
required

Indicates if the message has been seen

status
enum<string>
required

Status of the message

Available options:
sent,
error,
warning
transactionId
string
required

Transaction ID associated with the message

_feedId
string | null

Feed ID associated with the message, if applicable

_id
string

Unique identifier for the message

deviceTokens
string[]

Device tokens associated with the message, if applicable

directWebhookUrl
string

Direct webhook URL for the message, if applicable

email
string

Email address associated with the message, if applicable

errorId
string

Error ID if the message has an error

errorText
string

Error text if the message has an error

lastReadDate
string

Last read date of the message, if available

lastSeenDate
string

Last seen date of the message, if available

overrides
object

Provider specific overrides used when triggering the notification

payload
object

The payload that was used to send the notification trigger

phone
string

Phone number associated with the message, if applicable

providerId
string

Provider ID associated with the message, if applicable

subject
string

Subject of the message, if applicable

subscriber
object

Subscriber details, if available

template
object

Workflow template associated with the message

templateIdentifier
string

Identifier for the message template

title
string

Title of the message, if applicable