---
title: "List edge definitions"
method: GET
path: "/_fabric/{fabric}/_api/graph/{graph}/edge"
tags: ["Graphs"]
---

# List edge definitions

`GET /_fabric/{fabric}/_api/graph/{graph}/edge`

## Request

- The document declares no server URL.
- Auth: one of:
  - API key in header `Authorization`
  - HTTP bearer
- TypeScript: <https://skmtc.dev/macrometa/apis/macrometa-api-reference/docs/_fabric/:fabric/_api/graph/:graph/edge/get.ts> (a function with typed inputs; its response is checked against the schema)

Fetch all edge collections within this graph.

## Path parameters

- `fabric` string, string, required
- `graph` string, string, required

## Response `200`

Successfully fetched edge definitions.

- GraphListEdgeHttpExamplesRc200
  - `code` integer: HTTP response code.
  - `error` boolean, required: Flag if there is an error in response. *False* for this response.
  - `collections` string[]: The list of all vertex collections within this graph. Includes collections in edge definitions as well as orphans.

## Other responses

- `401`: Failed because you do not have administrator permissions.
- `403`: Failed to validate because you do not have access to the server.
- `404`: Failed to find the specified graph.

---

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