---
title: List profiles and templates
project: OpenTemplates
version: 1.0
section: reference
language: en
license: MIT
url: https://totaljs.es/docs/opentemplates/1-0/reference/profiles/
updated: 2026-11-19T07:56:22.329Z
---

# List profiles and templates

> Get the profiles, their template IDs and the sample models.

```text
GET /profiles/
```

Returns every profile with its templates. Use it to build a list of templates in your app, or to see which fields a template expects. The [API token](../../guides/api-tokens/) needs **Allow read list of profiles**.

## Example

```bash
curl -H "x-token: YOUR_TOKEN" https://templates.example.com/profiles/
```

```json
[
	{
		"id": "JapPJ01d760f",
		"name": "Demo project",
		"icon": "ti ti-file-alt",
		"color": "#4285F4",
		"reference": "demo",
		"templates": [
			{
				"id": "JapPJ01f760f",
				"name": "Invoice",
				"reference": "demo/invoice",
				"model": {
					"number": "2026-001",
					"customer": "Jane Doe",
					"items": [
						{
							"name": "Website design",
							"price": 1200
						},
						{
							"name": "Hosting (1 year)",
							"price": 240
						}
					],
					"total": 1440
				}
			},
			{
				"id": "JapPJ01h760f",
				"name": "Welcome letter",
				"reference": "demo/welcome",
				"model": {
					"name": "Total.js OpenTemplates"
				}
			},
			{
				"id": "JapPrd1cW61f",
				"name": "Receipt",
				"reference": "demo/receipt",
				"model": {
					"name": "Total.js OpenTemplates"
				}
			},
			{
				"id": "JapQXI1d360f",
				"name": "Credit note",
				"reference": "demo/creditnote",
				"model": {}
			}
		]
	},
	{
		"id": "JapPab1cD61f",
		"name": "Letters",
		"icon": "ti ti-file-alt",
		"color": "#4285F4",
		"reference": "letters",
		"templates": [
			{
				"id": "JapPJ01h760f",
				"name": "Welcome letter",
				"reference": "letters/welcome",
				"model": {
					"name": "Total.js OpenTemplates"
				}
			}
		]
	},
	{
		"id": "JapPJ01e761f",
		"name": "Contracts",
		"icon": "ti ti-folder",
		"color": "#E67E22",
		"reference": "contracts",
		"templates": []
	}
]
```

| Field | Meaning |
|---|---|
| `id` | The internal ID of the profile. |
| `name`, `icon`, `color` | As set in the [profile](../../guides/profiles/). |
| `reference` | The profile identifier. |
| `templates[].id` | The internal ID of the template. |
| `templates[].name` | The name of the template. |
| `templates[].reference` | The template ID to send to [Render a template](../render/). |
| `templates[].model` | The sample model of the template. See [Template syntax](../../guides/template-syntax/). |

## Without the permission

A token without **Allow read list of profiles** gets `401`:

```json
[{"name":"401","error":"401: Unauthorized"}]
```
