URSY.DEVPART OF THE URSY NETWORKSign inBuild with URSY

Every contract sourcedEvery check datedGaps shown, never filledBuild with URSY

Capabilities

list_scratch

List up to 50 drafts belonging to this grant.

How this capability is exposed

Stable ID
ursy.cloud:list_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

REGISTRY JSON
{
    "id": "ursy.cloud:list_scratch",
    "name": "list_scratch",
    "description": "List up to 50 drafts belonging to this grant.",
    "method": "GET",
    "path": "/v1/scratch",
    "inputSchema": {
        "type": "object",
        "additionalProperties": false
    },
    "outputSchema": {
        "type": "object",
        "additionalProperties": true,
        "properties": {
            "drafts": {
                "type": "array",
                "items": {
                    "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"
                    ]
                },
                "minItems": 0,
                "maxItems": 50
            }
        },
        "required": [
            "drafts"
        ]
    },
    "auth_required": true,
    "scope": "cloud.scratch.manage",
    "read_only": true,
    "service_id": "ursy-cloud",
    "parent_id": "",
    "summary": "List up to 50 drafts belonging to this grant.",
    "source_url": "https://api.ursy.cloud/v1/registry-capabilities",
    "source_type": "capability_manifest",
    "verified_at": "2026-10-15 07:03:21",
    "revision": "c5a73f266a9af7311161e0246374d41108752d0f78297150290086012c3f2385",
    "type": "capabilities",
    "source": {
        "url": "https://api.ursy.cloud/v1/registry-capabilities",
        "type": "capability_manifest"
    },
    "last_verified_at": "2026-10-15 07:03:21",
    "stale": false
}