Opero Docs
Opero APIcompanies

List email drafts

GET
/v1/companies/{companyId}/email/drafts

Authorization

api-token
AuthorizationBearer <token>

Opero API token. Send it as Authorization: Bearer ek_...

In: header

Path Parameters

companyId*string

Response Body

application/json

curl -X GET "https://example.com/v1/companies/string/email/drafts"
{  "data": [    {      "isAutoReply": true,      "isDeliveryReport": true,      "isListMail": true,      "sentCopyState": "PROVIDER",      "sendIdentityId": "string",      "id": "string",      "accountId": "string",      "threadId": "string",      "subject": "string",      "snippet": "string",      "fromAddresses": [        {          "address": "string",          "name": "string"        }      ],      "toAddresses": [        {          "address": "string",          "name": "string"        }      ],      "ccAddresses": [        {          "address": "string",          "name": "string"        }      ],      "direction": "INBOUND",      "origin": "SYNC",      "deliveryStatus": "DRAFT",      "remoteAvailability": "PRESENT",      "receivedAt": "2019-08-24T14:15:22Z",      "sentAt": "2019-08-24T14:15:22Z",      "isRead": true,      "isFlagged": true,      "attachmentCount": 0,      "version": 0,      "remoteDraftState": {        "localRevision": 0,        "synchronizedRevision": 0,        "remoteOccurrenceId": "string",        "status": "LOCAL_ONLY",        "lastError": "string",        "updatedAt": "2019-08-24T14:15:22Z"      },      "deliveryReports": [        {          "address": "string",          "status": "BOUNCED",          "enhancedStatus": "string",          "diagnostic": "string",          "reportMessageId": "string",          "observedAt": "2019-08-24T14:15:22Z"        }      ],      "undoUntil": "2019-08-24T14:15:22Z",      "bccAddresses": [        {          "address": "string",          "name": "string"        }      ],      "replyToAddresses": [        {          "address": "string",          "name": "string"        }      ],      "bodyText": "string",      "bodyHtml": "string",      "attachments": [        {          "id": "string",          "messageId": "string",          "filename": "string",          "mimeType": "string",          "sizeBytes": 0,          "contentId": "string",          "isInline": true,          "fileId": "string",          "state": "PENDING"        }      ],      "occurrences": [        {          "id": "string",          "accountId": "string",          "messageId": "string",          "folderId": "string",          "protocolGeneration": "string",          "remoteKey": "string",          "kind": "REMOTE",          "sourceOccurrenceId": "string",          "remoteFlags": [            "string"          ],          "remoteLabels": [            "string"          ],          "observedAt": "2019-08-24T14:15:22Z",          "remoteState": "PRESENT"        }      ],      "compositionContext": {        "signatureText": "string",        "signatureHtml": "string",        "quotedText": "string",        "quotedHtml": "string",        "quoteOriginal": true      }    }  ]}