# List client templates — API reference

> Returns Client templates with pagination and optional scope, search and sorting filters.

Source: https://upfour.io/docs/api/client-templates/list-client-templates

[Developers](https://upfour.io/docs/api.md)/[Client templates](https://upfour.io/docs/api/client-templates.md)

Returns Client templates with pagination and optional scope, search and sorting filters.

GET https://app.upfour.io/v1/client-templates

scope client.read stable returns 200

## Parameters

| Field | Type | Description |
| --- | --- | --- |
| `limit` optional | integer 1–250 default `50` | query parameter |
| `cursor` optional | string | query parameter |
| `client_id` optional | uuid | query parameter |
| `all_clients` optional | boolean | query parameter |
| `q` optional | string | query parameter |
| `sort` optional | string | query parameter |

## Returns

A successful request returns `200` with application/json.

Response fields 2 top-level fields

| Field | Type | Description |
| --- | --- | --- |
| `data` | ClientTemplateView[]  · nullable | |
| Each item · 15 fields FieldTypeDescription `created_at` string (date-time) `description` string `design_templates` object[]  · nullable The status page designs the spec refers to. Each item · 7 fields FieldTypeDescription `id` uuid `asset_kinds` string[] `includes_css` boolean `layout` string `missing` boolean True, with only id present, when the design no longer exists. `name` string `revision` integer `id` uuid `name` string `organization_id` uuid `spec` any The spec as stored: the monitors, escalation_policies and status_pages lists described in the request, each optional. `updated_at` string (date-time) | | |
| `pagination` | Pagination | |
| Pagination · 5 fields FieldTypeDescription `cursor` string  · nullable `has_more` boolean `limit` integer 1–250 `next_cursor` string  · nullable `prev_cursor` string  · nullable | | |

## Errors

Only the errors this operation can return. Every error uses the [same envelope](https://upfour.io/docs/api/responses.md).

| Status | Code | Meaning |
| --- | --- | --- |
| 400 | [bad_request](https://upfour.io/docs/api/errors#code-bad_request) | The request is malformed or fails validation. |
| 404 | [not_found](https://upfour.io/docs/api/errors#code-not_found) | The requested resource does not exist or is outside the caller's scope. |

Every call can also return `unauthorized` (401), `rate_limit_exceeded` (429) or `internal_error` (500 / 502). See [Responses and errors](https://upfour.io/docs/api/responses.md).

[NextCreate a client template](https://upfour.io/docs/api/client-templates/create-a-client-template.md)

## Request

### cURL

```bash
curl -s "https://app.upfour.io/v1/client-templates" \
  -H "Authorization: Bearer $UP4_API_KEY"
```

### JavaScript

```javascript
const res = await fetch("https://app.upfour.io/v1/client-templates", {
  headers: {
    Authorization: `Bearer ${process.env.UP4_API_KEY}`,
  },
});
console.log(res.status, await res.json());
```

### Python

```python
import os
import requests

res = requests.get(
    "https://app.upfour.io/v1/client-templates",
    headers={"Authorization": f"Bearer {os.environ['UP4_API_KEY']}"},
)
print(res.status_code, res.json())
```

### Go

```go
package main

import (
	"fmt"
	"io"
	"net/http"
	"os"
)

func main() {
	req, _ := http.NewRequest("GET", "https://app.upfour.io/v1/client-templates", nil)
	req.Header.Set("Authorization", "Bearer "+os.Getenv("UP4_API_KEY"))
	res, err := http.DefaultClient.Do(req)
	if err != nil {
		panic(err)
	}
	defer res.Body.Close()
	out, _ := io.ReadAll(res.Body)
	fmt.Println(res.StatusCode, string(out))
}
```

### PHP

```php
<?php
$ch = curl_init("https://app.upfour.io/v1/client-templates");
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        "Authorization: Bearer " . getenv("UP4_API_KEY"),
    ],
]);
$response = curl_exec($ch);
echo curl_getinfo($ch, CURLINFO_RESPONSE_CODE), " ", $response, "\n";
curl_close($ch);
```

## Response

### 200

```json
{
  "data": [
    {
      "created_at": "2026-10-27T09:00:00Z",
      "description": "Starter template — one HTTP monitor for the client's primary domain plus a public status page.",
      "design_templates": [],
      "id": "00000000-0000-4000-8000-000000000001",
      "name": "Default",
      "organization_id": "00000000-0000-4000-8000-000000000002",
      "spec": {
        "monitors": [
          {
            "alert_type": "status",
            "http_method": "GET",
            "interval": 180,
            "kind": "http",
            "name_from": "{{client_name}} — website",
            "url": "https://{{domain}}"
          }
        ],
        "status_pages": [
          {
            "include_all_monitors": true,
            "name": "{{client_name}} status",
            "subdomain_from": "{{client_slug}}"
          }
        ]
      },
      "updated_at": "2026-10-27T09:00:00Z"
    },
    {
      "created_at": "2026-10-27T09:00:00Z",
      "description": "One website monitor per client.",
      "design_templates": [],
      "id": "00000000-0000-4000-8000-000000000003",
      "name": "Website starter",
      "organization_id": "00000000-0000-4000-8000-000000000002",
      "spec": {
        "monitors": [
          {
            "interval": 180,
            "kind": "http",
            "name_from": "{{domain}}",
            "url": "https://{{domain}}"
          }
        ]
      },
      "updated_at": "2026-10-27T09:00:00Z"
    }
  ],
  "pagination": {
    "cursor": null,
    "has_more": false,
    "limit": 50,
    "next_cursor": null,
    "prev_cursor": null
  }
}
```

### 400

```json
{
  "error": {
    "code": "bad_request",
    "message": "The request is malformed or fails validation.",
    "request_id": "req_…"
  }
}
```

### 404

```json
{
  "error": {
    "code": "not_found",
    "message": "The requested resource does not exist or is outside the caller's scope.",
    "request_id": "req_…"
  }
}
```
