Skip to content

List mails

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

Lists the mails the caller may read, sent and received, or only those in direction.

tenantId
required
string format: uuid

Your tenant id.

ids
Array<string>

Only these mails.

direction
string

Inbound (received) or Outbound (sent).

threadId
string format: uuid

Only this conversation: the mail with this id and the replies in its thread.

receivedAfter
string format: date-time

Only the mails received after this moment (UTC), oldest first. A poller keeps the last mail’s createdDate as its cursor and asks from a few minutes before it (e.g. cursor minus 5 minutes), deduplicating by id: a mail is listed only once its read model is projected, which can be later than its createdDate, so a cursor at the newest listed mail would skip one projected late.

tag
string

Only the received mails whose inbound routes gave this tag (PUT InboundMail/routes).

OK

Media typeapplication/json
object
fields
object
key
additional properties
string
data
Array<object>
nullable
object
fields
object
key
additional properties
object
value
nullable
valueType
string
nullable
values
object
key
additional properties
object
value
nullable
source
object
sourceId
string
nullable
runId
string
nullable
actor
string
nullable
at
string format: date-time
nullable
evidence
string
nullable
aiProvenance
object
model
string
nullable
templateVersion
string
nullable
inputCodes
Array<string>
nullable
runId
string
nullable
client
string
nullable
reviewedBy
string
nullable
reviewedAt
string format: date-time
nullable
lock
object
by
string
nullable
at
string format: date-time
nullable
source
object
sourceId
string
nullable
runId
string
nullable
actor
string
nullable
at
string format: date-time
nullable
evidence
string
nullable
aiProvenance
object
model
string
nullable
templateVersion
string
nullable
inputCodes
Array<string>
nullable
runId
string
nullable
client
string
nullable
reviewedBy
string
nullable
reviewedAt
string format: date-time
nullable
lock
object
by
string
nullable
at
string format: date-time
nullable
accessibility
string
nullable
id
string format: uuid
relations
Array<object>
nullable
object
fields
object
key
additional properties
object
value
nullable
valueType
string
nullable
values
object
key
additional properties
object
value
nullable
source
object
sourceId
string
nullable
runId
string
nullable
actor
string
nullable
at
string format: date-time
nullable
evidence
string
nullable
aiProvenance
object
model
string
nullable
templateVersion
string
nullable
inputCodes
Array<string>
nullable
runId
string
nullable
client
string
nullable
reviewedBy
string
nullable
reviewedAt
string format: date-time
nullable
lock
object
by
string
nullable
at
string format: date-time
nullable
source
object
sourceId
string
nullable
runId
string
nullable
actor
string
nullable
at
string format: date-time
nullable
evidence
string
nullable
aiProvenance
object
model
string
nullable
templateVersion
string
nullable
inputCodes
Array<string>
nullable
runId
string
nullable
client
string
nullable
reviewedBy
string
nullable
reviewedAt
string format: date-time
nullable
lock
object
by
string
nullable
at
string format: date-time
nullable
accessibility
string
nullable
id
string format: uuid
name
string
nullable
entityId
required
string format: uuid
entityType
required
string
>= 1 characters
relationType
required
string
>= 1 characters
tenantId
string format: uuid
nullable
resourceGroupId
string format: uuid
nullable
creatorId
string format: uuid
nullable
createdDate
string format: date-time
nullable
version
integer format: int32
nullable
lastModified
string format: date-time
nullable
to
required
Array<object>
object
address
string
nullable
name
string
nullable
userId
string format: uuid
nullable
from
required
object
address
string
nullable
name
string
nullable
userId
string format: uuid
nullable
subject
required
string
>= 1 characters
content
object
body
string
nullable
htmlBody
string
nullable
actionText
string
nullable
actionUrl
string
nullable
externalId
string
nullable
emailType
string
nullable
useTenantDefaultSender
boolean
replyTo
object
address
string
nullable
name
string
nullable
userId
string format: uuid
nullable
listUnsubscribeUrl
string format: uri
nullable
direction
string
nullable
inbound
object
size
integer format: int64
envelopeFrom
string
nullable
recipients
Array<string>
nullable
cc
Array<object>
nullable
object
address
string
nullable
name
string
nullable
userId
string format: uuid
nullable
replyTo
Array<object>
nullable
object
address
string
nullable
name
string
nullable
userId
string format: uuid
nullable
messageId
string
nullable
inReplyTo
string
nullable
references
Array<string>
nullable
sentDate
string format: date-time
nullable
attachments
Array<object>
nullable
object
index
integer format: int32
fileName
string
nullable
contentType
string
nullable
size
integer format: int64
contentId
string
nullable
isInline
boolean
isBodyTruncated
boolean
remoteIp
string
nullable
isSpam
boolean
spamScore
number format: double
nullable
authentication
object
spf
string
nullable
dkim
string
nullable
dmarc
string
nullable
tags
Array<string>
nullable
messageId
string
nullable
threadId
string format: uuid
nullable

Example generated

{
"data": [
{
"fields": {
"additionalProperty": {
"value": "example",
"valueType": "example",
"values": {
"additionalProperty": {
"value": "example",
"source": {
"sourceId": "example",
"runId": "example",
"actor": "example",
"at": "2026-04-15T12:00:00Z",
"evidence": "example",
"aiProvenance": {
"model": "example",
"templateVersion": "example",
"inputCodes": [
"example"
],
"runId": "example",
"client": "example",
"reviewedBy": "example",
"reviewedAt": "2026-04-15T12:00:00Z"
},
"lock": {
"by": "example",
"at": "2026-04-15T12:00:00Z"
}
}
}
},
"source": {
"sourceId": "example",
"runId": "example",
"actor": "example",
"at": "2026-04-15T12:00:00Z",
"evidence": "example",
"aiProvenance": {
"model": "example",
"templateVersion": "example",
"inputCodes": [
"example"
],
"runId": "example",
"client": "example",
"reviewedBy": "example",
"reviewedAt": "2026-04-15T12:00:00Z"
},
"lock": {
"by": "example",
"at": "2026-04-15T12:00:00Z"
}
}
}
},
"accessibility": "example",
"id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"relations": [
{
"fields": {
"additionalProperty": {
"value": "example",
"valueType": "example",
"values": {
"additionalProperty": {
"value": "example",
"source": {
"sourceId": "example",
"runId": "example",
"actor": "example",
"at": "2026-04-15T12:00:00Z",
"evidence": "example",
"aiProvenance": {
"model": "example",
"templateVersion": "example",
"inputCodes": [
"example"
],
"runId": "example",
"client": "example",
"reviewedBy": "example",
"reviewedAt": "2026-04-15T12:00:00Z"
},
"lock": {
"by": "example",
"at": "2026-04-15T12:00:00Z"
}
}
}
},
"source": {
"sourceId": "example",
"runId": "example",
"actor": "example",
"at": "2026-04-15T12:00:00Z",
"evidence": "example",
"aiProvenance": {
"model": "example",
"templateVersion": "example",
"inputCodes": [
"example"
],
"runId": "example",
"client": "example",
"reviewedBy": "example",
"reviewedAt": "2026-04-15T12:00:00Z"
},
"lock": {
"by": "example",
"at": "2026-04-15T12:00:00Z"
}
}
}
},
"accessibility": "example",
"id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"name": "example",
"entityId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"entityType": "example",
"relationType": "example"
}
],
"tenantId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"resourceGroupId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"creatorId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"createdDate": "2026-04-15T12:00:00Z",
"version": 1,
"lastModified": "2026-04-15T12:00:00Z",
"to": [
{
"address": "example",
"name": "example",
"userId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"
}
],
"from": {
"address": "example",
"name": "example",
"userId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"
},
"subject": "example",
"content": {
"body": "example",
"htmlBody": "example",
"actionText": "example",
"actionUrl": "example"
},
"externalId": "example",
"emailType": "example",
"useTenantDefaultSender": true,
"replyTo": {
"address": "example",
"name": "example",
"userId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"
},
"listUnsubscribeUrl": "https://example.com",
"direction": "example",
"inbound": {
"size": 1,
"envelopeFrom": "example",
"recipients": [
"example"
],
"cc": [
{
"address": "example",
"name": "example",
"userId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"
}
],
"replyTo": [
{
"address": "example",
"name": "example",
"userId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"
}
],
"messageId": "example",
"inReplyTo": "example",
"references": [
"example"
],
"sentDate": "2026-04-15T12:00:00Z",
"attachments": [
{
"index": 1,
"fileName": "example",
"contentType": "example",
"size": 1,
"contentId": "example",
"isInline": true
}
],
"isBodyTruncated": true,
"remoteIp": "example",
"isSpam": true,
"spamScore": 1,
"authentication": {
"spf": "example",
"dkim": "example",
"dmarc": "example"
},
"tags": [
"example"
]
},
"messageId": "example",
"threadId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"
}
]
}

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"
}