---
title: "The structured sources a collection's own classes can be created from"
method: GET
path: "/api/v0/graph-source-schemas"
tags: ["Knowledge Base Graph"]
---

# The structured sources a collection's own classes can be created from

`GET /api/v0/graph-source-schemas`

## Request

- Base URL: `https://api.outerport.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.outerport.com/api/v0/graph-source-schemas`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/outerport/apis/outerport-api/docs/api/v0/graph-source-schemas/get.ts> (a function with typed inputs; its response is checked against the schema)

## Response `200`

Successful Response

- SourceSchemaItem[]
  - `kind` string, required
  - `class_roles` SourceClassRoleItem[], required
    - `id` string, required
    - `fields` SourceFieldItem[], required
      - `name` string, required
      - `kinds` string[], required: The attribute kinds this field can fill.
  - `link_roles` SourceLinkRoleItem[], required
    - `id` string, required
    - `source_role` string, required
    - `target_role` string, required

## Changes

- **2026-11-09** `ecd5b922e78a`: 1 breaking, 2 info
  - the `items/class_roles/items/fields/items/` response's property type changed from `string` to `object` for status `200`
  - added the required property `items/class_roles/items/fields/items/kinds` to the response with the `200` status
  - added the required property `items/class_roles/items/fields/items/name` to the response with the `200` status
- **2026-10-22** `762a02693cbb`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/outerport/apis/outerport-api/changes/api/v0/graph-source-schemas/get.md)

---

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