Skip to main content
POST
Send Email to Agent

Headers

Authorization
string
required

Bearer [access_token]

Content-Type
string
required

application/json

Body

application/json

Send system email to agent request

subject
string
required

Email subject

Example:

"You have a new lead assigned."

content
string
required

Email body content (HTML supported)

Example:

"<p>Hello, you have a new lead.</p>"

agentId
integer<int64>

User ID of the teammate to notify. Must belong to the caller's own team. Defaults to the caller's own user ID when omitted.

Example:

563172647619608

Response

Send result as {"result": true|false}; when the email service refuses the send, "code" and "message" carry its reason

Generic message response

message
string

Result message

Example:

"Operation successful"