---
title: "Gets the content contained within a task filtered by the content type."
method: GET
path: "/api/template/task-content"
tags: ["Template"]
---

# Gets the content contained within a task filtered by the content type.

`GET /api/template/task-content`

## Request

- Base URL: `https://app.checkflow.io` (the document declares no server; this is the origin it was published from)
- URL: `https://app.checkflow.io/api/template/task-content`
- Auth: none declared

If you do not know the key for the task you can use - GET: api/template/tasks

Sample request:

    GET: api/template/task-content
    {
       "taskKey": "07072bc4-f1eb-4536-819a-1ddb7dc109a1",
       "contentType": "ALL"
    }

## Query parameters

- `taskKey` string
- `contentType` string

## Headers

- `X-API-VERSION` string
- `X-API-KEY` unknown

## Response `200`

Returns the matching content controls

## Other responses

- `401`: If the API Key could not be validated
- `404`: If no content controls are found

---

[API](https://skmtc.dev/checkflow/apis/checkflow-api.md) · [All operations](https://skmtc.dev/checkflow/apis/checkflow-api/llms.txt) · [OpenAPI document](https://skmtc.dev/checkflow/apis/checkflow-api/revisions/4004b1f66432?raw)
