URSY.DEVPART OF THE URSY NETWORKSign inBuild with URSY

Every contract sourcedEvery check datedGaps shown, never filledBuild with URSY

Endpoints

read_note

Read the authorized native note and current ETag.

GET/v1/notes/{file_id}v1.8.3

Request

Authentication is required by the published contract.

CURL
curl 'https://api.ursy.cloud/v1/notes/{file_id}' \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer YOUR_SERVICE_TOKEN'
Scopes
Not specified by this operation
Execution
At the owning service
Risk classification
not declared

Parameters

file_id path · string required

See the accepted schema for constraints.

This operation is documented here. Use the owning service with the appropriate credentials and permissions to execute it.

Response schemas and request body
CONTRACT JSON
{
    "requestBody": null,
    "responses": {
        "200": {
            "description": "Typed operation result; request_id correlates the request.",
            "content": {
                "application/json": {
                    "schema": {
                        "type": "object",
                        "additionalProperties": true,
                        "properties": {
                            "file": {
                                "type": "object",
                                "additionalProperties": false,
                                "properties": {
                                    "schema": {
                                        "type": "string",
                                        "enum": [
                                            "ursy.cloud/file/v1"
                                        ]
                                    },
                                    "id": {
                                        "type": "string",
                                        "pattern": "^file_[1-9][0-9]{0,14}$"
                                    },
                                    "workspace_id": {
                                        "type": "string",
                                        "pattern": "^ws_[1-9][0-9]*$"
                                    },
                                    "parent_id": {
                                        "oneOf": [
                                            {
                                                "type": "string",
                                                "pattern": "^file_[1-9][0-9]{0,14}$"
                                            },
                                            {
                                                "type": "null"
                                            }
                                        ]
                                    },
                                    "name": {
                                        "type": "string",
                                        "maxLength": 190,
                                        "x-ursy-maxBytes": 190
                                    },
                                    "type": {
                                        "type": "string",
                                        "enum": [
                                            "folder",
                                            "document",
                                            "spreadsheet",
                                            "presentation",
                                            "note",
                                            "publication",
                                            "pdf",
                                            "uploaded_file"
                                        ]
                                    },
                                    "current_version_id": {
                                        "oneOf": [
                                            {
                                                "type": "string",
                                                "pattern": "^ver_[1-9][0-9]*$"
                                            },
                                            {
                                                "type": "null"
                                            }
                                        ]
                                    },
                                    "etag": {
                                        "type": "string",
                                        "pattern": "^\"[a-f0-9]{64}\"$"
                                    },
                                    "state": {
                                        "type": "string",
                                        "enum": [
                                            "active",
                                            "trashed"
                                        ]
                                    },
                                    "created_at": {
                                        "type": "string"
                                    },
                                    "updated_at": {
                                        "type": "string"
                                    },
                                    "human_url": {
                                        "type": "string"
                                    }
                                },
                                "required": [
                                    "schema",
                                    "id",
                                    "workspace_id",
                                    "parent_id",
                                    "name",
                                    "type",
                                    "current_version_id",
                                    "etag",
                                    "state",
                                    "created_at",
                                    "updated_at",
                                    "human_url"
                                ]
                            },
                            "content": {
                                "type": "object",
                                "additionalProperties": false,
                                "properties": {
                                    "title": {
                                        "type": "string",
                                        "maxLength": 190,
                                        "x-ursy-maxBytes": 190
                                    },
                                    "content": {
                                        "type": "string",
                                        "maxLength": 500000,
                                        "x-ursy-maxBytes": 500000
                                    },
                                    "tags": {
                                        "type": "array",
                                        "items": {
                                            "type": "string",
                                            "maxLength": 40,
                                            "x-ursy-maxBytes": 40
                                        },
                                        "minItems": 0,
                                        "maxItems": 20
                                    },
                                    "pinned": {
                                        "type": "boolean"
                                    },
                                    "archived": {
                                        "type": "boolean"
                                    }
                                },
                                "required": [
                                    "title",
                                    "content"
                                ]
                            },
                            "content_is_untrusted": {
                                "type": "boolean"
                            },
                            "request_id": {
                                "type": "string"
                            },
                            "replayed": {
                                "type": "boolean"
                            }
                        },
                        "required": [
                            "file",
                            "content",
                            "content_is_untrusted"
                        ]
                    }
                }
            }
        },
        "default": {
            "description": "Stable error envelope. 401 invalid/expired/revoked grant; 403 missing scope; 404 unavailable resource; 409 plan/idempotency conflict; 412 stale ETag; 413 size/quota; 429 rate limit.",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/Error"
                    }
                }
            }
        }
    }
}