> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wiseyield.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Get template

> Retrieve a single template (own or global).

```
GET https://www.wiseyield.co/api/v1/templates/{id}
```

### Authentication

Requires a key with the `tasks:read` scope.

### Path parameters

<ParamField path="id" type="string" required>Template UUID.</ParamField>

### Response

Returns the template wrapped under `data`. See [List templates](/api-reference/templates/list-templates) for the full field reference.

<RequestExample>
  ```bash cURL theme={null}
  curl 'https://www.wiseyield.co/api/v1/templates/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee' \
    -H "Authorization: Bearer $WISEYIELD_API_KEY"
  ```
</RequestExample>

## Errors

| Status                    | When                                                                         |
| ------------------------- | ---------------------------------------------------------------------------- |
| `400 INVALID_ID`          | `{id}` is not a valid UUID                                                   |
| `401`                     | Missing, malformed, expired, or revoked API key                              |
| `403 INSUFFICIENT_SCOPE`  | Key lacks `tasks:read` scope                                                 |
| `404 NOT_FOUND`           | Template doesn't exist, is soft-deleted, or is neither user-owned nor global |
| `429 RATE_LIMIT_EXCEEDED` | Per-user rate limit reached                                                  |
| `5xx`                     | Server error                                                                 |
