Skip to main content
PUT
/
api
/
canned-replies
/
{uuid}
Update Automated Reply
curl --request PUT \
  --url https://app.sentsays.com/api/canned-replies/{uuid} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "About Us Updated",
  "trigger": "what do you do?",
  "match_criteria": "contains",
  "response_type": "text",
  "response": "We'\''re a premium shoe retailer with over 20 years of experience. We offer the finest quality footwear for all occasions!"
}'
{
  "statusCode": 200,
  "id": "fd3f92b5-340c-4259-a189-896a38b885d7",
  "message": "Request processed successfully"
}

Authorizations

Authorization
string
header
required

Bearer token authentication. Include your API key in the Authorization header: Authorization: Bearer YOUR_API_KEY

Path Parameters

uuid
string<uuid>
required

UUID of the automated reply to update

Example:

"f8abb450-9ff5-460c-a194-99e30c67c019"

Body

application/json
name
string
required

Name/title of the automated reply

Minimum length: 1
Example:

"About Us"

trigger
string
required

Trigger phrase that activates this reply

Minimum length: 1
Example:

"what do you do?"

match_criteria
enum<string>
required

How the trigger should match incoming messages

Available options:
exact match,
contains,
starts with,
ends with
Example:

"contains"

response_type
enum<string>
required

Type of response content

Available options:
text,
image,
document,
media
Example:

"text"

response
string
required

The response content (text, URL, or file path)

Minimum length: 1
Example:

"We sell premium quality shoes for all occasions. Visit our store for the latest collection!"

Response

Automated reply updated successfully

statusCode
integer
Example:

200

id
string<uuid>
Example:

"fd3f92b5-340c-4259-a189-896a38b885d7"

message
string
Example:

"Request processed successfully"

I