SweetValueLab · Schema

Envelope

Every endpoint on every service returns this shape. `ok` says which half is filled: on success `data` holds the payload and `error` is null; on failure `data` is null and `error` says why.

CompanyFinanceStocksDataToolsInvestor

Properties

Name Type Description
ok boolean
schema_version string Envelope contract version, currently "1". It changes only on a breaking change to this shape.
as_of string The day the payload speaks for.
code_version string The build that produced the payload. With as_of it is what makes a figure reproducible.
data objectarraynull The payload, or null on failure.
error object
View JSON Schema on GitHub

JSON Schema

sweetvaluelab-com-envelope-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sweetvaluelab-com/json-schema/sweetvaluelab-com-envelope-schema.json",
  "title": "Envelope",
  "description": "Every endpoint on every service returns this shape. `ok` says which half is filled: on success `data` holds the payload and `error` is null; on failure `data` is null and `error` says why.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sweetvaluelab-com-openapi.json#/components/schemas/Envelope",
  "type": "object",
  "required": [
    "ok",
    "schema_version",
    "as_of",
    "code_version",
    "data",
    "error"
  ],
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "schema_version": {
      "type": "string",
      "description": "Envelope contract version, currently \"1\". It changes only on a breaking change to this shape."
    },
    "as_of": {
      "type": "string",
      "format": "date",
      "description": "The day the payload speaks for."
    },
    "code_version": {
      "type": "string",
      "description": "The build that produced the payload. With as_of it is what makes a figure reproducible."
    },
    "data": {
      "description": "The payload, or null on failure.",
      "type": [
        "object",
        "array",
        "null"
      ]
    },
    "error": {
      "oneOf": [
        {
          "$ref": "#/$defs/ErrorDetail"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "$defs": {
    "ErrorDetail": {
      "type": "object",
      "required": [
        "code",
        "message"
      ],
      "properties": {
        "code": {
          "type": "string",
          "description": "Stable machine-readable code, e.g. not_found, bad_request."
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "additionalProperties": true
        }
      }
    }
  }
}

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/sweetvaluelab-com-envelope"
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.