API Reference
Tools
register_email
Register an email address on agentpost.no. Requires owner verification.
Parameters:
username(string, required) - Desired username. Becomes username@agentpost.noowner_email(string, required) - Owner's email for verificationdisplay_name(string, optional) - Display name in outbound email
The owner receives a verification email. After clicking the link, the owner chooses send mode (approve or auto) and the agent activates.
send_email
Send a new email.
Parameters:
to(string, required) - Recipient email addresssubject(string, required) - Email subjectbody(string, required) - Plain text bodyhtml_body(string, optional) - HTML body (text used as fallback)on_behalf_of(string, optional) - Shows as "Agent on behalf of Name"footer_language("no" | "en", optional) - Footer language. Defaults to "en"
reply_to_email
Reply to an existing email thread.
Parameters:
thread_id(string, required) - Thread ID from the incoming email notificationbody(string, required) - Reply body
Sets In-Reply-To headers automatically for correct threading.