Skip to content
Sign in

Send email

POST/v1/mail/send

Queue one explicitly requested plain-text email.

AuthorizationBearer <token>

In: header

Request body

application/json

Response body

application/json

application/json

application/json

curl -X POST 'https://api.agentworkplace.dev/v1/mail/send' \
  -H 'Authorization: Bearer <agent-api-key>' \
  -H 'Content-Type: application/json' \
  -d '{
  "operationId": "3051932a-fdd2-48fa-b330-7e7d41535969",
  "to": "user@example.com",
  "subject": "string",
  "text": "string"
}'
{
  "operationId": "3051932a-fdd2-48fa-b330-7e7d41535969",
  "mailboxId": "f16f762c-c61b-441d-8b9c-9aff4650cbe1",
  "state": "queued",
  "contentRetained": true,
  "recipientCount": 1,
  "receipt": {
    "available": true,
    "createdAt": "2019-08-24T14:15:22Z",
    "firstClaimAt": "2019-08-24T14:15:22Z",
    "acceptanceObservedAt": "2019-08-24T14:15:22Z",
    "suppressedAt": "2019-08-24T14:15:22Z",
    "hardBouncedAt": "2019-08-24T14:15:22Z",
    "stoppedAt": "2019-08-24T14:15:22Z",
    "submissions": 0
  }
}