---
title: "Lists all of the Policy Templates"
method: GET
path: "/policytemplates"
tags: ["Policytemplates", "Policies"]
---

# Lists all of the Policy Templates

`GET /policytemplates`

## Request

- Base URL: `https://console.jumpcloud.com/api/v2`
- URL: `https://console.jumpcloud.com/api/v2/policytemplates`
- Auth: API key in header `x-api-key`
- TypeScript: <https://skmtc.dev/jumpcloud/apis/jumpcloud-api-2/docs/policytemplates/get.ts> (a function with typed inputs; its response is checked against the schema)

This endpoint returns all policy templates.

#### Sample Request
```
curl -X GET https://console.jumpcloud.com/api/v2/policytemplates \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -H 'x-api-key: {API_KEY}'
  ```

## Query parameters

- `fields` string[]
- `filter` string[]
- `limit` integer
- `skip` integer
- `sort` string[]

## Headers

- `x-org-id` string

## Response `200`

OK

- PolicyTemplate[]
  - `activation` string: Requirements before the policy can be activated.
  - `behavior` string: Specifics about the behavior of the policy.
  - `deliveryTypes` string[]: The supported delivery mechanisms for this policy template.
  - `description` string: The default description for the Policy.
  - `displayName` string: The default display name for the Policy.
  - `id` string: ObjectId uniquely identifying a Policy Template.
  - `name` string: The unique name for the Policy Template.
  - `osMetaFamily` 'linux' | 'darwin' | 'windows' | 'ios' | 'universal' | 'android'
  - `state` string: String describing the release status of the policy template.
  - `alert` string, nullable: Text to describe any risk associated with this policy.
  - `reference` string, nullable: URL to visit for further information.
  - `osRestrictions` OSRestriction[]
    - `osName` string: The name of the OS in which this restriction applies
    - `earliestVersion` string: The earliest version of the OS in which the policy can be applied
    - `isMdmRequired` boolean: Boolean representing if the policy requires the device to be MDM enrolled
    - `deprecatedVersion` string: The version of the OS in which the policy was deprecated
    - `supportedEnrollmentTypes` string[]: This field is deprecated and will be ignored. Use appleRestrictions.supportedEnrollmentTypes instead
    - `appleRestrictions` object: The Apple specific restricitons for this policy, if there are any
      - `requiresSupervision` boolean: Boolean representing if the policy requires the Apple devices to be MDM supervised
      - `supportedEnrollmentTypes` string[]: The supported Apple enrollment types for this policy

## Other responses

- `500`: Unexpected error.

---

[API](https://skmtc.dev/jumpcloud/apis/jumpcloud-api-2.md) - [All operations](https://skmtc.dev/jumpcloud/apis/jumpcloud-api-2/llms.txt) - [OpenAPI document](https://skmtc.dev/jumpcloud/apis/jumpcloud-api-2/revisions/3f09fe63caaa?raw)
