Skip to main content
POST
Send email to yourself, workspace members or user groups
Sends a plain-text email from Cube, a separate copy to each person. Omit recipients and groups to email yourself. Your email permissions determine who you can send to. OAuth requires the email.send scope.

Authorizations

Authorization
string
header
required

Token authentication. Send Authorization: Bearer <YOUR_TOKEN>.

Body

application/json

AgentEmailRequest

body
string
required

Plain text. Line breaks are preserved.

Required string length: 1 - 10000
subject
string
required
Required string length: 1 - 200
attachments
object[] | null

PDF, PNG, or CSV files. Total decoded size at most 20 MiB.

Maximum array length: 5
groups
object[] | null

User groups, named by name. Every active member gets their own copy; a person in several groups or also listed in recipients gets it once. Large sends go out in the background (see queued). Always tell the user about anyone in skipped.

Required array length: 1 - 50 elements
recipients
object[] | null

Workspace-member email addresses. Omit both recipients and groups to send to the authenticated user.

Required array length: 1 - 1000 elements

Response

200 - application/json
queued
boolean
required

True when the email was accepted and is still being sent in the background: do not say it was delivered.

recipientCount
integer
required

How many people the email is being sent to, each separately.

sent
boolean
required
skipped
object[]
required

Requested emails and groups not sent to, with the reason. Tell the user; never resend to a listed group.