# List templates `GET /api/v1/templates` Lists template records in the workspace. ## Permissions Send your API key in `X-API-Key`. Required permissions are **Templates → Read**. ## Query parameters - `type` (string) — Use email, sms, or page. - `profile_print_enabled` (boolean) — Whether a page template appears in the profile print menu. - `q` (string) — Search template names. - `length` (integer) — Number of records to return. - `start` (integer) — Zero-based offset. - `draw` (string) — Optional request marker echoed in the response. - `sort` (string) — Sort by id, tsc, or tsu. Prefix the field name with a minus sign for descending order. - `order` (string) — Direction for unprefixed sort fields. Use asc or desc. ## Request Set ASDINCLOUD_API_KEY and any variables named in the example before running it. ```sh curl --get \ --url "https://api.asdincloud.com/api/v1/templates" \ --header "X-API-Key: $ASDINCLOUD_API_KEY" \ --data-urlencode "type=email" \ --data-urlencode "length=25" ``` ## Response **200 OK** Returns templates in `data` with the counts before and after text search. Example with fictional data and selected fields. ```json { "status": "success", "data": [ { "id": 27, "name": "Practice reminder", "type": "email", "editor": "email", "subject": "Next practice", "body_html": "
Hello {first_name}, practice starts at 18:00.
", "style_css": null, "profile_print_enabled": false, "editable": true, "is_default": false, "parent_id": null } ], "records_total": 1, "records_filtered": 1, "draw": null } ``` ## Errors - `401` — The API key is missing or invalid. - `403` — The API key lacks the required permission. - `400` — The profile print filter must be a boolean.