REST Client · Schema

REST Client HTTP Request

Schema for an HTTP request as authored in a .http or .rest file using the VS Code REST Client extension.

ClientsHTTP ClientIDE ExtensionVS CodeAPI Testing

Properties

Name Type Description
method string The HTTP method for the request.
url string The full URL for the request, may include variable placeholders like {{host}}.
httpVersion string HTTP protocol version.
headers object HTTP request headers as key-value pairs.
body object The request body, as a string, JSON object, or GraphQL query.
name string Optional name for the request, used as a variable in request chaining (e.g., # @name myRequest).
variables object File-level variables defined with @variableName = value syntax.
environment string The active environment profile name providing variable values.
graphql object
View JSON Schema on GitHub

JSON Schema

rest-client-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://marketplace.visualstudio.com/items/humao.rest-client/schemas/request",
  "title": "REST Client HTTP Request",
  "description": "Schema for an HTTP request as authored in a .http or .rest file using the VS Code REST Client extension.",
  "type": "object",
  "required": ["method", "url"],
  "properties": {
    "method": {
      "type": "string",
      "enum": ["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS", "CONNECT", "TRACE"],
      "description": "The HTTP method for the request."
    },
    "url": {
      "type": "string",
      "description": "The full URL for the request, may include variable placeholders like {{host}}."
    },
    "httpVersion": {
      "type": "string",
      "enum": ["HTTP/1.1", "HTTP/2"],
      "default": "HTTP/1.1",
      "description": "HTTP protocol version."
    },
    "headers": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "HTTP request headers as key-value pairs."
    },
    "body": {
      "description": "The request body, as a string, JSON object, or GraphQL query.",
      "oneOf": [
        { "type": "string" },
        { "type": "object" },
        { "type": "array" }
      ]
    },
    "name": {
      "type": "string",
      "description": "Optional name for the request, used as a variable in request chaining (e.g., # @name myRequest)."
    },
    "variables": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "File-level variables defined with @variableName = value syntax."
    },
    "environment": {
      "type": "string",
      "description": "The active environment profile name providing variable values."
    },
    "graphql": {
      "$ref": "#/$defs/GraphQLRequest"
    }
  },
  "$defs": {
    "GraphQLRequest": {
      "title": "GraphQL Request",
      "description": "GraphQL-specific request body structure.",
      "type": "object",
      "required": ["query"],
      "properties": {
        "query": {
          "type": "string",
          "description": "The GraphQL query or mutation string."
        },
        "variables": {
          "type": "object",
          "description": "Variable values for the GraphQL query."
        },
        "operationName": {
          "type": "string",
          "description": "Optional operation name for multi-operation documents."
        }
      }
    }
  }
}

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/rest-client-request"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

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