Skip to main content
POST
/
messages
Send message
curl --request POST \
  --url https://api.partoo.co/v2/messages \
  --header 'Content-Type: application/json' \
  --header 'x-APIKey: <api-key>' \
  --data '{
  "conversation_id": 123,
  "content_type": "Text",
  "content": "<string>"
}'
{
  "status": "success",
  "message_id": 123
}

Authorizations

x-APIKey
string
header
required

The authentication system on Partoo API is using API Key that should be put in the header of the request (the name of the header is x-APIKey). An api_key is linked to a user. This user's role will give you different access level to the API features.

Body

  • Text
  • Image Url
  • Audio
  • Video
  • Document
conversation_id
integer
required

The id of the conversation

content_type
enum<string>
required
Available options:
Text
content
string
required

The text to send

Response

OK

status
enum<string>
Available options:
success
message_id
integer