---
title: "Show all policies for a socket"
method: GET
path: "/socket/{socket_id_or_name}/policies"
---

# Show all policies for a socket

`GET /socket/{socket_id_or_name}/policies`

## Request

- Base URL: `https://api.border0.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.border0.com/socket/{socket_id_or_name}/policies`
- Auth: API key in header `Authorization`

## Path parameters

- `socket_id_or_name` string, required

## Response `200`

OK

- V1GetSocketPoliciesResponse
  - `attached_policies` SerializerPolicy[]
    - `created_at` string
    - `deleted` boolean
    - `description` string
    - `expires` boolean
    - `expires_at` string
    - `id` string
    - `messages` SerializerMessage[]
      - `level` string
      - `text` string
      - `type` string
    - `name` string
    - `org_id` string
    - `org_wide` boolean
    - `policy_data` DatatypesJSONMap
    - `read_only` boolean
    - `socket_ids` string[]
    - `tag_rules` object[]
    - `version` string
  - `org_wide_policies` SerializerPolicy[]
    - `created_at` string
    - `deleted` boolean
    - `description` string
    - `expires` boolean
    - `expires_at` string
    - `id` string
    - `messages` SerializerMessage[]
      - `level` string
      - `text` string
      - `type` string
    - `name` string
    - `org_id` string
    - `org_wide` boolean
    - `policy_data` DatatypesJSONMap
    - `read_only` boolean
    - `socket_ids` string[]
    - `tag_rules` object[]
    - `version` string
  - `tagged_policies` SerializerPolicy[]
    - `created_at` string
    - `deleted` boolean
    - `description` string
    - `expires` boolean
    - `expires_at` string
    - `id` string
    - `messages` SerializerMessage[]
      - `level` string
      - `text` string
      - `type` string
    - `name` string
    - `org_id` string
    - `org_wide` boolean
    - `policy_data` DatatypesJSONMap
    - `read_only` boolean
    - `socket_ids` string[]
    - `tag_rules` object[]
    - `version` string

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `404`: Not Found
- `500`: Internal Server Error

---

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