---
title: "List extraction templates for a datasource"
method: GET
path: "/api/v3/datasources/{datasource_name}/extract-templates"
tags: ["Extraction templates"]
---

# List extraction templates for a datasource

`GET /api/v3/datasources/{datasource_name}/extract-templates`

## Request

- Base URL: `https://embedded.improvado.io`
- URL: `https://embedded.improvado.io/api/v3/datasources/{datasource_name}/extract-templates`
- 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/datasources/:datasource_name/extract-templates/get.ts> (a function with typed inputs; its response is checked against the schema)

List extraction templates available for datasource

## Path parameters

- `datasource_name` string, required

## Response `200`

Get a list of extraction templates

- PaginatedExtractTemplateList[]
  - `count` integer: Number of extract templates
  - `next` string: URL to the next page
  - `previous` string: URL to the previous page
  - `results` object[]
    - `id` integer: Extract Template ID
    - `title` string: Extract Template title
    - `description` string: Extract Template description
    - `data_class` string: Data class
    - `labels` object[]: Extract Template labels
      - `color` string: Extract Template label color
      - `name` string: Extract Template label name
    - `datasource_name` string: Data source name

## Other responses

- `400`: Not Found
- `401`: Forbidden

---

[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)
