Get a mail
GET
/api/tenant/{tenantId}/Mails/{id}
using System.Net.Http.Headers;var client = new HttpClient();var request = new HttpRequestMessage{ Method = HttpMethod.Get, RequestUri = new Uri("https://api.nimles.com/communication/api/tenant/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/Mails/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"), Headers = { { "Authorization", "Bearer <token>" }, },};using (var response = await client.SendAsync(request)){ response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body);}const url = 'https://api.nimles.com/communication/api/tenant/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/Mails/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string format: uuid
tenantId
required
string format: uuid
Your tenant id.
Responses
Section titled “Responses”OK
Media typeapplication/json
object
fields
object
key
additional properties
string
data
object
fields
object
key
additional properties
object
value
valueType
string
values
object
key
additional properties
object
value
source
object
sourceId
string
runId
string
actor
string
at
string format: date-time
evidence
string
aiProvenance
object
model
string
templateVersion
string
inputCodes
Array<string>
runId
string
client
string
reviewedBy
string
reviewedAt
string format: date-time
lock
object
by
string
at
string format: date-time
source
object
sourceId
string
runId
string
actor
string
at
string format: date-time
evidence
string
aiProvenance
object
model
string
templateVersion
string
inputCodes
Array<string>
runId
string
client
string
reviewedBy
string
reviewedAt
string format: date-time
lock
object
by
string
at
string format: date-time
accessibility
string
id
string format: uuid
relations
Array<object>
object
fields
object
key
additional properties
object
value
valueType
string
values
object
key
additional properties
object
value
source
object
sourceId
string
runId
string
actor
string
at
string format: date-time
evidence
string
aiProvenance
object
model
string
templateVersion
string
inputCodes
Array<string>
runId
string
client
string
reviewedBy
string
reviewedAt
string format: date-time
lock
object
by
string
at
string format: date-time
source
object
sourceId
string
runId
string
actor
string
at
string format: date-time
evidence
string
aiProvenance
object
model
string
templateVersion
string
inputCodes
Array<string>
runId
string
client
string
reviewedBy
string
reviewedAt
string format: date-time
lock
object
by
string
at
string format: date-time
accessibility
string
id
string format: uuid
name
string
entityId
required
string format: uuid
entityType
required
string
relationType
required
string
tenantId
string format: uuid
resourceGroupId
string format: uuid
creatorId
string format: uuid
createdDate
string format: date-time
version
integer format: int32
lastModified
string format: date-time
to
required
Array<object>
object
address
string
name
string
userId
string format: uuid
from
required
object
address
string
name
string
userId
string format: uuid
subject
required
string
content
object
body
string
htmlBody
string
actionText
string
actionUrl
string
externalId
string
emailType
string
useTenantDefaultSender
boolean
replyTo
object
address
string
name
string
userId
string format: uuid
listUnsubscribeUrl
string format: uri
direction
string
inbound
object
size
integer format: int64
envelopeFrom
string
recipients
Array<string>
cc
Array<object>
object
address
string
name
string
userId
string format: uuid
replyTo
Array<object>
object
address
string
name
string
userId
string format: uuid
messageId
string
inReplyTo
string
references
Array<string>
sentDate
string format: date-time
attachments
Array<object>
object
index
integer format: int32
fileName
string
contentType
string
size
integer format: int64
contentId
string
isInline
boolean
isBodyTruncated
boolean
remoteIp
string
isSpam
boolean
spamScore
number format: double
authentication
object
spf
string
dkim
string
dmarc
string
tags
Array<string>
messageId
string
threadId
string format: uuid
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
instance
string
status
integer format: int32
title
string
type
string
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
instance
string
status
integer format: int32
title
string
type
string
key
additional properties
Example generated
{ "detail": "example", "instance": "example", "status": 1, "title": "example", "type": "example"}