Skip to content

The held messages

GET
/api/tenant/{tenantId}/Mails/held
curl --request GET \
--url https://api.nimles.com/communication/api/tenant/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/Mails/held \
--header 'Authorization: Bearer <token>'

The held messages: the tenant’s mails to one address on a held recipient domain (Mail:HeldRecipientDomains, the end-to-end runs’ test domain), which are recorded and never sent, newest first, at most 20, so an end-to-end run can follow its test account’s verification link, in production too. A mail that also went to an address on any other domain is never shown: nothing that reached a mailbox is ever exposed. Needs Nimles.Communication.Contract.HeldMessageActions.Read tenant-wide. Its literal route segment wins over GET {id}.

tenantId
required
string format: uuid

Your tenant id.

to
string

The address, on a held recipient domain.

since
string format: date-time

Only the mails recorded after this moment (an offset is honoured; without one it is UTC).

OK

Media typeapplication/json
object
fields
object
key
additional properties
string
data
Array<object>
nullable
object
id
string format: uuid
to
Array<string>
nullable
subject
string
nullable
body
string
nullable
htmlBody
string
nullable
createdAt
string format: date-time

Example generated

{
"data": [
{
"id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"to": [
"example"
],
"subject": "example",
"body": "example",
"htmlBody": "example",
"createdAt": "2026-04-15T12:00:00Z"
}
]
}

Unauthorized: no bearer token, or one that is expired or not for this API.

Forbidden: the caller holds no role that allows this action at this scope. The body is empty, or a problem whose detail names the action.

Media typeapplication/json

An RFC 9457 problem.

object
detail
string
nullable
instance
string
nullable
status
integer format: int32
nullable
title
string
nullable
type
string
nullable
key
additional properties

Example generated

{
"detail": "example",
"instance": "example",
"status": 1,
"title": "example",
"type": "example"
}