Apply canned action

Apply a canned action to a ticket as a reply or a private note and submit it.

POST https://cotlet.dev/api/v1/happyfox/tickets/{ticket_id}/canned-actions/{canned_action_id}/apply

write Confirm

Picks the canned action in the ticket editor, fills in its response and property changes, and submits. mode reply emails the contact; mode private_note does not. The action must be defined for the ticket's category, or the call fails and lists the actions that are. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: apply_canned_action
NameTypeDescription
ticket_id integer required integer Ticket ID from search_tickets.
canned_action_id integer required integer Canned action ID from list_canned_actions.
mode enum enum reply or private_note. Default: reply.

Request

cURL
curl -X POST https://cotlet.dev/api/v1/happyfox/tickets/2090/canned-actions/31/apply \
  -H "Authorization: Bearer $COTLET_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"mode":"reply"}'
Python
result = client.call("happyfox", "apply_canned_action", {"ticket_id":2090,"canned_action_id":31,"mode":"reply"})
Node.js
const result = await cotlet.call('happyfox', 'apply_canned_action', {"ticket_id":2090,"canned_action_id":31,"mode":"reply"});
CLI
cotlet call happyfox apply_canned_action --data '{"ticket_id":2090,"canned_action_id":31,"mode":"reply"}'

Example response

JSON

{
  "ticket_id": 2090,
  "update_id": 88140,
  "mode": "reply",
  "canned_action": "Password reset steps",
  "changed": {
    "status": "Awaiting customer"
  },
  "created_at": "2026-10-20T09:03:00Z"
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.