Skip to content

Get a mail

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

Your tenant id.

OK

Media typeapplication/json
object
fields
object
key
additional properties
string
data
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"
}

Not found: no such item in the tenant.

Media typeapplication/problem+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"
}