---
title: "Get an extraction template by id"
method: GET
path: "/api/v3/extract-template/{template_id}/"
tags: ["Extraction templates"]
---

# Get an extraction template by id

`GET /api/v3/extract-template/{template_id}/`

## Request

- Base URL: `https://embedded.improvado.io`
- URL: `https://embedded.improvado.io/api/v3/extract-template/{template_id}/`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `dts_session_id`
- TypeScript: <https://skmtc.dev/improvado/apis/improvado-embedded-api-v3/docs/api/v3/extract-template/:template_id/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns a compact representation of an extraction template, including whether it is a wide report template. Useful for deciding which extract flow to use before creating or migrating an extract.

## Path parameters

- `template_id` integer, required

## Response `200`

Extraction template

- ExtractTemplateRetrieveResponse: Compact representation of an extraction template.
  - `id` integer: Extraction template ID.
  - `datasource_name` string: Data source name.
  - `is_wide_template` boolean: Whether the template is a wide report template.

## Other responses

- `403`: Forbidden
- `404`: Not found

---

[API](https://skmtc.dev/improvado/apis/improvado-embedded-api-v3.md) - [All operations](https://skmtc.dev/improvado/apis/improvado-embedded-api-v3/llms.txt) - [OpenAPI document](https://skmtc.dev/improvado/apis/improvado-embedded-api-v3/revisions/a881099bd6c4?raw)
