Endpoint Examples
Create Messages
Send a message to an individual recipient
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
headerrequiredX-API-Secret
string
headerrequiredHeaders
X-API-Key
string
requiredX-API-Secret
string
requiredPath Parameters
accountId
string
requiredAccount ID
Body
application/json
content
string
requiredMessage body text
from
string
requiredSender phone number
to
string
requiredRecipient phone number
service
enum<string>
requiredMessaging 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