Skip to main content
POST
Send Message

Authorizations

Authorization
string
header
required

Bearer token from your account (https://agent.ai/user/integrations#api)

Body

application/json
type
enum<string>
default:email
required

Select the type of message to send, such as 'Email'.

Available options:
email
to
enum<string>
default:current_user
required

Enter the recipient's address, such as '[email protected]' for emails.

Available options:
current_user,
email_addresses
output_formatted
string
required

Provide the message content, such as 'Hello, your order is confirmed!' or formatted HTML for emails.

email_addresses
string

Enter each email on a new line

subject
string

Provide a subject line for the email such as New message from {{agent.name}}

Response

Successful response

status
integer<int32>

HTTP status code of the action response

response
object

Response data from the action