List mails
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"), 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';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 \ --header 'Authorization: Bearer <token>'Lists the mails the caller may read, sent and received, or only those in direction.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Your tenant id.
Query Parameters
Section titled “Query Parameters”Only these mails.
Inbound (received) or Outbound (sent).
Only this conversation: the mail with this id and the replies in its thread.
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.
Only the received mails whose inbound routes gave this tag (PUT InboundMail/routes).
Responses
Section titled “Responses”OK
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
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.
An RFC 9457 problem.
object
Example generated
{ "detail": "example", "instance": "example", "status": 1, "title": "example", "type": "example"}