usewrit-app · Schema

StoredFile

OpenAI-style file handle (`api/v1/files.rs::WireStoredFile`). Note `bytes` (not `size_bytes`) and `created_at` as UNIX epoch SECONDS (not RFC3339).

AutomationMCPNo-CodeSoftware-as-a-Service

Properties

Name Type Description
id string `file_` handle id.
object string
filename string
content_type string
bytes integer Size in bytes.
created_at integer UNIX epoch seconds (0 when the stored timestamp is malformed).
status string
source string
purpose string Defaults to `user_data`.
View JSON Schema on GitHub

JSON Schema

usewrit-app-stored-file-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/usewrit-app/json-schema/usewrit-app-stored-file-schema.json",
  "title": "StoredFile",
  "description": "OpenAI-style file handle (`api/v1/files.rs::WireStoredFile`). Note `bytes` (not `size_bytes`) and `created_at` as UNIX epoch SECONDS (not RFC3339).",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/usewrit-app-files-api-openapi.yml#/components/schemas/StoredFile",
  "type": "object",
  "required": [
    "id",
    "object",
    "filename",
    "content_type",
    "bytes",
    "created_at",
    "status",
    "source",
    "purpose"
  ],
  "properties": {
    "id": {
      "type": "string",
      "description": "`file_<hex>` handle id."
    },
    "object": {
      "type": "string",
      "const": "file"
    },
    "filename": {
      "type": "string"
    },
    "content_type": {
      "type": "string"
    },
    "bytes": {
      "type": "integer",
      "format": "int64",
      "description": "Size in bytes."
    },
    "created_at": {
      "type": "integer",
      "format": "int64",
      "description": "UNIX epoch seconds (0 when the stored timestamp is malformed)."
    },
    "status": {
      "type": "string"
    },
    "source": {
      "type": "string",
      "enum": [
        "upload",
        "api",
        "workflow_output"
      ]
    },
    "purpose": {
      "type": "string",
      "description": "Defaults to `user_data`."
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/usewrit-app-stored-file"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.