POST
/
messages
/
individual
/
{accountId}
/
send

Sending Messages:

  • Group Chats: The agent’s phone number must first be added to the group chat before messages can be sent.

  • Individual Chats: A user must initiate the conversation with the agent’s phone number before the agent can send messages.


title: “Create Messages” openapi: “POST /messages/individual//send”


title: “Create Messages” openapi: “POST /messages/individual//send”

NPM Package

https://www.npmjs.com/package/a1base-api

Authorizations

X-API-Key
string
headerrequired
X-API-Secret
string
headerrequired

Headers

X-API-Key
string
required
X-API-Secret
string
required

Path Parameters

accountId
string
required

Account ID

Body

application/json
content
string
required

Message body text

from
string
required

Sender phone number

to
string
required

Recipient phone number

service
enum<string>
required

Messaging service to use

Available options:
whatsapp,
telegram
attachment_uri
string

Optional file/media attachment

Response

200 - application/json
sid
string
date_created
string
date_updated
string
date_sent
string
to
string
from
string
body
string
status
string