---
title: "List Schemas"
method: GET
path: "/v1/{workspace}/schema/"
---

# List Schemas

`GET /v1/{workspace}/schema/`

Retrieve a list of schemas in a workspace.

## Path parameters

- `workspace` string, required

## Query parameters

- `mode` 'draft' | 'live'

## Response `200`

Successfully retrieved list of schemas

- object
  - `meta` object — Metadata related to pagination information
    - `count` integer — Total number of schemas matching the query
    - `limit` integer — Number of results returned per page
    - `offset` integer — Offset value passed in the request
  - `results` object[] — Array of schemas
    - `slug` string — Unique identifier for the schema
    - `name` string — Human-readable name of the schema
    - `description` string, nullable — Description of the schema
    - `status` 'draft' | 'live' — Status of returned schema. By default, draft version is returned. You can set `mode=live` to fetch the live schema.
    - `hash` string — Git-like hash for version tracking
    - `json_schema` object, nullable — Structure of the workflow or event payload. Follows standard [json schema specification](https://json-schema.org/draft/2020-12/schema). You can link this schema to a workflow or event to validate their input payload in API response. Same schema can be linked to multiple workflows and events.
    - `created_at` string, date-time — When the schema was created
    - `updated_at` string, date-time — When the schema was last updated
    - `committed_at` string, date-time, nullable — When the schema was last committed. Only available for live schema.
    - `commit_message` string, nullable — Last commit message. Only available for live schema.

## Other responses

- `401` — Authentication failed
- `404` — Schema not found

---

[API](https://skmtc.net/suprsend/apis/suprsend-api.md) · [All operations](https://skmtc.net/suprsend/apis/suprsend-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/suprsend/suprsend-api/versions/8bd2574bd2c3/schema)
