# Return a list of all policies

```yaml
GET /external-policies/requests
```

```yaml
Returns all policies.
```

**Headers**

| Name          | Value              |
| ------------- | ------------------ |
| Content-Type  | `application/json` |
| Authorization | `Bearer <token>`   |

**Body**

<table><thead><tr><th>Name</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td>pageIndex</td><td>number</td><td><pre class="language-yaml"><code class="lang-yaml">The number of pages to skip before starting to collect the result set
</code></pre></td></tr><tr><td>pageSize</td><td>number</td><td><pre class="language-yaml"><code class="lang-yaml">The numbers of items to return
</code></pre></td></tr><tr><td>policyId</td><td>String</td><td>Policy ID</td></tr></tbody></table>

**Response**

{% tabs %}
{% tab title="200" %}

```json
{
  description: Successful operation.
          headers:
            X-Total-Count:
              schema:
                type: integer
              description: Total items in the collection.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/PolicyDTO'
}
```

{% endtab %}

{% tab title="401" %}

```json
{
  description: Unauthorized.
}
```

{% endtab %}

{% tab title="403" %}

```
{
description: Forbidden.
}
```

{% endtab %}

{% tab title="500" %}

```
{
description: Internal server error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerErrorDTO'
  }
```

{% endtab %}
{% endtabs %}
