Support reply template options
Read the supported placeholders and check a draft template body.
Get what you need to build a reply template editor: the defaults for a new template, whether the key's user may manage automation templates (permissions.can_manage_automation), template counts, the seven supported placeholders, the accepted list filters and the dashboard page. Send a draft body, and optionally more placeholder names in requested_placeholders[], to have placeholder_guidance check them: it names each unsupported placeholder and a supported replacement where one exists, such as {customer_email} for {customer_name}. Nothing is saved. Requires the ticket API-key ability, and the key's user must be allowed to manage tickets in the store (the Resolution Center role, or owner or administrator). OAuth callers use the admin grant and select a store with X-STORE. Current membership and role permissions apply to every request.
AuthorizationBearer <API Key>Provide your SellApp API key as a bearer token.
body?stringA draft template body to check.
requested_placeholders[]?array<string>More placeholder names to check, with or without braces. Repeat the parameter to send several.
X-STORE?stringStore slug. Required for OAuth access tokens. API keys may omit it to use their current store, or the first accessible store when no current store is selected.
Successful response.
application/json- response
data*curl -X GET 'https://sell.app/api/v2/support-reply-templates/options' \ -H 'X-STORE: launch-lab'{ "data": { "defaults": { "is_active": true, "supports_manual": true, "supports_auto_respond": false }, "permissions": { "can_manage_automation": true }, "counts": { "total": 2, "active": 2, "manual": 2, "auto": 1 }, "placeholders": [ { "key": "customer_email", "token": "{customer_email}", "label": "Customer email" }, { "key": "ticket_id", "token": "{ticket_id}", "label": "Ticket id" }, { "key": "order_id", "token": "{order_id}", "label": "Order id" }, { "key": "product_title", "token": "{product_title}", "label": "Product title" }, { "key": "refund_amount", "token": "{refund_amount}", "label": "Refund amount" }, { "key": "wallet_balance", "token": "{wallet_balance}", "label": "Wallet balance" }, { "key": "store_name", "token": "{store_name}", "label": "Store name" } ], "placeholder_guidance": { "is_valid": false, "used_placeholders": [ "customer_name" ], "requested_placeholders": [], "unsupported_placeholders": [ "customer_name" ], "suggested_replacements": [ { "requested": "customer_name", "replacement": "customer_email", "replacement_token": "{customer_email}", "message": "Use {customer_email} instead of {customer_name}." } ], "supported_tokens": [ "{customer_email}", "{ticket_id}", "{order_id}", "{product_title}", "{refund_amount}", "{wallet_balance}", "{store_name}" ] }, "availability_filters": [ { "value": "all", "label": "All templates" }, { "value": "manual", "label": "Manual replies" }, { "value": "auto", "label": "Auto responses" } ], "active_state_filters": [ { "value": "all", "label": "All statuses" }, { "value": "active", "label": "Active" }, { "value": "inactive", "label": "Paused" } ], "dashboard_url": "https://sell.app/dashboard/resolution-center/templates" }}