Capabilities
get_scratch
Preview untrusted draft content and its revision.
How this capability is exposed
- Stable ID
ursy.cloud:get_scratch- Owning service
- URSY.cloud
- Runtime
- See the source declaration
Capability declarations describe what the service exposes. They are not a guarantee of availability or permission to execute an operation.
Accepted contract
{
"id": "ursy.cloud:get_scratch",
"name": "get_scratch",
"description": "Preview untrusted draft content and its revision.",
"method": "GET",
"path": "/v1/scratch/{draft_id}",
"inputSchema": {
"type": "object",
"additionalProperties": false,
"properties": {
"draft_id": {
"type": "string",
"pattern": "^draft_[a-f0-9]{32}$"
}
},
"required": [
"draft_id"
]
},
"outputSchema": {
"type": "object",
"additionalProperties": true,
"properties": {
"draft": {
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"type": "string",
"pattern": "^draft_[a-f0-9]{32}$"
},
"name": {
"type": "string",
"maxLength": 190,
"x-ursy-maxBytes": 190
},
"type": {
"type": "string",
"enum": [
"document",
"spreadsheet",
"presentation",
"note",
"publication"
]
},
"expires_at": {
"type": "string"
},
"state": {
"type": "string",
"enum": [
"draft",
"promoted"
]
},
"file_id": {
"oneOf": [
{
"type": "string",
"pattern": "^file_[1-9][0-9]{0,14}$"
},
{
"type": "null"
}
]
},
"content": {
"type": "object",
"additionalProperties": true
},
"content_is_untrusted": {
"const": true
}
},
"required": [
"id",
"name",
"type",
"expires_at",
"state",
"file_id",
"content",
"content_is_untrusted"
]
}
},
"required": [
"draft"
]
},
"auth_required": true,
"scope": "cloud.scratch.manage",
"read_only": true,
"service_id": "ursy-cloud",
"parent_id": "",
"summary": "Preview untrusted draft content and its revision.",
"source_url": "https://api.ursy.cloud/v1/registry-capabilities",
"source_type": "capability_manifest",
"verified_at": "2026-10-14 03:31:28",
"revision": "a9f19da5e0b26dbc7f570c09eff5c8a688b45daf5ddf0449b91acfd01279d754",
"type": "capabilities",
"source": {
"url": "https://api.ursy.cloud/v1/registry-capabilities",
"type": "capability_manifest"
},
"last_verified_at": "2026-10-14 03:31:28",
"stale": false
}