Skip to content
Console
Menu

Queues

Workflows

Getting Started

Authentication

KV Store

List messages

Lists messages.

Lists messages.

  • Path GET https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/messages
  • Scope notify:read
  • Effect read — nothing is written.
  • Collection messages
  • Query page_size, page_token, filter, order_by
  • Pagination the answer carries messages and, when there is more, next_page_token

#Request

FieldTypeWhat it is
parentstringThe parent to list in. Required.
page_sizeint32At most this many; default 50, clamped to 1000.
page_tokenstringnext_page_token of the previous page.
filterstringAIP-160 filter over labels and filterable fields.
order_bystringAIP-132 ordering over filterable fields.

#Response

FieldTypeWhat it is
messagesMessage[]The page.
next_page_tokenstringThe token of the next page; empty on the last page.

#Message

FieldTypeWhat it is
namestringorgs/{org}/projects/{project}/envs/{env}/messages/{message}.
uidstringmsg_<cell><ulid>; never reused. Output only.
metaResourceMetaResource metadata.
recipientstringThe recipient. Required.
topicstringThe topic preferences are checked against, for example billing. Required.
templatestringThe template to render; required unless mailbox and content are set.
template_versionint64The template version rendered; pinned at admission. Output only.
datastructTemplate variables.
channelsChannel[]Restrict to these channels, in fallback order; empty uses the recipient's preferences. One of email, sms, push, inbox.
send_timetimestampSend no earlier than this.
broadcaststringThe broadcast that created it, if any. Output only.
stateMessageStateThe admission and delivery state. Output only. One of accepted, suppressed, delivering, delivered, failed, cancelled, rate_limited.
deliveriesChannelDelivery[]Per-channel deliveries and their receipts. Output only.
delivery_deadline_timetimestampDeliver no later than this; a delivery still open then fails with expired. Unset retries for up to a day. The message record is kept.
state_reasonstringWhy the message is in its state, for example recipient_interval for RATE_LIMITED or suppressed for SUPPRESSED. Output only.
captureMessageCaptureA test recipient's rendered content; empty for every other recipient. Output only.
mailboxstringSend as this mailbox (its address, display name and, for a connected mailbox, its own SMTP) instead of a verified Email Domain.
contentMessageContentInline content, only with mailbox: the subject and bodies as written, not rendered from a template.
parent_message_idstringIn-Reply-To: the Message-ID this answers, without angle brackets.
referencesstring[]The thread's Message-IDs, oldest first, without angle brackets.
email_message_idstringThe Message-ID Notify gave the email, without angle brackets. Output only.

#ResourceMeta

FieldTypeWhat it is
generationint64Increases by one on every change to spec. Output only.
etagstringStrong ETag (AIP-154): changes on any change to spec, status, or metadata. Send it back as If-Match or etag to make Update and Delete conditional; a mismatch fails with ABORTED / 409 ETAG_MISMATCH. Output only.
create_timetimestampWhen the Resource was created. Output only.
update_timetimestampWhen the Resource last changed. Output only.
delete_timetimestampSet while the Resource is being deleted. Output only.
labelsmap<string, string>Caller-writable, indexed labels (AIP-122 label rules).
annotationsmap<string, string>Caller-writable, unindexed annotations.
display_namestringCaller-writable human-readable name.
creatorstringThe principal that created the Resource. Output only.

#ChannelDelivery

FieldTypeWhat it is
channelChannelThe channel. Output only. One of email, sms, push, inbox.
masked_addressstringThe address, masked. Output only.
stateChannelDeliveryStateThe delivery state. Output only. One of pending, sent, delivered, bounced, failed, skipped, captured, suppressed.
provider_receiptstringThe provider's acceptance id. Output only.
receipt_timetimestampWhen the provider receipt closed the delivery. Output only.
error_codestringA machine-readable failure code. Output only.
provider_responsestringThe provider's last reply, for example 250 2.0.0 queued as …. Output only.
attemptsint32Hand-off attempts so far. Output only.

#MessageCapture

FieldTypeWhat it is
subjectstringThe email subject. Output only.
text_bodystringThe plain-text body. Output only.
html_bodystringThe HTML body. Output only.
linksstring[]Every link in the bodies, in order. Output only.

#MessageContent

FieldTypeWhat it is
subjectstringThe subject. Required.
text_bodystringThe plain-text body.
html_bodystringThe HTML body.

#Errors

Every error arrives in the body Errors describes.

#Examples

curl "https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/messages" \
  -H "Authorization: Bearer $SYLPHX_API_KEY"