# Get a template analysis (/docs/reference/Rest-API/api-docs/templates/getTemplateAnalysis)


{/* This file was generated by Fumadocs. Do not edit this file directly. Any changes should be made by running the generation command again. */}

## GET /v2/templates/{template_id}/analyses/{analysis_id}

`GET https://api.verdocs.com/v2/templates/{template_id}/analyses/{analysis_id}`

### Path parameters

- `template_id` (string, required)
- `analysis_id` (string, required)

### Responses

#### 200: Success

Content type `application/json`.

Type: `ITemplateAnalysis`

A model's suggested cleanup of a template's fields.

- `completed_at` (string, required): When the analysis finished.
- `created_at` (string, required): When the analysis was requested.
- `effort` (string, required): The effort level it ran at.
- `error` (string, required): What went wrong, when any page failed.
- `id` (string, required): The analysis ID.
- `model` (string, required): The Bedrock model that ran it.
- `organization_id` (string, required): The organization that owns the template.
- `pages_done` (integer, required): Pages finished so far, including any that failed.
- `pages_total` (integer, required): Pages with fields to analyze.
- `profile_id` (string, required): Who asked for the analysis.
- `result` (string): The suggestions per page, once complete. Only getTemplateAnalysis includes them.
- `status` (string, required): Poll until this is "complete" or "failed".
- `template_id` (string, required): The template analyzed.
- `updated_at` (string, required): When the analysis last changed.
- `usage` (string, required): Token totals across every page.

#### 400: Request Error

Content type `application/json`.

- `status` (string, required): Always set to "ERROR". One of: `"ERROR"`.
- `error` (string, required): Description of the error that occurred.

#### 401: Access Denied

Content type `application/json`.

- `status` (string, required): Always set to "ERROR". One of: `"ERROR"`.
- `error` (string, required): Description of the error that occurred.

#### 404: Not Found

Content type `application/json`.

- `status` (string, required): Always set to "ERROR". One of: `"ERROR"`.
- `error` (string, required): Description of the error that occurred.

#### 406: Invalid Parameter

Content type `application/json`.

- `status` (string, required): Always set to "ERROR". One of: `"ERROR"`.
- `error` (string, required): Description of the error that occurred.

### Example request

```bash
curl -X GET "https://api.verdocs.com/v2/templates/TEMPLATE_ID/analyses/ANALYSIS_ID" \
    -H "Authorization: Bearer ACCESS_TOKEN" \
    -H "content-type: application/json" \
    -d '{"param": "value"}'
```
