Start Free — No Credit Card Required · IntelliReply AI now replies in Arabic and EnglishSee plans →

Auto-replies API

List, create, update and delete basic auto-replies, the keyword replies that answer customers instantly.

Basic auto-replies answer a customer's message automatically when it matches a keyword, for example sending your opening hours when someone writes "timing". In the app they're under Automation › Basic Replies (see Basic replies). In the API they're called canned replies.

The API creates and updates text replies. Make image and audio replies in the app.

The auto-reply object#

Auto-reply
{
  "uuid": "de6fe115-4c30-4c8d-9245-6ae31c1c820f",
  "name": "Opening hours",
  "trigger": "hours,timing,open",
  "match_criteria": "contains",
  "metadata": "{\"type\":\"text\",\"data\":{\"text\":\"Hi {first_name}, we're open every day from 7am to 10pm.\"}}",
  "created_at": "2026-10-03 14:20:11",
  "updated_at": "03 Oct 2026 6:20 PM"
}
FieldDescription
uuidThe reply's ID.
nameA name for your team. Customers don't see it.
triggerThe keywords, separated by commas.
match_criteriaexact match or contains (see below).
metadataA JSON string. type is text, image or audio; for text, data.text is the reply.
updated_atFormatted for display, in your platform's date format.

How matching works#

  • exact match: the customer's whole message has to be one of the keywords. Capital letters don't matter for English, so Hours matches hours.
  • contains: the reply is sent when the message contains a keyword as a word. hours matches "What are your hours?". A keyword made of several words matches if the message contains any one of them, so keep contains keywords to single words.
  • Separate several keywords with commas: hours,timing,open. Any one of them triggers the reply.

Personalize the reply#

Put these in the reply text and ZAPGEN fills them in for each customer: {first_name}, {last_name}, {full_name}, {email}, {phone}, {organization_name}, {full_address}, {street}, {city}, {state}, {zip_code} and {country}. Custom fields work too: write the field name in lowercase with underscores instead of spaces, for example {membership_level} for a field called "Membership level".

List auto-replies#

GEThttps://app.zapgen.ae/api/canned-replies
NameTypeRequiredDescription
pageintegerNoPage number, from 1.
per_pageintegerNoReplies per page, 1–100. Default 10.
curl "https://app.zapgen.ae/api/canned-replies?per_page=100" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Accept: application/json"

The response is a paginated list of auto-reply objects in data.

Create an auto-reply#

POSThttps://app.zapgen.ae/api/canned-replies
NameTypeRequiredDescription
namestringYesA name for your team.
triggerstringYesKeywords, separated by commas.
match_criteriastringYesexact match or contains.
response_typestringYestext.
responsestringYesThe reply text. Can use placeholders.
curl -X POST https://app.zapgen.ae/api/canned-replies \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{
    "name": "Opening hours",
    "trigger": "hours,timing,open",
    "match_criteria": "contains",
    "response_type": "text",
    "response": "Hi {first_name}, we are open every day from 7am to 10pm."
  }'
Response
{
  "statusCode": 200,
  "id": "de6fe115-4c30-4c8d-9245-6ae31c1c820f",
  "message": "Request processed successfully"
}

The reply is live as soon as it's created: there's no on/off switch.

Update an auto-reply#

PUThttps://app.zapgen.ae/api/canned-replies/{uuid}

Takes the same fields as creating one, and all of them are required, so send the full reply each time.

curl -X PUT https://app.zapgen.ae/api/canned-replies/de6fe115-4c30-4c8d-9245-6ae31c1c820f \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{
    "name": "Opening hours",
    "trigger": "hours,timing,open",
    "match_criteria": "contains",
    "response_type": "text",
    "response": "Hi {first_name}, during Ramadan we are open from 8pm to 2am."
  }'

The response is the same as for creating one. An unknown uuid returns 404 with Canned reply not found.

Delete an auto-reply#

DELETEhttps://app.zapgen.ae/api/canned-replies/{uuid}
curl -X DELETE https://app.zapgen.ae/api/canned-replies/de6fe115-4c30-4c8d-9245-6ae31c1c820f \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Accept: application/json"
Response
{
  "statusCode": 200,
  "id": "de6fe115-4c30-4c8d-9245-6ae31c1c820f",
  "message": "Request processed successfully"
}

An unknown or already deleted uuid returns 404 with Canned reply not found.

Errors#

StatusWhen
400A field is missing, or match_criteria or response_type isn't one of the allowed values.
401The API key is missing or wrong.
403Your subscription has ended. Creating and updating stops; listing and deleting still work.
404No auto-reply with that uuid in your organization.

Changes send autoreply.created, autoreply.updated and autoreply.deleted webhooks.

Still stuck?Our team answers on WhatsApp and at [email protected].
Ask us on WhatsApp