> ## Documentation Index
> Fetch the complete documentation index at: https://docs.zype.com/llms.txt
> Use this file to discover all available pages before exploring further.

# View Relationships

Returns a list of playlists and its relationships

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Platform",
    "version": "1.0.0",
    "description": ""
  },
  "servers": [
    {
      "url": "https://api.zype.com/"
    }
  ],
  "security": [
    {
      "api_key": []
    }
  ],
  "components": {
    "securitySchemes": {
      "api_key": {
        "type": "apiKey",
        "name": "api_key",
        "in": "query"
      }
    }
  },
  "paths": {
    "/playlists/relationships": {
      "get": {
        "summary": "View Relationships",
        "description": "Returns a list of playlists and its relationships",
        "tags": [
          "Playlists"
        ],
        "parameters": [
          {
            "name": "parent_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Returns only the playlists relationships under a parent playlist\nExample: `parent_id=5992f328ce593000dff000001`"
          }
        ],
        "operationId": "viewPlaylistRelationships",
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "title": "PlaylistRelationshipsResponse",
                  "type": "object",
                  "properties": {
                    "playlists": {
                      "type": "array",
                      "items": {
                        "title": "PlaylistRelationship",
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "title": {
                            "type": "string"
                          },
                          "priority": {
                            "type": "integer"
                          },
                          "playlists": {
                            "type": "array",
                            "items": {
                              "type": "object"
                            }
                          }
                        },
                        "example": {
                          "id": "586124bfa54d7535cb001fc2",
                          "title": "Playlist A",
                          "priority": 1,
                          "playlists": [
                            {
                              "id": "486124bfa54d7535cb001b31",
                              "title": "Playlist B",
                              "priority": 2
                            }
                          ]
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
```