Basic Messages
Endpoints for sending and retrieving basic messages
This endpoint allows you to send a basic message.
Authorizations
Body
invitation_idintegerOptionalExample:
The ID of the invitation.
1
contact_idstringOptional
The ID of the contact.
messagestringOptionalExample:
The message content.
your message here
Responses
200
Message sent successfully
application/json
400
Bad request. Invalid parameters.
application/json
401
Unauthorized.
500
Internal Server Error
application/json
post
POST /api/v1/messages HTTP/1.1
Host:
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 65
{
"invitation_id": 1,
"contact_id": "",
"message": "your message here"
}
{
"success": "Messages was sent!"
}
This endpoint retrieves a message by its ID.
Authorizations
Path parameters
idstringRequired
The ID of the message to retrieve.
Responses
200
A message object
application/json
401
Unauthorized.
404
Message not found
application/json
500
Internal Server Error
application/json
get
GET /api/v1/messages/{id} HTTP/1.1
Host:
x-api-key: YOUR_API_KEY
Accept: */*
{
"invitation_id": 3,
"contact_id": "2",
"message": "your message here"
}
Was this helpful?