Retrieve a list of schemas in a workspace.
curl -X GET "https://management-api.suprsend.com/v1/{workspace}/schema/" \
--header 'Authorization: ServiceToken <token>' \
--header 'Content-Type: application/json'{
"meta": {
"count": 5,
"limit": 10,
"offset": 0
},
"results": [
{
"slug": "new-order-placed",
"name": "Order Placed Event",
"description": "Schema for order placement action",
"status": "draft",
"hash": "382b707d4b1f8999a1xxxxxxxx",
"json_schema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"order_id",
"amount"
],
"properties": {
"order_id": {
"type": "string"
},
"amount": {
"type": "string"
}
},
"additionalProperties": true
},
"created_at": "2025-08-27T09:30:57.945326Z",
"updated_at": "2025-08-29T15:37:37.650177Z",
"committed_at": null,
"commit_message": null
}
]
}You can get Service Token from SuprSend dashboard -> Account Settings -> Service Tokens section.
Workspace slug (staging, production, etc.)
Specify if you want to fetch draft or live schema.
draft, live Successfully retrieved list of schemas
Array of schemas
Show child attributes
Unique identifier for the schema
"new-order-placed"
Human-readable name of the schema
"Order Placed Event"
Description of the schema
"Schema for order placement action"
Status of returned schema. By default, draft version is returned. You can set mode=live to fetch the live schema.
draft, live "draft"
Git-like hash for version tracking
"382b707d4b1f8999a1xxxxxxxx"
Structure of the workflow or event payload. Follows standard json schema specification. 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.
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": ["order_id", "amount"],
"properties": {
"order_id": { "type": "string" },
"amount": { "type": "string" }
},
"additionalProperties": true
}When the schema was created
"2025-08-27T09:30:57.945326Z"
When the schema was last updated
"2025-08-29T15:37:37.650177Z"
When the schema was last committed. Only available for live schema.
null
Last commit message. Only available for live schema.
null
Was this page helpful?
curl -X GET "https://management-api.suprsend.com/v1/{workspace}/schema/" \
--header 'Authorization: ServiceToken <token>' \
--header 'Content-Type: application/json'{
"meta": {
"count": 5,
"limit": 10,
"offset": 0
},
"results": [
{
"slug": "new-order-placed",
"name": "Order Placed Event",
"description": "Schema for order placement action",
"status": "draft",
"hash": "382b707d4b1f8999a1xxxxxxxx",
"json_schema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"order_id",
"amount"
],
"properties": {
"order_id": {
"type": "string"
},
"amount": {
"type": "string"
}
},
"additionalProperties": true
},
"created_at": "2025-08-27T09:30:57.945326Z",
"updated_at": "2025-08-29T15:37:37.650177Z",
"committed_at": null,
"commit_message": null
}
]
}