Update the claim email template
PUT
/api/merchants/email-templateSave a new claim email template. The body is validated against the template schema and unknown fields are stripped.
- Send the same object shape
GET /api/merchants/email-templatereturns. A 400 response names the offending field. - Companion routes exist for the dashboard's Email Studio:
POST /api/merchants/email-template/previewrenders a draft,/testsends it to your own address,/resetrestores the default, and/aiedits it from an instruction.
Authentication
Accepts either an API key (X-API-Key) or a dashboard JWT (Authorization: Bearer …).
PUT
/api/merchants/email-templatecurl --request PUT "https://api.trevi.cash/api/merchants/email-template" \
--header "Content-Type: application/json" \
--header "X-API-Key: $TREVI_API_KEY" \
--data '{ "subject": "Your cashback from {{merchant_name}}" }'Was this page helpful?
