Skip to main content
POST
Send message

Authorizations

Authorization
string
header
required

Polymorfa organization key (pmfa_ prefix), project token (pmfa_pt_ prefix) where supported, or short-lived client token (pmfa_ct_ prefix). Organization and project keys may be personal or service-account owned and enforce selected action scopes. Organization keys cover the team and its projects; project tokens stay inside one project. Client tokens stay inside their live project and session and enforce their client rules.

Path Parameters

session
string
required

Identifier of the connected Polymorfa session.

Body

application/json

Specify conversation and content containing exactly one message kind. Shared options remain outside content.

conversation
object
required

Public conversation identifier or E.164 phone number.

Accepted alternatives

content
object
required

Specifies content for this native send message request.

Accepted alternatives

isForwarded
boolean

Mark this message as forwarded.

mentions
string[]

User IDs to mention in this message.

Value constraints

Pattern: ^pmfa_lid_[1-9]\d*$
quotedMessage
object

Specifies quoted message for this native send message request.

Response

Message sent successfully

success
enum<boolean>
required

Whether the request succeeded.

Allowed values

Available options:
true
data
object
required

Structured data carried by this object.