Skip to content

Latest commit

 

History

History
4563 lines (4152 loc) · 117 KB

File metadata and controls

4563 lines (4152 loc) · 117 KB
title language_tabs language_clients toc_footers includes search highlight_theme headingLevel
In-mail Service v1.0.0
javascript
JavaScript
javascript--nodejs
Node.JS
javascript
request
javascript--nodejs
true
darkula
2

In-mail Service v1.0.0

Scroll down for code samples, example requests and responses. Select a language for code samples from the tabs above or the mobile navigation menu.

In mail microservice.

Base URLs:

Authentication

  • HTTP Authentication, scheme: bearer

OriginatorController

API provides an interface for restore message from trash.

Code samples

const inputBody = '{
  "messageIds": [
    "string"
  ],
  "threadIds": [
    "string"
  ]
}';
const headers = {
  'Content-Type':'application/json',
  'Authorization':'Bearer {access-token}'
};

fetch('/mails/bulk/restore',
{
  method: 'PATCH',
  body: inputBody,
  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});
const fetch = require('node-fetch');
const inputBody = {
  "messageIds": [
    "string"
  ],
  "threadIds": [
    "string"
  ]
};
const headers = {
  'Content-Type':'application/json',
  'Authorization':'Bearer {access-token}'
};

fetch('/mails/bulk/restore',
{
  method: 'PATCH',
  body: JSON.stringify(inputBody),
  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

PATCH /mails/bulk/restore

Permissions
RestoreMail
10

Body parameter

{
  "messageIds": [
    "string"
  ],
  "threadIds": [
    "string"
  ]
}

Parameters

Name In Type Required Description
filter query object false none
body body IdArraysPartial false none

Responses

Status Meaning Description Schema
200 OK Restore Message Successful! None
400 Bad Request Message identity does not exist. None
403 Forbidden Forbidden request due to unauthorized token in header. None
To perform this operation, you must be authenticated by means of one of the following methods: HTTPBearer

API for moving mails to trash and then delete

Code samples

const inputBody = '{
  "messageIds": [
    "string"
  ],
  "threadIds": [
    "string"
  ]
}';
const headers = {
  'Content-Type':'application/json',
  'Authorization':'Bearer {access-token}'
};

fetch('/mails/bulk/{storage}/{action}',
{
  method: 'DELETE',
  body: inputBody,
  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});
const fetch = require('node-fetch');
const inputBody = {
  "messageIds": [
    "string"
  ],
  "threadIds": [
    "string"
  ]
};
const headers = {
  'Content-Type':'application/json',
  'Authorization':'Bearer {access-token}'
};

fetch('/mails/bulk/{storage}/{action}',
{
  method: 'DELETE',
  body: JSON.stringify(inputBody),
  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

DELETE /mails/bulk/{storage}/{action}

Permissions
TrashMail
9

Body parameter

{
  "messageIds": [
    "string"
  ],
  "threadIds": [
    "string"
  ]
}

Parameters

Name In Type Required Description
storage path string true none
action path string true none
filter query object false none
body body IdArraysPartial false none

Responses

Status Meaning Description Schema
200 OK Trash/Deletion of Mail(s) sucessful! None
403 Forbidden Forbidden request due to unauthorized token in header. None
404 Not Found Message identity does not exist. None
To perform this operation, you must be authenticated by means of one of the following methods: HTTPBearer

API provides interface to mark read, unread and important

Code samples

const inputBody = '{
  "messageIds": [
    "string"
  ],
  "threadIds": [
    "string"
  ]
}';
const headers = {
  'Content-Type':'application/json',
  'Authorization':'Bearer {access-token}'
};

fetch('/mails/marking/{markType}',
{
  method: 'PATCH',
  body: inputBody,
  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});
const fetch = require('node-fetch');
const inputBody = {
  "messageIds": [
    "string"
  ],
  "threadIds": [
    "string"
  ]
};
const headers = {
  'Content-Type':'application/json',
  'Authorization':'Bearer {access-token}'
};

fetch('/mails/marking/{markType}',
{
  method: 'PATCH',
  body: JSON.stringify(inputBody),
  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

PATCH /mails/marking/{markType}

Permissions
UpdateMail
2

Body parameter

{
  "messageIds": [
    "string"
  ],
  "threadIds": [
    "string"
  ]
}

Parameters

Name In Type Required Description
markType path string true none
body body IdArraysPartial false none

Responses

Status Meaning Description Schema
200 OK Message is marked read/unread/important None
To perform this operation, you must be authenticated by means of one of the following methods: HTTPBearer

API provides an interface for removing attachment before message is sent

Code samples

const headers = {
  'Authorization':'Bearer {access-token}'
};

fetch('/mails/{messageId}/attachments/{attachmentId}',
{
  method: 'DELETE',

  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});
const fetch = require('node-fetch');

const headers = {
  'Authorization':'Bearer {access-token}'
};

fetch('/mails/{messageId}/attachments/{attachmentId}',
{
  method: 'DELETE',

  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

DELETE /mails/{messageId}/attachments/{attachmentId}

Permissions
DeleteAttachment
14

Parameters

Name In Type Required Description
messageId path string true none
attachmentId path string true none
filter query object false none

Responses

Status Meaning Description Schema
200 OK Deletetion of Attachment Successful! None
403 Forbidden Forbidden request due to unauthorized token in header. None
404 Not Found Message identity does not exist. None
To perform this operation, you must be authenticated by means of one of the following methods: HTTPBearer

API provides an interface for adding attachment before message is sent.

Code samples

const inputBody = '{
  "attachments": [
    {
      "deleted": true,
      "deletedOn": "2019-08-24T14:15:22Z",
      "deletedBy": "string",
      "createdOn": "2019-08-24T14:15:22Z",
      "modifiedOn": "2019-08-24T14:15:22Z",
      "createdBy": "string",
      "modifiedBy": "string",
      "id": "string",
      "name": "string",
      "path": "string",
      "thumbnail": "string",
      "mime": "string",
      "extId": "string",
      "extMetadata": {},
      "messageId": "string"
    }
  ]
}';
const headers = {
  'Content-Type':'application/json',
  'Accept':'application/json',
  'Authorization':'Bearer {access-token}'
};

fetch('/mails/{messageId}/attachments',
{
  method: 'POST',
  body: inputBody,
  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});
const fetch = require('node-fetch');
const inputBody = {
  "attachments": [
    {
      "deleted": true,
      "deletedOn": "2019-08-24T14:15:22Z",
      "deletedBy": "string",
      "createdOn": "2019-08-24T14:15:22Z",
      "modifiedOn": "2019-08-24T14:15:22Z",
      "createdBy": "string",
      "modifiedBy": "string",
      "id": "string",
      "name": "string",
      "path": "string",
      "thumbnail": "string",
      "mime": "string",
      "extId": "string",
      "extMetadata": {},
      "messageId": "string"
    }
  ]
};
const headers = {
  'Content-Type':'application/json',
  'Accept':'application/json',
  'Authorization':'Bearer {access-token}'
};

fetch('/mails/{messageId}/attachments',
{
  method: 'POST',
  body: JSON.stringify(inputBody),
  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

POST /mails/{messageId}/attachments

Permissions
AddAttachments
4

Body parameter

{
  "attachments": [
    {
      "deleted": true,
      "deletedOn": "2019-08-24T14:15:22Z",
      "deletedBy": "string",
      "createdOn": "2019-08-24T14:15:22Z",
      "modifiedOn": "2019-08-24T14:15:22Z",
      "createdBy": "string",
      "modifiedBy": "string",
      "id": "string",
      "name": "string",
      "path": "string",
      "thumbnail": "string",
      "mime": "string",
      "extId": "string",
      "extMetadata": {},
      "messageId": "string"
    }
  ]
}

Parameters

Name In Type Required Description
messageId path string true none
filter query object false none
body body object false none
» attachments body [AttachmentPartial] false [(tsType: Partial, schemaOptions: { partial: true })]
»» AttachmentPartial body AttachmentPartial false (tsType: Partial, schemaOptions: { partial: true })
»»» deleted body boolean false none
»»» deletedOn body string(date-time)¦null false none
»»» deletedBy body string¦null false none
»»» createdOn body string(date-time) false none
»»» modifiedOn body string(date-time) false none
»»» createdBy body string false none
»»» modifiedBy body string false none
»»» id body string false none
»»» name body string false none
»»» path body string false none
»»» thumbnail body string false none
»»» mime body string false none
»»» extId body string false none
»»» extMetadata body object false none
»»» messageId body string false none

Example responses

200 Response

{
  "items": [
    {
      "deleted": true,
      "deletedOn": "2019-08-24T14:15:22Z",
      "deletedBy": "string",
      "createdOn": "2019-08-24T14:15:22Z",
      "modifiedOn": "2019-08-24T14:15:22Z",
      "createdBy": "string",
      "modifiedBy": "string",
      "id": "string",
      "name": "string",
      "path": "string",
      "thumbnail": "string",
      "mime": "string",
      "extId": "string",
      "extMetadata": {},
      "messageId": "string"
    }
  ]
}

Responses

Status Meaning Description Schema
200 OK collect single attachment for user by message identifier [Attachment add response schema](#schemaattachment add response schema)
400 Bad Request Message identity does not exist. None
403 Forbidden Forbidden request due to unauthorized token in header. None
To perform this operation, you must be authenticated by means of one of the following methods: HTTPBearer

API for sending a drafted message.

Code samples

const headers = {
  'Authorization':'Bearer {access-token}'
};

fetch('/mails/{messageId}/send',
{
  method: 'PATCH',

  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});
const fetch = require('node-fetch');

const headers = {
  'Authorization':'Bearer {access-token}'
};

fetch('/mails/{messageId}/send',
{
  method: 'PATCH',

  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

PATCH /mails/{messageId}/send

Permissions
ComposeMail
1

Parameters

Name In Type Required Description
messageId path string true none
filter query object false none

Responses

Status Meaning Description Schema
200 OK Mail is Successfully sent! None
400 Bad Request Message identity does not exist. None
403 Forbidden Forbidden request due to unauthorized token in header. None
To perform this operation, you must be authenticated by means of one of the following methods: HTTPBearer

Update API. Update draft messages.

Code samples

const inputBody = '{
  "threadId": "string",
  "groups": [
    {
      "deleted": true,
      "deletedOn": "2019-08-24T14:15:22Z",
      "deletedBy": "string",
      "createdOn": "2019-08-24T14:15:22Z",
      "modifiedOn": "2019-08-24T14:15:22Z",
      "createdBy": "string",
      "modifiedBy": "string",
      "id": "string",
      "party": "string",
      "type": "from",
      "isImportant": true,
      "storage": "draft",
      "visibility": "read",
      "extId": "string",
      "extMetadata": {},
      "messageId": "string",
      "threadId": "string"
    }
  ],
  "attachments": [
    {
      "deleted": true,
      "deletedOn": "2019-08-24T14:15:22Z",
      "deletedBy": "string",
      "createdOn": "2019-08-24T14:15:22Z",
      "modifiedOn": "2019-08-24T14:15:22Z",
      "createdBy": "string",
      "modifiedBy": "string",
      "id": "string",
      "name": "string",
      "path": "string",
      "thumbnail": "string",
      "mime": "string",
      "extId": "string",
      "extMetadata": {},
      "messageId": "string"
    }
  ],
  "meta": [
    {
      "deleted": true,
      "deletedOn": "2019-08-24T14:15:22Z",
      "deletedBy": "string",
      "createdOn": "2019-08-24T14:15:22Z",
      "modifiedOn": "2019-08-24T14:15:22Z",
      "createdBy": "string",
      "modifiedBy": "string",
      "id": "string",
      "key": "string",
      "value": "string",
      "extId": "string",
      "extMetadata": {},
      "messageId": "string"
    }
  ],
  "body": "string",
  "subject": "string",
  "status": "string",
  "extId": "string",
  "extMetadata": {}
}';
const headers = {
  'Content-Type':'application/json',
  'Accept':'application/json',
  'Authorization':'Bearer {access-token}'
};

fetch('/mails/{messageId}',
{
  method: 'PUT',
  body: inputBody,
  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});
const fetch = require('node-fetch');
const inputBody = {
  "threadId": "string",
  "groups": [
    {
      "deleted": true,
      "deletedOn": "2019-08-24T14:15:22Z",
      "deletedBy": "string",
      "createdOn": "2019-08-24T14:15:22Z",
      "modifiedOn": "2019-08-24T14:15:22Z",
      "createdBy": "string",
      "modifiedBy": "string",
      "id": "string",
      "party": "string",
      "type": "from",
      "isImportant": true,
      "storage": "draft",
      "visibility": "read",
      "extId": "string",
      "extMetadata": {},
      "messageId": "string",
      "threadId": "string"
    }
  ],
  "attachments": [
    {
      "deleted": true,
      "deletedOn": "2019-08-24T14:15:22Z",
      "deletedBy": "string",
      "createdOn": "2019-08-24T14:15:22Z",
      "modifiedOn": "2019-08-24T14:15:22Z",
      "createdBy": "string",
      "modifiedBy": "string",
      "id": "string",
      "name": "string",
      "path": "string",
      "thumbnail": "string",
      "mime": "string",
      "extId": "string",
      "extMetadata": {},
      "messageId": "string"
    }
  ],
  "meta": [
    {
      "deleted": true,
      "deletedOn": "2019-08-24T14:15:22Z",
      "deletedBy": "string",
      "createdOn": "2019-08-24T14:15:22Z",
      "modifiedOn": "2019-08-24T14:15:22Z",
      "createdBy": "string",
      "modifiedBy": "string",
      "id": "string",
      "key": "string",
      "value": "string",
      "extId": "string",
      "extMetadata": {},
      "messageId": "string"
    }
  ],
  "body": "string",
  "subject": "string",
  "status": "string",
  "extId": "string",
  "extMetadata": {}
};
const headers = {
  'Content-Type':'application/json',
  'Accept':'application/json',
  'Authorization':'Bearer {access-token}'
};

fetch('/mails/{messageId}',
{
  method: 'PUT',
  body: JSON.stringify(inputBody),
  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

PUT /mails/{messageId}

Permissions
UpdateMail
2

Body parameter

{
  "threadId": "string",
  "groups": [
    {
      "deleted": true,
      "deletedOn": "2019-08-24T14:15:22Z",
      "deletedBy": "string",
      "createdOn": "2019-08-24T14:15:22Z",
      "modifiedOn": "2019-08-24T14:15:22Z",
      "createdBy": "string",
      "modifiedBy": "string",
      "id": "string",
      "party": "string",
      "type": "from",
      "isImportant": true,
      "storage": "draft",
      "visibility": "read",
      "extId": "string",
      "extMetadata": {},
      "messageId": "string",
      "threadId": "string"
    }
  ],
  "attachments": [
    {
      "deleted": true,
      "deletedOn": "2019-08-24T14:15:22Z",
      "deletedBy": "string",
      "createdOn": "2019-08-24T14:15:22Z",
      "modifiedOn": "2019-08-24T14:15:22Z",
      "createdBy": "string",
      "modifiedBy": "string",
      "id": "string",
      "name": "string",
      "path": "string",
      "thumbnail": "string",
      "mime": "string",
      "extId": "string",
      "extMetadata": {},
      "messageId": "string"
    }
  ],
  "meta": [
    {
      "deleted": true,
      "deletedOn": "2019-08-24T14:15:22Z",
      "deletedBy": "string",
      "createdOn": "2019-08-24T14:15:22Z",
      "modifiedOn": "2019-08-24T14:15:22Z",
      "createdBy": "string",
      "modifiedBy": "string",
      "id": "string",
      "key": "string",
      "value": "string",
      "extId": "string",
      "extMetadata": {},
      "messageId": "string"
    }
  ],
  "body": "string",
  "subject": "string",
  "status": "string",
  "extId": "string",
  "extMetadata": {}
}

Parameters

Name In Type Required Description
messageId path string true none
body body composeMailBody false none

Example responses

Responses

Status Meaning Description Schema
400 Bad Request Message identity does not exist. None
403 Forbidden Forbidden request due to unauthorized token in header. None
application/json Unknown collect single message for user by message identifier None

Response Schema

To perform this operation, you must be authenticated by means of one of the following methods: HTTPBearer

ComposeAPI. For drafting, reply on and create new message

Code samples

const inputBody = '{
  "threadId": "string",
  "groups": [
    {
      "deleted": true,
      "deletedOn": "2019-08-24T14:15:22Z",
      "deletedBy": "string",
      "createdOn": "2019-08-24T14:15:22Z",
      "modifiedOn": "2019-08-24T14:15:22Z",
      "createdBy": "string",
      "modifiedBy": "string",
      "id": "string",
      "party": "string",
      "type": "from",
      "isImportant": true,
      "storage": "draft",
      "visibility": "read",
      "extId": "string",
      "extMetadata": {},
      "messageId": "string",
      "threadId": "string"
    }
  ],
  "attachments": [
    {
      "deleted": true,
      "deletedOn": "2019-08-24T14:15:22Z",
      "deletedBy": "string",
      "createdOn": "2019-08-24T14:15:22Z",
      "modifiedOn": "2019-08-24T14:15:22Z",
      "createdBy": "string",
      "modifiedBy": "string",
      "id": "string",
      "name": "string",
      "path": "string",
      "thumbnail": "string",
      "mime": "string",
      "extId": "string",
      "extMetadata": {},
      "messageId": "string"
    }
  ],
  "meta": [
    {
      "deleted": true,
      "deletedOn": "2019-08-24T14:15:22Z",
      "deletedBy": "string",
      "createdOn": "2019-08-24T14:15:22Z",
      "modifiedOn": "2019-08-24T14:15:22Z",
      "createdBy": "string",
      "modifiedBy": "string",
      "id": "string",
      "key": "string",
      "value": "string",
      "extId": "string",
      "extMetadata": {},
      "messageId": "string"
    }
  ],
  "body": "string",
  "subject": "string",
  "status": "string",
  "extId": "string",
  "extMetadata": {}
}';
const headers = {
  'Content-Type':'application/json',
  'Accept':'application/json',
  'Authorization':'Bearer {access-token}'
};

fetch('/mails',
{
  method: 'POST',
  body: inputBody,
  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});
const fetch = require('node-fetch');
const inputBody = {
  "threadId": "string",
  "groups": [
    {
      "deleted": true,
      "deletedOn": "2019-08-24T14:15:22Z",
      "deletedBy": "string",
      "createdOn": "2019-08-24T14:15:22Z",
      "modifiedOn": "2019-08-24T14:15:22Z",
      "createdBy": "string",
      "modifiedBy": "string",
      "id": "string",
      "party": "string",
      "type": "from",
      "isImportant": true,
      "storage": "draft",
      "visibility": "read",
      "extId": "string",
      "extMetadata": {},
      "messageId": "string",
      "threadId": "string"
    }
  ],
  "attachments": [
    {
      "deleted": true,
      "deletedOn": "2019-08-24T14:15:22Z",
      "deletedBy": "string",
      "createdOn": "2019-08-24T14:15:22Z",
      "modifiedOn": "2019-08-24T14:15:22Z",
      "createdBy": "string",
      "modifiedBy": "string",
      "id": "string",
      "name": "string",
      "path": "string",
      "thumbnail": "string",
      "mime": "string",
      "extId": "string",
      "extMetadata": {},
      "messageId": "string"
    }
  ],
  "meta": [
    {
      "deleted": true,
      "deletedOn": "2019-08-24T14:15:22Z",
      "deletedBy": "string",
      "createdOn": "2019-08-24T14:15:22Z",
      "modifiedOn": "2019-08-24T14:15:22Z",
      "createdBy": "string",
      "modifiedBy": "string",
      "id": "string",
      "key": "string",
      "value": "string",
      "extId": "string",
      "extMetadata": {},
      "messageId": "string"
    }
  ],
  "body": "string",
  "subject": "string",
  "status": "string",
  "extId": "string",
  "extMetadata": {}
};
const headers = {
  'Content-Type':'application/json',
  'Accept':'application/json',
  'Authorization':'Bearer {access-token}'
};

fetch('/mails',
{
  method: 'POST',
  body: JSON.stringify(inputBody),
  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

POST /mails

Permissions
ComposeMail
1

Body parameter

{
  "threadId": "string",
  "groups": [
    {
      "deleted": true,
      "deletedOn": "2019-08-24T14:15:22Z",
      "deletedBy": "string",
      "createdOn": "2019-08-24T14:15:22Z",
      "modifiedOn": "2019-08-24T14:15:22Z",
      "createdBy": "string",
      "modifiedBy": "string",
      "id": "string",
      "party": "string",
      "type": "from",
      "isImportant": true,
      "storage": "draft",
      "visibility": "read",
      "extId": "string",
      "extMetadata": {},
      "messageId": "string",
      "threadId": "string"
    }
  ],
  "attachments": [
    {
      "deleted": true,
      "deletedOn": "2019-08-24T14:15:22Z",
      "deletedBy": "string",
      "createdOn": "2019-08-24T14:15:22Z",
      "modifiedOn": "2019-08-24T14:15:22Z",
      "createdBy": "string",
      "modifiedBy": "string",
      "id": "string",
      "name": "string",
      "path": "string",
      "thumbnail": "string",
      "mime": "string",
      "extId": "string",
      "extMetadata": {},
      "messageId": "string"
    }
  ],
  "meta": [
    {
      "deleted": true,
      "deletedOn": "2019-08-24T14:15:22Z",
      "deletedBy": "string",
      "createdOn": "2019-08-24T14:15:22Z",
      "modifiedOn": "2019-08-24T14:15:22Z",
      "createdBy": "string",
      "modifiedBy": "string",
      "id": "string",
      "key": "string",
      "value": "string",
      "extId": "string",
      "extMetadata": {},
      "messageId": "string"
    }
  ],
  "body": "string",
  "subject": "string",
  "status": "string",
  "extId": "string",
  "extMetadata": {}
}

Parameters

Name In Type Required Description
body body composeMailBody false none

Example responses

Responses

Status Meaning Description Schema
201 Created collect single message for user by message identifier None
403 Forbidden Forbidden request due to unauthorized token in header. None
404 Not Found Message identity does not exist. None

Response Schema

To perform this operation, you must be authenticated by means of one of the following methods: HTTPBearer

CollectorController

GET Message API. Collect a single message based on message identity.

Code samples

const headers = {
  'Accept':'application/json',
  'Authorization':'Bearer {access-token}'
};

fetch('/mails/{messageId}',
{
  method: 'GET',

  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});
const fetch = require('node-fetch');

const headers = {
  'Accept':'application/json',
  'Authorization':'Bearer {access-token}'
};

fetch('/mails/{messageId}',
{
  method: 'GET',

  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

GET /mails/{messageId}

Permissions
GetInMail
8

Parameters

Name In Type Required Description
messageId path string true none
filter query object false none

Example responses

200 Response

{
  "item": "string"
}

Responses

Status Meaning Description Schema
200 OK Gets mail details based on unique message id Inline
403 Forbidden Forbidden request due to unauthrized token in header. None
404 Not Found Message identity does not exist None

Response Schema

Status Code 200

Name Type Required Restrictions Description
» item string false none none
To perform this operation, you must be authenticated by means of one of the following methods: HTTPBearer

Collect a list of all messages.

Code samples

const headers = {
  'Accept':'application/json',
  'Authorization':'Bearer {access-token}'
};

fetch('/mails',
{
  method: 'GET',

  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});
const fetch = require('node-fetch');

const headers = {
  'Accept':'application/json',
  'Authorization':'Bearer {access-token}'
};

fetch('/mails',
{
  method: 'GET',

  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

GET /mails

Permissions
GetInMails
7

Parameters

Name In Type Required Description
messageFilter query object false none
groupFilter query object false none

Example responses

Responses

Status Meaning Description Schema
200 OK fetch mails None
403 Forbidden Forbidden request due to unauthrized token in header. None

Response Schema

To perform this operation, you must be authenticated by means of one of the following methods: HTTPBearer

GET Thread Message API. Collect complete single message thread based on thread identity.

Code samples

const headers = {
  'Accept':'application/json',
  'Authorization':'Bearer {access-token}'
};

fetch('/threads/{threadId}',
{
  method: 'GET',

  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});
const fetch = require('node-fetch');

const headers = {
  'Accept':'application/json',
  'Authorization':'Bearer {access-token}'
};

fetch('/threads/{threadId}',
{
  method: 'GET',

  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

GET /threads/{threadId}

Permissions
GetThread
6

Parameters

Name In Type Required Description
threadId path string true none
filter query object false none

Example responses

200 Response

{
  "item": {
    "deleted": true,
    "deletedOn": "2019-08-24T14:15:22Z",
    "deletedBy": "string",
    "createdOn": "2019-08-24T14:15:22Z",
    "modifiedOn": "2019-08-24T14:15:22Z",
    "createdBy": "string",
    "modifiedBy": "string",
    "id": "string",
    "subject": "string",
    "messageCounts": 0,
    "extId": "string",
    "extMetadata": {}
  }
}

Responses

Status Meaning Description Schema
200 OK Fetches a thread along with message, group, attachment(s) etc based on unique thread Id Inline
400 Bad Request Message identity does not exist None
403 Forbidden Forbidden request due to unauthorized token in header. None

Response Schema

Status Code 200

Name Type Required Restrictions Description
» item Thread false none none
»» deleted boolean false none none
»» deletedOn string(date-time)¦null false none none
»» deletedBy string¦null false none none
»» createdOn string(date-time) false none none
»» modifiedOn string(date-time) false none none
»» createdBy string false none none
»» modifiedBy string false none none
»» id string false none none
»» subject string true none none
»» messageCounts number false none none
»» extId string false none none
»» extMetadata object false none none
To perform this operation, you must be authenticated by means of one of the following methods: HTTPBearer

Thread List API. Collect a list of all threads.

Code samples

const headers = {
  'Accept':'application/json',
  'Authorization':'Bearer {access-token}'
};

fetch('/threads',
{
  method: 'GET',

  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});
const fetch = require('node-fetch');

const headers = {
  'Accept':'application/json',
  'Authorization':'Bearer {access-token}'
};

fetch('/threads',
{
  method: 'GET',

  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

GET /threads

Permissions
GetThread
6

Parameters

Name In Type Required Description
threadFilter query object false none
groupFilter query object false none

Example responses

200 Response

{
  "version": "string",
  "items": [
    {
      "deleted": true,
      "deletedOn": "2019-08-24T14:15:22Z",
      "deletedBy": "string",
      "createdOn": "2019-08-24T14:15:22Z",
      "modifiedOn": "2019-08-24T14:15:22Z",
      "createdBy": "string",
      "modifiedBy": "string",
      "id": "string",
      "subject": "string",
      "messageCounts": 0,
      "extId": "string",
      "extMetadata": {}
    }
  ]
}

Responses

Status Meaning Description Schema
200 OK fetch threads Inline

Response Schema

Status Code 200

Name Type Required Restrictions Description
» version string false none none
» items [Thread] false none none
»» Thread Thread false none none
»»» deleted boolean false none none
»»» deletedOn string(date-time)¦null false none none
»»» deletedBy string¦null false none none
»»» createdOn string(date-time) false none none
»»» modifiedOn string(date-time) false none none
»»» createdBy string false none none
»»» modifiedBy string false none none
»»» id string false none none
»»» subject string true none none
»»» messageCounts number false none none
»»» extId string false none none
»»» extMetadata object false none none
To perform this operation, you must be authenticated by means of one of the following methods: HTTPBearer

ReplyAndForwardController

API provides interface to forward single message.

Code samples

const inputBody = '{
  "groups": [
    {
      "deleted": true,
      "deletedOn": "2019-08-24T14:15:22Z",
      "deletedBy": "string",
      "createdOn": "2019-08-24T14:15:22Z",
      "modifiedOn": "2019-08-24T14:15:22Z",
      "createdBy": "string",
      "modifiedBy": "string",
      "id": "string",
      "party": "string",
      "type": "from",
      "isImportant": true,
      "storage": "draft",
      "visibility": "read",
      "extId": "string",
      "extMetadata": {},
      "messageId": "string",
      "threadId": "string"
    }
  ],
  "subject": "string",
  "body": "string",
  "attachments": [
    {
      "deleted": true,
      "deletedOn": "2019-08-24T14:15:22Z",
      "deletedBy": "string",
      "createdOn": "2019-08-24T14:15:22Z",
      "modifiedOn": "2019-08-24T14:15:22Z",
      "createdBy": "string",
      "modifiedBy": "string",
      "id": "string",
      "name": "string",
      "path": "string",
      "thumbnail": "string",
      "mime": "string",
      "extId": "string",
      "extMetadata": {},
      "messageId": "string"
    }
  ],
  "meta": [
    {
      "deleted": true,
      "deletedOn": "2019-08-24T14:15:22Z",
      "deletedBy": "string",
      "createdOn": "2019-08-24T14:15:22Z",
      "modifiedOn": "2019-08-24T14:15:22Z",
      "createdBy": "string",
      "modifiedBy": "string",
      "id": "string",
      "key": "string",
      "value": "string",
      "extId": "string",
      "extMetadata": {},
      "messageId": "string"
    }
  ],
  "status": "string"
}';
const headers = {
  'Content-Type':'application/json',
  'Accept':'application/json',
  'Authorization':'Bearer {access-token}'
};

fetch('/threads/{threadId}/forward',
{
  method: 'PATCH',
  body: inputBody,
  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});
const fetch = require('node-fetch');
const inputBody = {
  "groups": [
    {
      "deleted": true,
      "deletedOn": "2019-08-24T14:15:22Z",
      "deletedBy": "string",
      "createdOn": "2019-08-24T14:15:22Z",
      "modifiedOn": "2019-08-24T14:15:22Z",
      "createdBy": "string",
      "modifiedBy": "string",
      "id": "string",
      "party": "string",
      "type": "from",
      "isImportant": true,
      "storage": "draft",
      "visibility": "read",
      "extId": "string",
      "extMetadata": {},
      "messageId": "string",
      "threadId": "string"
    }
  ],
  "subject": "string",
  "body": "string",
  "attachments": [
    {
      "deleted": true,
      "deletedOn": "2019-08-24T14:15:22Z",
      "deletedBy": "string",
      "createdOn": "2019-08-24T14:15:22Z",
      "modifiedOn": "2019-08-24T14:15:22Z",
      "createdBy": "string",
      "modifiedBy": "string",
      "id": "string",
      "name": "string",
      "path": "string",
      "thumbnail": "string",
      "mime": "string",
      "extId": "string",
      "extMetadata": {},
      "messageId": "string"
    }
  ],
  "meta": [
    {
      "deleted": true,
      "deletedOn": "2019-08-24T14:15:22Z",
      "deletedBy": "string",
      "createdOn": "2019-08-24T14:15:22Z",
      "modifiedOn": "2019-08-24T14:15:22Z",
      "createdBy": "string",
      "modifiedBy": "string",
      "id": "string",
      "key": "string",
      "value": "string",
      "extId": "string",
      "extMetadata": {},
      "messageId": "string"
    }
  ],
  "status": "string"
};
const headers = {
  'Content-Type':'application/json',
  'Accept':'application/json',
  'Authorization':'Bearer {access-token}'
};

fetch('/threads/{threadId}/forward',
{
  method: 'PATCH',
  body: JSON.stringify(inputBody),
  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

PATCH /threads/{threadId}/forward

Permissions
ComposeMail
1

Body parameter

{
  "groups": [
    {
      "deleted": true,
      "deletedOn": "2019-08-24T14:15:22Z",
      "deletedBy": "string",
      "createdOn": "2019-08-24T14:15:22Z",
      "modifiedOn": "2019-08-24T14:15:22Z",
      "createdBy": "string",
      "modifiedBy": "string",
      "id": "string",
      "party": "string",
      "type": "from",
      "isImportant": true,
      "storage": "draft",
      "visibility": "read",
      "extId": "string",
      "extMetadata": {},
      "messageId": "string",
      "threadId": "string"
    }
  ],
  "subject": "string",
  "body": "string",
  "attachments": [
    {
      "deleted": true,
      "deletedOn": "2019-08-24T14:15:22Z",
      "deletedBy": "string",
      "createdOn": "2019-08-24T14:15:22Z",
      "modifiedOn": "2019-08-24T14:15:22Z",
      "createdBy": "string",
      "modifiedBy": "string",
      "id": "string",
      "name": "string",
      "path": "string",
      "thumbnail": "string",
      "mime": "string",
      "extId": "string",
      "extMetadata": {},
      "messageId": "string"
    }
  ],
  "meta": [
    {
      "deleted": true,
      "deletedOn": "2019-08-24T14:15:22Z",
      "deletedBy": "string",
      "createdOn": "2019-08-24T14:15:22Z",
      "modifiedOn": "2019-08-24T14:15:22Z",
      "createdBy": "string",
      "modifiedBy": "string",
      "id": "string",
      "key": "string",
      "value": "string",
      "extId": "string",
      "extMetadata": {},
      "messageId": "string"
    }
  ],
  "status": "string"
}

Parameters

Name In Type Required Description
threadId path string true none
body body object false none
» groups body [GroupPartial] true [(tsType: Partial, schemaOptions: { partial: true })]
»» GroupPartial body GroupPartial false (tsType: Partial, schemaOptions: { partial: true })
»»» deleted body boolean false none
»»» deletedOn body string(date-time)¦null false none
»»» deletedBy body string¦null false none
»»» createdOn body string(date-time) false none
»»» modifiedOn body string(date-time) false none
»»» createdBy body string false none
»»» modifiedBy body string false none
»»» id body string false none
»»» party body string false none
»»» type body string false none
»»» isImportant body boolean false none
»»» storage body string false none
»»» visibility body string false none
»»» extId body string false none
»»» extMetadata body object false none
»»» messageId body string false none
»»» threadId body string false none
» subject body string false none
» body body string false none
» attachments body [AttachmentPartial] false [(tsType: Partial, schemaOptions: { partial: true })]
»» AttachmentPartial body AttachmentPartial false (tsType: Partial, schemaOptions: { partial: true })
»»» deleted body boolean false none
»»» deletedOn body string(date-time)¦null false none
»»» deletedBy body string¦null false none
»»» createdOn body string(date-time) false none
»»» modifiedOn body string(date-time) false none
»»» createdBy body string false none
»»» modifiedBy body string false none
»»» id body string false none
»»» name body string false none
»»» path body string false none
»»» thumbnail body string false none
»»» mime body string false none
»»» extId body string false none
»»» extMetadata body object false none
»»» messageId body string false none
» meta body [MetaPartial] false [(tsType: Partial, schemaOptions: { partial: true })]
»» MetaPartial body MetaPartial false (tsType: Partial, schemaOptions: { partial: true })
»»» deleted body boolean false none
»»» deletedOn body string(date-time)¦null false none
»»» deletedBy body string¦null false none
»»» createdOn body string(date-time) false none
»»» modifiedOn body string(date-time) false none
»»» createdBy body string false none
»»» modifiedBy body string false none
»»» id body string false none
»»» key body string false none
»»» value body string false none
»»» extId body string false none
»»» extMetadata body object false none
»»» messageId body string false none
» status body string false none

Enumerated Values

Parameter Value
»»» type from
»»» type to
»»» type cc
»»» type bcc
»»» storage draft
»»» storage send
»»» storage inbox
»»» storage trash
»»» visibility read
»»» visibility new
»»» visibility unread
»»» visibility important
»»» visibility not-important

Example responses

Responses

Status Meaning Description Schema
204 No Content Message is forwarded to another recipient None
400 Bad Request Message identity does not exist. None
403 Forbidden Forbidden request due to unauthorized token in header. None

Response Schema

To perform this operation, you must be authenticated by means of one of the following methods: HTTPBearer

API provides interface to reply to a single message

Code samples

const inputBody = '{
  "attachments": [
    {
      "deleted": true,
      "deletedOn": "2019-08-24T14:15:22Z",
      "deletedBy": "string",
      "createdOn": "2019-08-24T14:15:22Z",
      "modifiedOn": "2019-08-24T14:15:22Z",
      "createdBy": "string",
      "modifiedBy": "string",
      "id": "string",
      "name": "string",
      "path": "string",
      "thumbnail": "string",
      "mime": "string",
      "extId": "string",
      "extMetadata": {},
      "messageId": "string"
    }
  ],
  "meta": [
    {
      "deleted": true,
      "deletedOn": "2019-08-24T14:15:22Z",
      "deletedBy": "string",
      "createdOn": "2019-08-24T14:15:22Z",
      "modifiedOn": "2019-08-24T14:15:22Z",
      "createdBy": "string",
      "modifiedBy": "string",
      "id": "string",
      "key": "string",
      "value": "string",
      "extId": "string",
      "extMetadata": {},
      "messageId": "string"
    }
  ],
  "body": "string",
  "subject": "string",
  "status": "string",
  "extId": "string"
}';
const headers = {
  'Content-Type':'application/json',
  'Authorization':'Bearer {access-token}'
};

fetch('/threads/{threadId}/mails/{messageId}/replies',
{
  method: 'PATCH',
  body: inputBody,
  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});
const fetch = require('node-fetch');
const inputBody = {
  "attachments": [
    {
      "deleted": true,
      "deletedOn": "2019-08-24T14:15:22Z",
      "deletedBy": "string",
      "createdOn": "2019-08-24T14:15:22Z",
      "modifiedOn": "2019-08-24T14:15:22Z",
      "createdBy": "string",
      "modifiedBy": "string",
      "id": "string",
      "name": "string",
      "path": "string",
      "thumbnail": "string",
      "mime": "string",
      "extId": "string",
      "extMetadata": {},
      "messageId": "string"
    }
  ],
  "meta": [
    {
      "deleted": true,
      "deletedOn": "2019-08-24T14:15:22Z",
      "deletedBy": "string",
      "createdOn": "2019-08-24T14:15:22Z",
      "modifiedOn": "2019-08-24T14:15:22Z",
      "createdBy": "string",
      "modifiedBy": "string",
      "id": "string",
      "key": "string",
      "value": "string",
      "extId": "string",
      "extMetadata": {},
      "messageId": "string"
    }
  ],
  "body": "string",
  "subject": "string",
  "status": "string",
  "extId": "string"
};
const headers = {
  'Content-Type':'application/json',
  'Authorization':'Bearer {access-token}'
};

fetch('/threads/{threadId}/mails/{messageId}/replies',
{
  method: 'PATCH',
  body: JSON.stringify(inputBody),
  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

PATCH /threads/{threadId}/mails/{messageId}/replies

Permissions
ReplyMail
3

Body parameter

{
  "attachments": [
    {
      "deleted": true,
      "deletedOn": "2019-08-24T14:15:22Z",
      "deletedBy": "string",
      "createdOn": "2019-08-24T14:15:22Z",
      "modifiedOn": "2019-08-24T14:15:22Z",
      "createdBy": "string",
      "modifiedBy": "string",
      "id": "string",
      "name": "string",
      "path": "string",
      "thumbnail": "string",
      "mime": "string",
      "extId": "string",
      "extMetadata": {},
      "messageId": "string"
    }
  ],
  "meta": [
    {
      "deleted": true,
      "deletedOn": "2019-08-24T14:15:22Z",
      "deletedBy": "string",
      "createdOn": "2019-08-24T14:15:22Z",
      "modifiedOn": "2019-08-24T14:15:22Z",
      "createdBy": "string",
      "modifiedBy": "string",
      "id": "string",
      "key": "string",
      "value": "string",
      "extId": "string",
      "extMetadata": {},
      "messageId": "string"
    }
  ],
  "body": "string",
  "subject": "string",
  "status": "string",
  "extId": "string"
}

Parameters

Name In Type Required Description
threadId path string true none
messageId path string true none
replyAll query boolean false none
body body object false none
» attachments body [AttachmentPartial] false [(tsType: Partial, schemaOptions: { partial: true })]
»» AttachmentPartial body AttachmentPartial false (tsType: Partial, schemaOptions: { partial: true })
»»» deleted body boolean false none
»»» deletedOn body string(date-time)¦null false none
»»» deletedBy body string¦null false none
»»» createdOn body string(date-time) false none
»»» modifiedOn body string(date-time) false none
»»» createdBy body string false none
»»» modifiedBy body string false none
»»» id body string false none
»»» name body string false none
»»» path body string false none
»»» thumbnail body string false none
»»» mime body string false none
»»» extId body string false none
»»» extMetadata body object false none
»»» messageId body string false none
» meta body [MetaPartial] false [(tsType: Partial, schemaOptions: { partial: true })]
»» MetaPartial body MetaPartial false (tsType: Partial, schemaOptions: { partial: true })
»»» deleted body boolean false none
»»» deletedOn body string(date-time)¦null false none
»»» deletedBy body string¦null false none
»»» createdOn body string(date-time) false none
»»» modifiedOn body string(date-time) false none
»»» createdBy body string false none
»»» modifiedBy body string false none
»»» id body string false none
»»» key body string false none
»»» value body string false none
»»» extId body string false none
»»» extMetadata body object false none
»»» messageId body string false none
» body body string true none
» subject body string false none
» status body string true none
» extId body string false none

Responses

Status Meaning Description Schema
200 OK Message is replied back to the sender None
To perform this operation, you must be authenticated by means of one of the following methods: HTTPBearer

Schemas

idResponse

false

Properties

None

composeMailBody

{
  "threadId": "string",
  "groups": [
    {
      "deleted": true,
      "deletedOn": "2019-08-24T14:15:22Z",
      "deletedBy": "string",
      "createdOn": "2019-08-24T14:15:22Z",
      "modifiedOn": "2019-08-24T14:15:22Z",
      "createdBy": "string",
      "modifiedBy": "string",
      "id": "string",
      "party": "string",
      "type": "from",
      "isImportant": true,
      "storage": "draft",
      "visibility": "read",
      "extId": "string",
      "extMetadata": {},
      "messageId": "string",
      "threadId": "string"
    }
  ],
  "attachments": [
    {
      "deleted": true,
      "deletedOn": "2019-08-24T14:15:22Z",
      "deletedBy": "string",
      "createdOn": "2019-08-24T14:15:22Z",
      "modifiedOn": "2019-08-24T14:15:22Z",
      "createdBy": "string",
      "modifiedBy": "string",
      "id": "string",
      "name": "string",
      "path": "string",
      "thumbnail": "string",
      "mime": "string",
      "extId": "string",
      "extMetadata": {},
      "messageId": "string"
    }
  ],
  "meta": [
    {
      "deleted": true,
      "deletedOn": "2019-08-24T14:15:22Z",
      "deletedBy": "string",
      "createdOn": "2019-08-24T14:15:22Z",
      "modifiedOn": "2019-08-24T14:15:22Z",
      "createdBy": "string",
      "modifiedBy": "string",
      "id": "string",
      "key": "string",
      "value": "string",
      "extId": "string",
      "extMetadata": {},
      "messageId": "string"
    }
  ],
  "body": "string",
  "subject": "string",
  "status": "string",
  "extId": "string",
  "extMetadata": {}
}

Properties

Name Type Required Restrictions Description
threadId string false none none
groups [GroupPartial] true none [(tsType: Partial, schemaOptions: { partial: true })]
attachments [AttachmentPartial] false none [(tsType: Partial, schemaOptions: { partial: true })]
meta [MetaPartial] false none [(tsType: Partial, schemaOptions: { partial: true })]
body string true none none
subject string false none none
status string true none none
extId string false none none
extMetadata object false none none

Attachment

{
  "deleted": true,
  "deletedOn": "2019-08-24T14:15:22Z",
  "deletedBy": "string",
  "createdOn": "2019-08-24T14:15:22Z",
  "modifiedOn": "2019-08-24T14:15:22Z",
  "createdBy": "string",
  "modifiedBy": "string",
  "id": "string",
  "name": "string",
  "path": "string",
  "thumbnail": "string",
  "mime": "string",
  "extId": "string",
  "extMetadata": {},
  "messageId": "string"
}

Attachment

Properties

Name Type Required Restrictions Description
deleted boolean false none none
deletedOn string(date-time)¦null false none none
deletedBy string¦null false none none
createdOn string(date-time) false none none
modifiedOn string(date-time) false none none
createdBy string false none none
modifiedBy string false none none
id string false none none
name string true none none
path string true none none
thumbnail string true none none
mime string true none none
extId string false none none
extMetadata object false none none
messageId string false none none

AttachmentPartial

{
  "deleted": true,
  "deletedOn": "2019-08-24T14:15:22Z",
  "deletedBy": "string",
  "createdOn": "2019-08-24T14:15:22Z",
  "modifiedOn": "2019-08-24T14:15:22Z",
  "createdBy": "string",
  "modifiedBy": "string",
  "id": "string",
  "name": "string",
  "path": "string",
  "thumbnail": "string",
  "mime": "string",
  "extId": "string",
  "extMetadata": {},
  "messageId": "string"
}

AttachmentPartial

Properties

Name Type Required Restrictions Description
deleted boolean false none none
deletedOn string(date-time)¦null false none none
deletedBy string¦null false none none
createdOn string(date-time) false none none
modifiedOn string(date-time) false none none
createdBy string false none none
modifiedBy string false none none
id string false none none
name string false none none
path string false none none
thumbnail string false none none
mime string false none none
extId string false none none
extMetadata object false none none
messageId string false none none

IdArraysPartial

{
  "messageIds": [
    "string"
  ],
  "threadIds": [
    "string"
  ]
}

IdArraysPartial

Properties

Name Type Required Restrictions Description
messageIds [string] false none none
threadIds [string] false none none

IdArrays

{
  "messageIds": [
    "string"
  ],
  "threadIds": [
    "string"
  ]
}

IdArrays

Properties

Name Type Required Restrictions Description
messageIds [string] false none none
threadIds [string] false none none

MetaPartial

{
  "deleted": true,
  "deletedOn": "2019-08-24T14:15:22Z",
  "deletedBy": "string",
  "createdOn": "2019-08-24T14:15:22Z",
  "modifiedOn": "2019-08-24T14:15:22Z",
  "createdBy": "string",
  "modifiedBy": "string",
  "id": "string",
  "key": "string",
  "value": "string",
  "extId": "string",
  "extMetadata": {},
  "messageId": "string"
}

MetaPartial

Properties

Name Type Required Restrictions Description
deleted boolean false none none
deletedOn string(date-time)¦null false none none
deletedBy string¦null false none none
createdOn string(date-time) false none none
modifiedOn string(date-time) false none none
createdBy string false none none
modifiedBy string false none none
id string false none none
key string false none none
value string false none none
extId string false none none
extMetadata object false none none
messageId string false none none

GroupPartial

{
  "deleted": true,
  "deletedOn": "2019-08-24T14:15:22Z",
  "deletedBy": "string",
  "createdOn": "2019-08-24T14:15:22Z",
  "modifiedOn": "2019-08-24T14:15:22Z",
  "createdBy": "string",
  "modifiedBy": "string",
  "id": "string",
  "party": "string",
  "type": "from",
  "isImportant": true,
  "storage": "draft",
  "visibility": "read",
  "extId": "string",
  "extMetadata": {},
  "messageId": "string",
  "threadId": "string"
}

GroupPartial

Properties

Name Type Required Restrictions Description
deleted boolean false none none
deletedOn string(date-time)¦null false none none
deletedBy string¦null false none none
createdOn string(date-time) false none none
modifiedOn string(date-time) false none none
createdBy string false none none
modifiedBy string false none none
id string false none none
party string false none none
type string false none none
isImportant boolean false none none
storage string false none none
visibility string false none none
extId string false none none
extMetadata object false none none
messageId string false none none
threadId string false none none

Enumerated Values

Property Value
type from
type to
type cc
type bcc
storage draft
storage send
storage inbox
storage trash
visibility read
visibility new
visibility unread
visibility important
visibility not-important

Attachment add response schema

{
  "items": [
    {
      "deleted": true,
      "deletedOn": "2019-08-24T14:15:22Z",
      "deletedBy": "string",
      "createdOn": "2019-08-24T14:15:22Z",
      "modifiedOn": "2019-08-24T14:15:22Z",
      "createdBy": "string",
      "modifiedBy": "string",
      "id": "string",
      "name": "string",
      "path": "string",
      "thumbnail": "string",
      "mime": "string",
      "extId": "string",
      "extMetadata": {},
      "messageId": "string"
    }
  ]
}

Attachment add response schema

Properties

Name Type Required Restrictions Description
items [Attachment] false none none

AttachmentExcluding_deleted_WithRelations

{
  "deletedOn": "2019-08-24T14:15:22Z",
  "deletedBy": "string",
  "createdOn": "2019-08-24T14:15:22Z",
  "modifiedOn": "2019-08-24T14:15:22Z",
  "createdBy": "string",
  "modifiedBy": "string",
  "id": "string",
  "name": "string",
  "path": "string",
  "thumbnail": "string",
  "mime": "string",
  "extId": "string",
  "extMetadata": {},
  "messageId": "string",
  "message": {
    "deletedOn": "2019-08-24T14:15:22Z",
    "deletedBy": "string",
    "createdOn": "2019-08-24T14:15:22Z",
    "modifiedOn": "2019-08-24T14:15:22Z",
    "createdBy": "string",
    "modifiedBy": "string",
    "id": "string",
    "sender": "string",
    "subject": "string",
    "body": "string",
    "status": "draft",
    "extId": "string",
    "extMetadata": {},
    "threadId": "string",
    "attachment": [
      {
        "deletedOn": "2019-08-24T14:15:22Z",
        "deletedBy": "string",
        "createdOn": "2019-08-24T14:15:22Z",
        "modifiedOn": "2019-08-24T14:15:22Z",
        "createdBy": "string",
        "modifiedBy": "string",
        "id": "string",
        "name": "string",
        "path": "string",
        "thumbnail": "string",
        "mime": "string",
        "extId": "string",
        "extMetadata": {},
        "messageId": "string",
        "message": {},
        "foreignKey": null
      }
    ],
    "foreignKey": null,
    "group": [
      {
        "deletedOn": "2019-08-24T14:15:22Z",
        "deletedBy": "string",
        "createdOn": "2019-08-24T14:15:22Z",
        "modifiedOn": "2019-08-24T14:15:22Z",
        "createdBy": "string",
        "modifiedBy": "string",
        "id": "string",
        "party": "string",
        "type": "from",
        "isImportant": true,
        "storage": "draft",
        "visibility": "read",
        "extId": "string",
        "extMetadata": {},
        "messageId": "string",
        "threadId": "string",
        "message": {},
        "foreignKey": null,
        "thread": {
          "deletedOn": "2019-08-24T14:15:22Z",
          "deletedBy": "string",
          "createdOn": "2019-08-24T14:15:22Z",
          "modifiedOn": "2019-08-24T14:15:22Z",
          "createdBy": "string",
          "modifiedBy": "string",
          "id": "string",
          "subject": "string",
          "messageCounts": 0,
          "extId": "string",
          "extMetadata": {},
          "message": [
            {}
          ],
          "foreignKey": null,
          "group": [
            {}
          ]
        }
      }
    ],
    "meta": [
      {
        "deletedOn": "2019-08-24T14:15:22Z",
        "deletedBy": "string",
        "createdOn": "2019-08-24T14:15:22Z",
        "modifiedOn": "2019-08-24T14:15:22Z",
        "createdBy": "string",
        "modifiedBy": "string",
        "id": "string",
        "key": "string",
        "value": "string",
        "extId": "string",
        "extMetadata": {},
        "messageId": "string",
        "message": {},
        "foreignKey": null
      }
    ],
    "thread": {
      "deletedOn": "2019-08-24T14:15:22Z",
      "deletedBy": "string",
      "createdOn": "2019-08-24T14:15:22Z",
      "modifiedOn": "2019-08-24T14:15:22Z",
      "createdBy": "string",
      "modifiedBy": "string",
      "id": "string",
      "subject": "string",
      "messageCounts": 0,
      "extId": "string",
      "extMetadata": {},
      "message": [
        {}
      ],
      "foreignKey": null,
      "group": [
        {
          "deletedOn": "2019-08-24T14:15:22Z",
          "deletedBy": "string",
          "createdOn": "2019-08-24T14:15:22Z",
          "modifiedOn": "2019-08-24T14:15:22Z",
          "createdBy": "string",
          "modifiedBy": "string",
          "id": "string",
          "party": "string",
          "type": "from",
          "isImportant": true,
          "storage": "draft",
          "visibility": "read",
          "extId": "string",
          "extMetadata": {},
          "messageId": "string",
          "threadId": "string",
          "message": {},
          "foreignKey": null,
          "thread": {}
        }
      ]
    }
  },
  "foreignKey": null
}

AttachmentExcluding_deleted_WithRelations

Properties

Name Type Required Restrictions Description
deletedOn string(date-time)¦null false none none
deletedBy string¦null false none none
createdOn string(date-time) false none none
modifiedOn string(date-time) false none none
createdBy string false none none
modifiedBy string false none none
id string false none none
name string true none none
path string true none none
thumbnail string true none none
mime string true none none
extId string false none none
extMetadata object false none none
messageId string false none none
message MessageExcluding_deleted_WithRelations false none (tsType: Omit<MessageWithRelations, 'deleted'>, schemaOptions: { exclude: [ 'deleted' ], includeRelations: true })
foreignKey any false none none

ThreadExcluding_deleted_WithRelations

{
  "deletedOn": "2019-08-24T14:15:22Z",
  "deletedBy": "string",
  "createdOn": "2019-08-24T14:15:22Z",
  "modifiedOn": "2019-08-24T14:15:22Z",
  "createdBy": "string",
  "modifiedBy": "string",
  "id": "string",
  "subject": "string",
  "messageCounts": 0,
  "extId": "string",
  "extMetadata": {},
  "message": [
    {
      "deletedOn": "2019-08-24T14:15:22Z",
      "deletedBy": "string",
      "createdOn": "2019-08-24T14:15:22Z",
      "modifiedOn": "2019-08-24T14:15:22Z",
      "createdBy": "string",
      "modifiedBy": "string",
      "id": "string",
      "sender": "string",
      "subject": "string",
      "body": "string",
      "status": "draft",
      "extId": "string",
      "extMetadata": {},
      "threadId": "string",
      "attachment": [
        {
          "deletedOn": "2019-08-24T14:15:22Z",
          "deletedBy": "string",
          "createdOn": "2019-08-24T14:15:22Z",
          "modifiedOn": "2019-08-24T14:15:22Z",
          "createdBy": "string",
          "modifiedBy": "string",
          "id": "string",
          "name": "string",
          "path": "string",
          "thumbnail": "string",
          "mime": "string",
          "extId": "string",
          "extMetadata": {},
          "messageId": "string",
          "message": {},
          "foreignKey": null
        }
      ],
      "foreignKey": null,
      "group": [
        {
          "deletedOn": "2019-08-24T14:15:22Z",
          "deletedBy": "string",
          "createdOn": "2019-08-24T14:15:22Z",
          "modifiedOn": "2019-08-24T14:15:22Z",
          "createdBy": "string",
          "modifiedBy": "string",
          "id": "string",
          "party": "string",
          "type": "from",
          "isImportant": true,
          "storage": "draft",
          "visibility": "read",
          "extId": "string",
          "extMetadata": {},
          "messageId": "string",
          "threadId": "string",
          "message": {},
          "foreignKey": null,
          "thread": {
            "deletedOn": "2019-08-24T14:15:22Z",
            "deletedBy": "string",
            "createdOn": "2019-08-24T14:15:22Z",
            "modifiedOn": "2019-08-24T14:15:22Z",
            "createdBy": "string",
            "modifiedBy": "string",
            "id": "string",
            "subject": "string",
            "messageCounts": 0,
            "extId": "string",
            "extMetadata": {},
            "message": [],
            "foreignKey": null,
            "group": [
              {}
            ]
          }
        }
      ],
      "meta": [
        {
          "deletedOn": "2019-08-24T14:15:22Z",
          "deletedBy": "string",
          "createdOn": "2019-08-24T14:15:22Z",
          "modifiedOn": "2019-08-24T14:15:22Z",
          "createdBy": "string",
          "modifiedBy": "string",
          "id": "string",
          "key": "string",
          "value": "string",
          "extId": "string",
          "extMetadata": {},
          "messageId": "string",
          "message": {},
          "foreignKey": null
        }
      ],
      "thread": {
        "deletedOn": "2019-08-24T14:15:22Z",
        "deletedBy": "string",
        "createdOn": "2019-08-24T14:15:22Z",
        "modifiedOn": "2019-08-24T14:15:22Z",
        "createdBy": "string",
        "modifiedBy": "string",
        "id": "string",
        "subject": "string",
        "messageCounts": 0,
        "extId": "string",
        "extMetadata": {},
        "message": [],
        "foreignKey": null,
        "group": [
          {
            "deletedOn": "2019-08-24T14:15:22Z",
            "deletedBy": "string",
            "createdOn": "2019-08-24T14:15:22Z",
            "modifiedOn": "2019-08-24T14:15:22Z",
            "createdBy": "string",
            "modifiedBy": "string",
            "id": "string",
            "party": "string",
            "type": "from",
            "isImportant": true,
            "storage": "draft",
            "visibility": "read",
            "extId": "string",
            "extMetadata": {},
            "messageId": "string",
            "threadId": "string",
            "message": {},
            "foreignKey": null,
            "thread": {}
          }
        ]
      }
    }
  ],
  "foreignKey": null,
  "group": [
    {
      "deletedOn": "2019-08-24T14:15:22Z",
      "deletedBy": "string",
      "createdOn": "2019-08-24T14:15:22Z",
      "modifiedOn": "2019-08-24T14:15:22Z",
      "createdBy": "string",
      "modifiedBy": "string",
      "id": "string",
      "party": "string",
      "type": "from",
      "isImportant": true,
      "storage": "draft",
      "visibility": "read",
      "extId": "string",
      "extMetadata": {},
      "messageId": "string",
      "threadId": "string",
      "message": {
        "deletedOn": "2019-08-24T14:15:22Z",
        "deletedBy": "string",
        "createdOn": "2019-08-24T14:15:22Z",
        "modifiedOn": "2019-08-24T14:15:22Z",
        "createdBy": "string",
        "modifiedBy": "string",
        "id": "string",
        "sender": "string",
        "subject": "string",
        "body": "string",
        "status": "draft",
        "extId": "string",
        "extMetadata": {},
        "threadId": "string",
        "attachment": [
          {
            "deletedOn": "2019-08-24T14:15:22Z",
            "deletedBy": "string",
            "createdOn": "2019-08-24T14:15:22Z",
            "modifiedOn": "2019-08-24T14:15:22Z",
            "createdBy": "string",
            "modifiedBy": "string",
            "id": "string",
            "name": "string",
            "path": "string",
            "thumbnail": "string",
            "mime": "string",
            "extId": "string",
            "extMetadata": {},
            "messageId": "string",
            "message": {},
            "foreignKey": null
          }
        ],
        "foreignKey": null,
        "group": [
          {}
        ],
        "meta": [
          {
            "deletedOn": "2019-08-24T14:15:22Z",
            "deletedBy": "string",
            "createdOn": "2019-08-24T14:15:22Z",
            "modifiedOn": "2019-08-24T14:15:22Z",
            "createdBy": "string",
            "modifiedBy": "string",
            "id": "string",
            "key": "string",
            "value": "string",
            "extId": "string",
            "extMetadata": {},
            "messageId": "string",
            "message": {},
            "foreignKey": null
          }
        ],
        "thread": {
          "deletedOn": "2019-08-24T14:15:22Z",
          "deletedBy": "string",
          "createdOn": "2019-08-24T14:15:22Z",
          "modifiedOn": "2019-08-24T14:15:22Z",
          "createdBy": "string",
          "modifiedBy": "string",
          "id": "string",
          "subject": "string",
          "messageCounts": 0,
          "extId": "string",
          "extMetadata": {},
          "message": [
            {}
          ],
          "foreignKey": null,
          "group": []
        }
      },
      "foreignKey": null,
      "thread": {
        "deletedOn": "2019-08-24T14:15:22Z",
        "deletedBy": "string",
        "createdOn": "2019-08-24T14:15:22Z",
        "modifiedOn": "2019-08-24T14:15:22Z",
        "createdBy": "string",
        "modifiedBy": "string",
        "id": "string",
        "subject": "string",
        "messageCounts": 0,
        "extId": "string",
        "extMetadata": {},
        "message": [
          {
            "deletedOn": "2019-08-24T14:15:22Z",
            "deletedBy": "string",
            "createdOn": "2019-08-24T14:15:22Z",
            "modifiedOn": "2019-08-24T14:15:22Z",
            "createdBy": "string",
            "modifiedBy": "string",
            "id": "string",
            "sender": "string",
            "subject": "string",
            "body": "string",
            "status": "draft",
            "extId": "string",
            "extMetadata": {},
            "threadId": "string",
            "attachment": [
              {
                "deletedOn": "2019-08-24T14:15:22Z",
                "deletedBy": "string",
                "createdOn": "2019-08-24T14:15:22Z",
                "modifiedOn": "2019-08-24T14:15:22Z",
                "createdBy": "string",
                "modifiedBy": "string",
                "id": "string",
                "name": "string",
                "path": "string",
                "thumbnail": "string",
                "mime": "string",
                "extId": "string",
                "extMetadata": {},
                "messageId": "string",
                "message": {},
                "foreignKey": null
              }
            ],
            "foreignKey": null,
            "group": [
              {}
            ],
            "meta": [
              {
                "deletedOn": "2019-08-24T14:15:22Z",
                "deletedBy": "string",
                "createdOn": "2019-08-24T14:15:22Z",
                "modifiedOn": "2019-08-24T14:15:22Z",
                "createdBy": "string",
                "modifiedBy": "string",
                "id": "string",
                "key": "string",
                "value": "string",
                "extId": "string",
                "extMetadata": {},
                "messageId": "string",
                "message": {},
                "foreignKey": null
              }
            ],
            "thread": {}
          }
        ],
        "foreignKey": null,
        "group": []
      }
    }
  ]
}

ThreadExcluding_deleted_WithRelations

Properties

Name Type Required Restrictions Description
deletedOn string(date-time)¦null false none none
deletedBy string¦null false none none
createdOn string(date-time) false none none
modifiedOn string(date-time) false none none
createdBy string false none none
modifiedBy string false none none
id string false none none
subject string true none none
messageCounts number false none none
extId string false none none
extMetadata object false none none
message [MessageExcluding_deleted_WithRelations] false none [(tsType: Omit<MessageWithRelations, 'deleted'>, schemaOptions: { exclude: [ 'deleted' ], includeRelations: true })]
foreignKey any false none none
group [GroupExcluding_deleted_WithRelations] false none [(tsType: Omit<GroupWithRelations, 'deleted'>, schemaOptions: { exclude: [ 'deleted' ], includeRelations: true })]

GroupExcluding_deleted_WithRelations

{
  "deletedOn": "2019-08-24T14:15:22Z",
  "deletedBy": "string",
  "createdOn": "2019-08-24T14:15:22Z",
  "modifiedOn": "2019-08-24T14:15:22Z",
  "createdBy": "string",
  "modifiedBy": "string",
  "id": "string",
  "party": "string",
  "type": "from",
  "isImportant": true,
  "storage": "draft",
  "visibility": "read",
  "extId": "string",
  "extMetadata": {},
  "messageId": "string",
  "threadId": "string",
  "message": {
    "deletedOn": "2019-08-24T14:15:22Z",
    "deletedBy": "string",
    "createdOn": "2019-08-24T14:15:22Z",
    "modifiedOn": "2019-08-24T14:15:22Z",
    "createdBy": "string",
    "modifiedBy": "string",
    "id": "string",
    "sender": "string",
    "subject": "string",
    "body": "string",
    "status": "draft",
    "extId": "string",
    "extMetadata": {},
    "threadId": "string",
    "attachment": [
      {
        "deletedOn": "2019-08-24T14:15:22Z",
        "deletedBy": "string",
        "createdOn": "2019-08-24T14:15:22Z",
        "modifiedOn": "2019-08-24T14:15:22Z",
        "createdBy": "string",
        "modifiedBy": "string",
        "id": "string",
        "name": "string",
        "path": "string",
        "thumbnail": "string",
        "mime": "string",
        "extId": "string",
        "extMetadata": {},
        "messageId": "string",
        "message": {},
        "foreignKey": null
      }
    ],
    "foreignKey": null,
    "group": [
      {
        "deletedOn": "2019-08-24T14:15:22Z",
        "deletedBy": "string",
        "createdOn": "2019-08-24T14:15:22Z",
        "modifiedOn": "2019-08-24T14:15:22Z",
        "createdBy": "string",
        "modifiedBy": "string",
        "id": "string",
        "party": "string",
        "type": "from",
        "isImportant": true,
        "storage": "draft",
        "visibility": "read",
        "extId": "string",
        "extMetadata": {},
        "messageId": "string",
        "threadId": "string",
        "message": {},
        "foreignKey": null,
        "thread": {
          "deletedOn": "2019-08-24T14:15:22Z",
          "deletedBy": "string",
          "createdOn": "2019-08-24T14:15:22Z",
          "modifiedOn": "2019-08-24T14:15:22Z",
          "createdBy": "string",
          "modifiedBy": "string",
          "id": "string",
          "subject": "string",
          "messageCounts": 0,
          "extId": "string",
          "extMetadata": {},
          "message": [
            {}
          ],
          "foreignKey": null,
          "group": [
            {}
          ]
        }
      }
    ],
    "meta": [
      {
        "deletedOn": "2019-08-24T14:15:22Z",
        "deletedBy": "string",
        "createdOn": "2019-08-24T14:15:22Z",
        "modifiedOn": "2019-08-24T14:15:22Z",
        "createdBy": "string",
        "modifiedBy": "string",
        "id": "string",
        "key": "string",
        "value": "string",
        "extId": "string",
        "extMetadata": {},
        "messageId": "string",
        "message": {},
        "foreignKey": null
      }
    ],
    "thread": {
      "deletedOn": "2019-08-24T14:15:22Z",
      "deletedBy": "string",
      "createdOn": "2019-08-24T14:15:22Z",
      "modifiedOn": "2019-08-24T14:15:22Z",
      "createdBy": "string",
      "modifiedBy": "string",
      "id": "string",
      "subject": "string",
      "messageCounts": 0,
      "extId": "string",
      "extMetadata": {},
      "message": [
        {}
      ],
      "foreignKey": null,
      "group": [
        {
          "deletedOn": "2019-08-24T14:15:22Z",
          "deletedBy": "string",
          "createdOn": "2019-08-24T14:15:22Z",
          "modifiedOn": "2019-08-24T14:15:22Z",
          "createdBy": "string",
          "modifiedBy": "string",
          "id": "string",
          "party": "string",
          "type": "from",
          "isImportant": true,
          "storage": "draft",
          "visibility": "read",
          "extId": "string",
          "extMetadata": {},
          "messageId": "string",
          "threadId": "string",
          "message": {},
          "foreignKey": null,
          "thread": {}
        }
      ]
    }
  },
  "foreignKey": null,
  "thread": {
    "deletedOn": "2019-08-24T14:15:22Z",
    "deletedBy": "string",
    "createdOn": "2019-08-24T14:15:22Z",
    "modifiedOn": "2019-08-24T14:15:22Z",
    "createdBy": "string",
    "modifiedBy": "string",
    "id": "string",
    "subject": "string",
    "messageCounts": 0,
    "extId": "string",
    "extMetadata": {},
    "message": [
      {
        "deletedOn": "2019-08-24T14:15:22Z",
        "deletedBy": "string",
        "createdOn": "2019-08-24T14:15:22Z",
        "modifiedOn": "2019-08-24T14:15:22Z",
        "createdBy": "string",
        "modifiedBy": "string",
        "id": "string",
        "sender": "string",
        "subject": "string",
        "body": "string",
        "status": "draft",
        "extId": "string",
        "extMetadata": {},
        "threadId": "string",
        "attachment": [
          {
            "deletedOn": "2019-08-24T14:15:22Z",
            "deletedBy": "string",
            "createdOn": "2019-08-24T14:15:22Z",
            "modifiedOn": "2019-08-24T14:15:22Z",
            "createdBy": "string",
            "modifiedBy": "string",
            "id": "string",
            "name": "string",
            "path": "string",
            "thumbnail": "string",
            "mime": "string",
            "extId": "string",
            "extMetadata": {},
            "messageId": "string",
            "message": {},
            "foreignKey": null
          }
        ],
        "foreignKey": null,
        "group": [
          {
            "deletedOn": "2019-08-24T14:15:22Z",
            "deletedBy": "string",
            "createdOn": "2019-08-24T14:15:22Z",
            "modifiedOn": "2019-08-24T14:15:22Z",
            "createdBy": "string",
            "modifiedBy": "string",
            "id": "string",
            "party": "string",
            "type": "from",
            "isImportant": true,
            "storage": "draft",
            "visibility": "read",
            "extId": "string",
            "extMetadata": {},
            "messageId": "string",
            "threadId": "string",
            "message": {},
            "foreignKey": null,
            "thread": {}
          }
        ],
        "meta": [
          {
            "deletedOn": "2019-08-24T14:15:22Z",
            "deletedBy": "string",
            "createdOn": "2019-08-24T14:15:22Z",
            "modifiedOn": "2019-08-24T14:15:22Z",
            "createdBy": "string",
            "modifiedBy": "string",
            "id": "string",
            "key": "string",
            "value": "string",
            "extId": "string",
            "extMetadata": {},
            "messageId": "string",
            "message": {},
            "foreignKey": null
          }
        ],
        "thread": {}
      }
    ],
    "foreignKey": null,
    "group": [
      {
        "deletedOn": "2019-08-24T14:15:22Z",
        "deletedBy": "string",
        "createdOn": "2019-08-24T14:15:22Z",
        "modifiedOn": "2019-08-24T14:15:22Z",
        "createdBy": "string",
        "modifiedBy": "string",
        "id": "string",
        "party": "string",
        "type": "from",
        "isImportant": true,
        "storage": "draft",
        "visibility": "read",
        "extId": "string",
        "extMetadata": {},
        "messageId": "string",
        "threadId": "string",
        "message": {
          "deletedOn": "2019-08-24T14:15:22Z",
          "deletedBy": "string",
          "createdOn": "2019-08-24T14:15:22Z",
          "modifiedOn": "2019-08-24T14:15:22Z",
          "createdBy": "string",
          "modifiedBy": "string",
          "id": "string",
          "sender": "string",
          "subject": "string",
          "body": "string",
          "status": "draft",
          "extId": "string",
          "extMetadata": {},
          "threadId": "string",
          "attachment": [
            {
              "deletedOn": "2019-08-24T14:15:22Z",
              "deletedBy": "string",
              "createdOn": "2019-08-24T14:15:22Z",
              "modifiedOn": "2019-08-24T14:15:22Z",
              "createdBy": "string",
              "modifiedBy": "string",
              "id": "string",
              "name": "string",
              "path": "string",
              "thumbnail": "string",
              "mime": "string",
              "extId": "string",
              "extMetadata": {},
              "messageId": "string",
              "message": {},
              "foreignKey": null
            }
          ],
          "foreignKey": null,
          "group": [
            {}
          ],
          "meta": [
            {
              "deletedOn": "2019-08-24T14:15:22Z",
              "deletedBy": "string",
              "createdOn": "2019-08-24T14:15:22Z",
              "modifiedOn": "2019-08-24T14:15:22Z",
              "createdBy": "string",
              "modifiedBy": "string",
              "id": "string",
              "key": "string",
              "value": "string",
              "extId": "string",
              "extMetadata": {},
              "messageId": "string",
              "message": {},
              "foreignKey": null
            }
          ],
          "thread": {}
        },
        "foreignKey": null,
        "thread": {}
      }
    ]
  }
}

GroupExcluding_deleted_WithRelations

Properties

Name Type Required Restrictions Description
deletedOn string(date-time)¦null false none none
deletedBy string¦null false none none
createdOn string(date-time) false none none
modifiedOn string(date-time) false none none
createdBy string false none none
modifiedBy string false none none
id string false none none
party string true none none
type string true none none
isImportant boolean false none none
storage string false none none
visibility string false none none
extId string false none none
extMetadata object false none none
messageId string false none none
threadId string false none none
message MessageExcluding_deleted_WithRelations false none (tsType: Omit<MessageWithRelations, 'deleted'>, schemaOptions: { exclude: [ 'deleted' ], includeRelations: true })
foreignKey any false none none
thread ThreadExcluding_deleted_WithRelations false none (tsType: Omit<ThreadWithRelations, 'deleted'>, schemaOptions: { exclude: [ 'deleted' ], includeRelations: true })

Enumerated Values

Property Value
type from
type to
type cc
type bcc
storage draft
storage send
storage inbox
storage trash
visibility read
visibility new
visibility unread
visibility important
visibility not-important

MetaExcluding_deleted_WithRelations

{
  "deletedOn": "2019-08-24T14:15:22Z",
  "deletedBy": "string",
  "createdOn": "2019-08-24T14:15:22Z",
  "modifiedOn": "2019-08-24T14:15:22Z",
  "createdBy": "string",
  "modifiedBy": "string",
  "id": "string",
  "key": "string",
  "value": "string",
  "extId": "string",
  "extMetadata": {},
  "messageId": "string",
  "message": {
    "deletedOn": "2019-08-24T14:15:22Z",
    "deletedBy": "string",
    "createdOn": "2019-08-24T14:15:22Z",
    "modifiedOn": "2019-08-24T14:15:22Z",
    "createdBy": "string",
    "modifiedBy": "string",
    "id": "string",
    "sender": "string",
    "subject": "string",
    "body": "string",
    "status": "draft",
    "extId": "string",
    "extMetadata": {},
    "threadId": "string",
    "attachment": [
      {
        "deletedOn": "2019-08-24T14:15:22Z",
        "deletedBy": "string",
        "createdOn": "2019-08-24T14:15:22Z",
        "modifiedOn": "2019-08-24T14:15:22Z",
        "createdBy": "string",
        "modifiedBy": "string",
        "id": "string",
        "name": "string",
        "path": "string",
        "thumbnail": "string",
        "mime": "string",
        "extId": "string",
        "extMetadata": {},
        "messageId": "string",
        "message": {},
        "foreignKey": null
      }
    ],
    "foreignKey": null,
    "group": [
      {
        "deletedOn": "2019-08-24T14:15:22Z",
        "deletedBy": "string",
        "createdOn": "2019-08-24T14:15:22Z",
        "modifiedOn": "2019-08-24T14:15:22Z",
        "createdBy": "string",
        "modifiedBy": "string",
        "id": "string",
        "party": "string",
        "type": "from",
        "isImportant": true,
        "storage": "draft",
        "visibility": "read",
        "extId": "string",
        "extMetadata": {},
        "messageId": "string",
        "threadId": "string",
        "message": {},
        "foreignKey": null,
        "thread": {
          "deletedOn": "2019-08-24T14:15:22Z",
          "deletedBy": "string",
          "createdOn": "2019-08-24T14:15:22Z",
          "modifiedOn": "2019-08-24T14:15:22Z",
          "createdBy": "string",
          "modifiedBy": "string",
          "id": "string",
          "subject": "string",
          "messageCounts": 0,
          "extId": "string",
          "extMetadata": {},
          "message": [
            {}
          ],
          "foreignKey": null,
          "group": [
            {}
          ]
        }
      }
    ],
    "meta": [
      {
        "deletedOn": "2019-08-24T14:15:22Z",
        "deletedBy": "string",
        "createdOn": "2019-08-24T14:15:22Z",
        "modifiedOn": "2019-08-24T14:15:22Z",
        "createdBy": "string",
        "modifiedBy": "string",
        "id": "string",
        "key": "string",
        "value": "string",
        "extId": "string",
        "extMetadata": {},
        "messageId": "string",
        "message": {},
        "foreignKey": null
      }
    ],
    "thread": {
      "deletedOn": "2019-08-24T14:15:22Z",
      "deletedBy": "string",
      "createdOn": "2019-08-24T14:15:22Z",
      "modifiedOn": "2019-08-24T14:15:22Z",
      "createdBy": "string",
      "modifiedBy": "string",
      "id": "string",
      "subject": "string",
      "messageCounts": 0,
      "extId": "string",
      "extMetadata": {},
      "message": [
        {}
      ],
      "foreignKey": null,
      "group": [
        {
          "deletedOn": "2019-08-24T14:15:22Z",
          "deletedBy": "string",
          "createdOn": "2019-08-24T14:15:22Z",
          "modifiedOn": "2019-08-24T14:15:22Z",
          "createdBy": "string",
          "modifiedBy": "string",
          "id": "string",
          "party": "string",
          "type": "from",
          "isImportant": true,
          "storage": "draft",
          "visibility": "read",
          "extId": "string",
          "extMetadata": {},
          "messageId": "string",
          "threadId": "string",
          "message": {},
          "foreignKey": null,
          "thread": {}
        }
      ]
    }
  },
  "foreignKey": null
}

MetaExcluding_deleted_WithRelations

Properties

Name Type Required Restrictions Description
deletedOn string(date-time)¦null false none none
deletedBy string¦null false none none
createdOn string(date-time) false none none
modifiedOn string(date-time) false none none
createdBy string false none none
modifiedBy string false none none
id string false none none
key string true none none
value string false none none
extId string false none none
extMetadata object false none none
messageId string false none none
message MessageExcluding_deleted_WithRelations false none (tsType: Omit<MessageWithRelations, 'deleted'>, schemaOptions: { exclude: [ 'deleted' ], includeRelations: true })
foreignKey any false none none

MessageExcluding_deleted_WithRelations

{
  "deletedOn": "2019-08-24T14:15:22Z",
  "deletedBy": "string",
  "createdOn": "2019-08-24T14:15:22Z",
  "modifiedOn": "2019-08-24T14:15:22Z",
  "createdBy": "string",
  "modifiedBy": "string",
  "id": "string",
  "sender": "string",
  "subject": "string",
  "body": "string",
  "status": "draft",
  "extId": "string",
  "extMetadata": {},
  "threadId": "string",
  "attachment": [
    {
      "deletedOn": "2019-08-24T14:15:22Z",
      "deletedBy": "string",
      "createdOn": "2019-08-24T14:15:22Z",
      "modifiedOn": "2019-08-24T14:15:22Z",
      "createdBy": "string",
      "modifiedBy": "string",
      "id": "string",
      "name": "string",
      "path": "string",
      "thumbnail": "string",
      "mime": "string",
      "extId": "string",
      "extMetadata": {},
      "messageId": "string",
      "message": {
        "deletedOn": "2019-08-24T14:15:22Z",
        "deletedBy": "string",
        "createdOn": "2019-08-24T14:15:22Z",
        "modifiedOn": "2019-08-24T14:15:22Z",
        "createdBy": "string",
        "modifiedBy": "string",
        "id": "string",
        "sender": "string",
        "subject": "string",
        "body": "string",
        "status": "draft",
        "extId": "string",
        "extMetadata": {},
        "threadId": "string",
        "attachment": [],
        "foreignKey": null,
        "group": [
          {
            "deletedOn": "2019-08-24T14:15:22Z",
            "deletedBy": "string",
            "createdOn": "2019-08-24T14:15:22Z",
            "modifiedOn": "2019-08-24T14:15:22Z",
            "createdBy": "string",
            "modifiedBy": "string",
            "id": "string",
            "party": "string",
            "type": "from",
            "isImportant": true,
            "storage": "draft",
            "visibility": "read",
            "extId": "string",
            "extMetadata": {},
            "messageId": "string",
            "threadId": "string",
            "message": {},
            "foreignKey": null,
            "thread": {
              "deletedOn": "2019-08-24T14:15:22Z",
              "deletedBy": "string",
              "createdOn": "2019-08-24T14:15:22Z",
              "modifiedOn": "2019-08-24T14:15:22Z",
              "createdBy": "string",
              "modifiedBy": "string",
              "id": "string",
              "subject": "string",
              "messageCounts": 0,
              "extId": "string",
              "extMetadata": {},
              "message": [
                {}
              ],
              "foreignKey": null,
              "group": [
                {}
              ]
            }
          }
        ],
        "meta": [
          {
            "deletedOn": "2019-08-24T14:15:22Z",
            "deletedBy": "string",
            "createdOn": "2019-08-24T14:15:22Z",
            "modifiedOn": "2019-08-24T14:15:22Z",
            "createdBy": "string",
            "modifiedBy": "string",
            "id": "string",
            "key": "string",
            "value": "string",
            "extId": "string",
            "extMetadata": {},
            "messageId": "string",
            "message": {},
            "foreignKey": null
          }
        ],
        "thread": {
          "deletedOn": "2019-08-24T14:15:22Z",
          "deletedBy": "string",
          "createdOn": "2019-08-24T14:15:22Z",
          "modifiedOn": "2019-08-24T14:15:22Z",
          "createdBy": "string",
          "modifiedBy": "string",
          "id": "string",
          "subject": "string",
          "messageCounts": 0,
          "extId": "string",
          "extMetadata": {},
          "message": [
            {}
          ],
          "foreignKey": null,
          "group": [
            {
              "deletedOn": "2019-08-24T14:15:22Z",
              "deletedBy": "string",
              "createdOn": "2019-08-24T14:15:22Z",
              "modifiedOn": "2019-08-24T14:15:22Z",
              "createdBy": "string",
              "modifiedBy": "string",
              "id": "string",
              "party": "string",
              "type": "from",
              "isImportant": true,
              "storage": "draft",
              "visibility": "read",
              "extId": "string",
              "extMetadata": {},
              "messageId": "string",
              "threadId": "string",
              "message": {},
              "foreignKey": null,
              "thread": {}
            }
          ]
        }
      },
      "foreignKey": null
    }
  ],
  "foreignKey": null,
  "group": [
    {
      "deletedOn": "2019-08-24T14:15:22Z",
      "deletedBy": "string",
      "createdOn": "2019-08-24T14:15:22Z",
      "modifiedOn": "2019-08-24T14:15:22Z",
      "createdBy": "string",
      "modifiedBy": "string",
      "id": "string",
      "party": "string",
      "type": "from",
      "isImportant": true,
      "storage": "draft",
      "visibility": "read",
      "extId": "string",
      "extMetadata": {},
      "messageId": "string",
      "threadId": "string",
      "message": {
        "deletedOn": "2019-08-24T14:15:22Z",
        "deletedBy": "string",
        "createdOn": "2019-08-24T14:15:22Z",
        "modifiedOn": "2019-08-24T14:15:22Z",
        "createdBy": "string",
        "modifiedBy": "string",
        "id": "string",
        "sender": "string",
        "subject": "string",
        "body": "string",
        "status": "draft",
        "extId": "string",
        "extMetadata": {},
        "threadId": "string",
        "attachment": [
          {
            "deletedOn": "2019-08-24T14:15:22Z",
            "deletedBy": "string",
            "createdOn": "2019-08-24T14:15:22Z",
            "modifiedOn": "2019-08-24T14:15:22Z",
            "createdBy": "string",
            "modifiedBy": "string",
            "id": "string",
            "name": "string",
            "path": "string",
            "thumbnail": "string",
            "mime": "string",
            "extId": "string",
            "extMetadata": {},
            "messageId": "string",
            "message": {},
            "foreignKey": null
          }
        ],
        "foreignKey": null,
        "group": [],
        "meta": [
          {
            "deletedOn": "2019-08-24T14:15:22Z",
            "deletedBy": "string",
            "createdOn": "2019-08-24T14:15:22Z",
            "modifiedOn": "2019-08-24T14:15:22Z",
            "createdBy": "string",
            "modifiedBy": "string",
            "id": "string",
            "key": "string",
            "value": "string",
            "extId": "string",
            "extMetadata": {},
            "messageId": "string",
            "message": {},
            "foreignKey": null
          }
        ],
        "thread": {
          "deletedOn": "2019-08-24T14:15:22Z",
          "deletedBy": "string",
          "createdOn": "2019-08-24T14:15:22Z",
          "modifiedOn": "2019-08-24T14:15:22Z",
          "createdBy": "string",
          "modifiedBy": "string",
          "id": "string",
          "subject": "string",
          "messageCounts": 0,
          "extId": "string",
          "extMetadata": {},
          "message": [
            {}
          ],
          "foreignKey": null,
          "group": [
            {}
          ]
        }
      },
      "foreignKey": null,
      "thread": {
        "deletedOn": "2019-08-24T14:15:22Z",
        "deletedBy": "string",
        "createdOn": "2019-08-24T14:15:22Z",
        "modifiedOn": "2019-08-24T14:15:22Z",
        "createdBy": "string",
        "modifiedBy": "string",
        "id": "string",
        "subject": "string",
        "messageCounts": 0,
        "extId": "string",
        "extMetadata": {},
        "message": [
          {
            "deletedOn": "2019-08-24T14:15:22Z",
            "deletedBy": "string",
            "createdOn": "2019-08-24T14:15:22Z",
            "modifiedOn": "2019-08-24T14:15:22Z",
            "createdBy": "string",
            "modifiedBy": "string",
            "id": "string",
            "sender": "string",
            "subject": "string",
            "body": "string",
            "status": "draft",
            "extId": "string",
            "extMetadata": {},
            "threadId": "string",
            "attachment": [
              {
                "deletedOn": "2019-08-24T14:15:22Z",
                "deletedBy": "string",
                "createdOn": "2019-08-24T14:15:22Z",
                "modifiedOn": "2019-08-24T14:15:22Z",
                "createdBy": "string",
                "modifiedBy": "string",
                "id": "string",
                "name": "string",
                "path": "string",
                "thumbnail": "string",
                "mime": "string",
                "extId": "string",
                "extMetadata": {},
                "messageId": "string",
                "message": {},
                "foreignKey": null
              }
            ],
            "foreignKey": null,
            "group": [],
            "meta": [
              {
                "deletedOn": "2019-08-24T14:15:22Z",
                "deletedBy": "string",
                "createdOn": "2019-08-24T14:15:22Z",
                "modifiedOn": "2019-08-24T14:15:22Z",
                "createdBy": "string",
                "modifiedBy": "string",
                "id": "string",
                "key": "string",
                "value": "string",
                "extId": "string",
                "extMetadata": {},
                "messageId": "string",
                "message": {},
                "foreignKey": null
              }
            ],
            "thread": {}
          }
        ],
        "foreignKey": null,
        "group": [
          {}
        ]
      }
    }
  ],
  "meta": [
    {
      "deletedOn": "2019-08-24T14:15:22Z",
      "deletedBy": "string",
      "createdOn": "2019-08-24T14:15:22Z",
      "modifiedOn": "2019-08-24T14:15:22Z",
      "createdBy": "string",
      "modifiedBy": "string",
      "id": "string",
      "key": "string",
      "value": "string",
      "extId": "string",
      "extMetadata": {},
      "messageId": "string",
      "message": {
        "deletedOn": "2019-08-24T14:15:22Z",
        "deletedBy": "string",
        "createdOn": "2019-08-24T14:15:22Z",
        "modifiedOn": "2019-08-24T14:15:22Z",
        "createdBy": "string",
        "modifiedBy": "string",
        "id": "string",
        "sender": "string",
        "subject": "string",
        "body": "string",
        "status": "draft",
        "extId": "string",
        "extMetadata": {},
        "threadId": "string",
        "attachment": [
          {
            "deletedOn": "2019-08-24T14:15:22Z",
            "deletedBy": "string",
            "createdOn": "2019-08-24T14:15:22Z",
            "modifiedOn": "2019-08-24T14:15:22Z",
            "createdBy": "string",
            "modifiedBy": "string",
            "id": "string",
            "name": "string",
            "path": "string",
            "thumbnail": "string",
            "mime": "string",
            "extId": "string",
            "extMetadata": {},
            "messageId": "string",
            "message": {},
            "foreignKey": null
          }
        ],
        "foreignKey": null,
        "group": [
          {
            "deletedOn": "2019-08-24T14:15:22Z",
            "deletedBy": "string",
            "createdOn": "2019-08-24T14:15:22Z",
            "modifiedOn": "2019-08-24T14:15:22Z",
            "createdBy": "string",
            "modifiedBy": "string",
            "id": "string",
            "party": "string",
            "type": "from",
            "isImportant": true,
            "storage": "draft",
            "visibility": "read",
            "extId": "string",
            "extMetadata": {},
            "messageId": "string",
            "threadId": "string",
            "message": {},
            "foreignKey": null,
            "thread": {
              "deletedOn": "2019-08-24T14:15:22Z",
              "deletedBy": "string",
              "createdOn": "2019-08-24T14:15:22Z",
              "modifiedOn": "2019-08-24T14:15:22Z",
              "createdBy": "string",
              "modifiedBy": "string",
              "id": "string",
              "subject": "string",
              "messageCounts": 0,
              "extId": "string",
              "extMetadata": {},
              "message": [
                {}
              ],
              "foreignKey": null,
              "group": [
                {}
              ]
            }
          }
        ],
        "meta": [],
        "thread": {
          "deletedOn": "2019-08-24T14:15:22Z",
          "deletedBy": "string",
          "createdOn": "2019-08-24T14:15:22Z",
          "modifiedOn": "2019-08-24T14:15:22Z",
          "createdBy": "string",
          "modifiedBy": "string",
          "id": "string",
          "subject": "string",
          "messageCounts": 0,
          "extId": "string",
          "extMetadata": {},
          "message": [
            {}
          ],
          "foreignKey": null,
          "group": [
            {
              "deletedOn": "2019-08-24T14:15:22Z",
              "deletedBy": "string",
              "createdOn": "2019-08-24T14:15:22Z",
              "modifiedOn": "2019-08-24T14:15:22Z",
              "createdBy": "string",
              "modifiedBy": "string",
              "id": "string",
              "party": "string",
              "type": "from",
              "isImportant": true,
              "storage": "draft",
              "visibility": "read",
              "extId": "string",
              "extMetadata": {},
              "messageId": "string",
              "threadId": "string",
              "message": {},
              "foreignKey": null,
              "thread": {}
            }
          ]
        }
      },
      "foreignKey": null
    }
  ],
  "thread": {
    "deletedOn": "2019-08-24T14:15:22Z",
    "deletedBy": "string",
    "createdOn": "2019-08-24T14:15:22Z",
    "modifiedOn": "2019-08-24T14:15:22Z",
    "createdBy": "string",
    "modifiedBy": "string",
    "id": "string",
    "subject": "string",
    "messageCounts": 0,
    "extId": "string",
    "extMetadata": {},
    "message": [
      {
        "deletedOn": "2019-08-24T14:15:22Z",
        "deletedBy": "string",
        "createdOn": "2019-08-24T14:15:22Z",
        "modifiedOn": "2019-08-24T14:15:22Z",
        "createdBy": "string",
        "modifiedBy": "string",
        "id": "string",
        "sender": "string",
        "subject": "string",
        "body": "string",
        "status": "draft",
        "extId": "string",
        "extMetadata": {},
        "threadId": "string",
        "attachment": [
          {
            "deletedOn": "2019-08-24T14:15:22Z",
            "deletedBy": "string",
            "createdOn": "2019-08-24T14:15:22Z",
            "modifiedOn": "2019-08-24T14:15:22Z",
            "createdBy": "string",
            "modifiedBy": "string",
            "id": "string",
            "name": "string",
            "path": "string",
            "thumbnail": "string",
            "mime": "string",
            "extId": "string",
            "extMetadata": {},
            "messageId": "string",
            "message": {},
            "foreignKey": null
          }
        ],
        "foreignKey": null,
        "group": [
          {
            "deletedOn": "2019-08-24T14:15:22Z",
            "deletedBy": "string",
            "createdOn": "2019-08-24T14:15:22Z",
            "modifiedOn": "2019-08-24T14:15:22Z",
            "createdBy": "string",
            "modifiedBy": "string",
            "id": "string",
            "party": "string",
            "type": "from",
            "isImportant": true,
            "storage": "draft",
            "visibility": "read",
            "extId": "string",
            "extMetadata": {},
            "messageId": "string",
            "threadId": "string",
            "message": {},
            "foreignKey": null,
            "thread": {}
          }
        ],
        "meta": [
          {
            "deletedOn": "2019-08-24T14:15:22Z",
            "deletedBy": "string",
            "createdOn": "2019-08-24T14:15:22Z",
            "modifiedOn": "2019-08-24T14:15:22Z",
            "createdBy": "string",
            "modifiedBy": "string",
            "id": "string",
            "key": "string",
            "value": "string",
            "extId": "string",
            "extMetadata": {},
            "messageId": "string",
            "message": {},
            "foreignKey": null
          }
        ],
        "thread": {}
      }
    ],
    "foreignKey": null,
    "group": [
      {
        "deletedOn": "2019-08-24T14:15:22Z",
        "deletedBy": "string",
        "createdOn": "2019-08-24T14:15:22Z",
        "modifiedOn": "2019-08-24T14:15:22Z",
        "createdBy": "string",
        "modifiedBy": "string",
        "id": "string",
        "party": "string",
        "type": "from",
        "isImportant": true,
        "storage": "draft",
        "visibility": "read",
        "extId": "string",
        "extMetadata": {},
        "messageId": "string",
        "threadId": "string",
        "message": {
          "deletedOn": "2019-08-24T14:15:22Z",
          "deletedBy": "string",
          "createdOn": "2019-08-24T14:15:22Z",
          "modifiedOn": "2019-08-24T14:15:22Z",
          "createdBy": "string",
          "modifiedBy": "string",
          "id": "string",
          "sender": "string",
          "subject": "string",
          "body": "string",
          "status": "draft",
          "extId": "string",
          "extMetadata": {},
          "threadId": "string",
          "attachment": [
            {
              "deletedOn": "2019-08-24T14:15:22Z",
              "deletedBy": "string",
              "createdOn": "2019-08-24T14:15:22Z",
              "modifiedOn": "2019-08-24T14:15:22Z",
              "createdBy": "string",
              "modifiedBy": "string",
              "id": "string",
              "name": "string",
              "path": "string",
              "thumbnail": "string",
              "mime": "string",
              "extId": "string",
              "extMetadata": {},
              "messageId": "string",
              "message": {},
              "foreignKey": null
            }
          ],
          "foreignKey": null,
          "group": [
            {}
          ],
          "meta": [
            {
              "deletedOn": "2019-08-24T14:15:22Z",
              "deletedBy": "string",
              "createdOn": "2019-08-24T14:15:22Z",
              "modifiedOn": "2019-08-24T14:15:22Z",
              "createdBy": "string",
              "modifiedBy": "string",
              "id": "string",
              "key": "string",
              "value": "string",
              "extId": "string",
              "extMetadata": {},
              "messageId": "string",
              "message": {},
              "foreignKey": null
            }
          ],
          "thread": {}
        },
        "foreignKey": null,
        "thread": {}
      }
    ]
  }
}

MessageExcluding_deleted_WithRelations

Properties

Name Type Required Restrictions Description
deletedOn string(date-time)¦null false none none
deletedBy string¦null false none none
createdOn string(date-time) false none none
modifiedOn string(date-time) false none none
createdBy string false none none
modifiedBy string false none none
id string false none none
sender string true none none
subject string true none none
body string true none none
status string true none none
extId string false none none
extMetadata object false none none
threadId string false none none
attachment [AttachmentExcluding_deleted_WithRelations] false none [(tsType: Omit<AttachmentWithRelations, 'deleted'>, schemaOptions: { exclude: [ 'deleted' ], includeRelations: true })]
foreignKey any false none none
group [GroupExcluding_deleted_WithRelations] false none [(tsType: Omit<GroupWithRelations, 'deleted'>, schemaOptions: { exclude: [ 'deleted' ], includeRelations: true })]
meta [MetaExcluding_deleted_WithRelations] false none [(tsType: Omit<MetaWithRelations, 'deleted'>, schemaOptions: { exclude: [ 'deleted' ], includeRelations: true })]
thread ThreadExcluding_deleted_WithRelations false none (tsType: Omit<ThreadWithRelations, 'deleted'>, schemaOptions: { exclude: [ 'deleted' ], includeRelations: true })

Enumerated Values

Property Value
status draft
status send

Message

{
  "deleted": true,
  "deletedOn": "2019-08-24T14:15:22Z",
  "deletedBy": "string",
  "createdOn": "2019-08-24T14:15:22Z",
  "modifiedOn": "2019-08-24T14:15:22Z",
  "createdBy": "string",
  "modifiedBy": "string",
  "id": "string",
  "sender": "string",
  "subject": "string",
  "body": "string",
  "status": "draft",
  "extId": "string",
  "extMetadata": {},
  "threadId": "string"
}

Message

Properties

Name Type Required Restrictions Description
deleted boolean false none none
deletedOn string(date-time)¦null false none none
deletedBy string¦null false none none
createdOn string(date-time) false none none
modifiedOn string(date-time) false none none
createdBy string false none none
modifiedBy string false none none
id string false none none
sender string true none none
subject string true none none
body string true none none
status string true none none
extId string false none none
extMetadata object false none none
threadId string false none none

Enumerated Values

Property Value
status draft
status send

Thread

{
  "deleted": true,
  "deletedOn": "2019-08-24T14:15:22Z",
  "deletedBy": "string",
  "createdOn": "2019-08-24T14:15:22Z",
  "modifiedOn": "2019-08-24T14:15:22Z",
  "createdBy": "string",
  "modifiedBy": "string",
  "id": "string",
  "subject": "string",
  "messageCounts": 0,
  "extId": "string",
  "extMetadata": {}
}

Thread

Properties

Name Type Required Restrictions Description
deleted boolean false none none
deletedOn string(date-time)¦null false none none
deletedBy string¦null false none none
createdOn string(date-time) false none none
modifiedOn string(date-time) false none none
createdBy string false none none
modifiedBy string false none none
id string false none none
subject string true none none
messageCounts number false none none
extId string false none none
extMetadata object false none none