SMS Templates
Save reusable message templates for quick SMS composition.
Overview
Templates let you save frequently used message text so you don't have to type it from scratch every time. Create templates for verification codes, appointment reminders, shipping notifications, or any other recurring message pattern.
Templates are managed through the Templates page in the dashboard and can be selected when composing messages in the Send SMS dialog or when creating scheduled messages.
Creating templates
- Navigate to Templates in the sidebar
- Click Add Template
- Enter a name (e.g., "Verification Code") and the body text
- Click Create Template
Template bodies support up to 1,600 characters, matching the SMS body limit.
Using templates
Templates appear in two places:
- Send SMS dialog — Select a template from the dropdown above the body field. The template text fills the body, which you can edit before sending.
- Schedule SMS dialog — Same template picker is available when creating scheduled messages.
API access
Templates are stored in the sms_templates collection and can be managed via the PocketBase collections API. All operations are scoped to the authenticated user.
List templates
GET /api/collections/sms_templates/records
Create a template
POST /api/collections/sms_templates/records
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Template name (max 100 characters) |
body | string | Yes | Message text (max 1600 characters) |
user | string | Yes | User ID (set automatically in dashboard) |
Update a template
PATCH /api/collections/sms_templates/records/:id
Delete a template
DELETE /api/collections/sms_templates/records/:id
Related
- Scheduled SMS - Use templates with scheduled messages
- Send SMS - Send messages via API