---
title: "Show a socket's access graph by ID"
method: GET
path: "/access_graph/socket/:socket_id"
---

# Show a socket's access graph by ID

`GET /access_graph/socket/:socket_id`

## 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/access_graph/socket/:socket_id`
- Auth: API key in header `Authorization`

## Path parameters

- `socket_id` string, required

## Response `200`

OK

- SerializerAccessGraph
  - `edges` SerializerAccessGraphEdge[]
    - `dst_node_id` string
    - `edge_id` string
    - `src_node_id` string
  - `nodes` SerializerAccessGraphNode[]
    - `label` string
    - `metadata` object
    - `node_id` string
    - `resource_id` string
    - `resource_type` 'user' | 'group' | 'service account' | 'policy' | 'socket'
    - `warnings` SerializerWarning[]
      - `args` object
      - `code` string
  - `principal_resource_type` 'user' | 'group' | 'service account' | 'policy' | 'socket'

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