Create a predefined message
Create a canned reply for the organization. The author (created_by_user_id) is always the API key's user.
Endpoint
POST/conversation-predefined-messages
Body
| Name | Type | Required | Description |
|---|---|---|---|
organization_id | integer | Yes | Your organization ID. |
title | string | Yes | Label shown in the picker. |
content | string | Yes | Reply text (caption for media). |
message_type | string | No | text (default), image, video, document, audio or location. |
media_url | string | No | For media: the s3PathWithoutBucket of an upload URL of type conversation-predefined-message, or a full URL. |
filename | string | No | File name of the media. |
mime_type | string | No | MIME type of the media. |
Request
Response
The created predefined message:
json
Errors
| Status | When |
|---|---|
400 Bad Request | A required field is missing, message_type is not allowed, or an unknown field was sent. |
Report an issue with this documentation
Please log in to report issues with our documentation.