HTTPie · Schema

HTTPie Session

Schema representing an HTTPie named session, which persists headers, authentication, and cookies across requests.

API ClientAPI TestingCLIClientsCommand LineDeveloper ToolsHTTPOpen-SourceSessions

Properties

Name Type Description
name string The name of the HTTPie session.
host string The host associated with this session.
auth object Authentication credentials stored in the session.
headers object Default headers sent with every request in this session.
cookies array Cookies stored and sent with requests in this session.
verify boolean Whether to verify SSL certificates for requests in this session.
View JSON Schema on GitHub

JSON Schema

session.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/httpie/refs/heads/main/json-schema/session.json",
  "title": "HTTPie Session",
  "description": "Schema representing an HTTPie named session, which persists headers, authentication, and cookies across requests.",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "The name of the HTTPie session."
    },
    "host": {
      "type": "string",
      "description": "The host associated with this session."
    },
    "auth": {
      "type": "object",
      "description": "Authentication credentials stored in the session.",
      "properties": {
        "type": {
          "type": "string",
          "description": "The authentication type.",
          "enum": ["basic", "bearer", "digest"]
        },
        "username": {
          "type": "string",
          "description": "Username for basic or digest authentication."
        },
        "password": {
          "type": "string",
          "description": "Password for basic or digest authentication."
        },
        "token": {
          "type": "string",
          "description": "Token for bearer authentication."
        }
      }
    },
    "headers": {
      "type": "object",
      "description": "Default headers sent with every request in this session.",
      "additionalProperties": {
        "type": "string"
      }
    },
    "cookies": {
      "type": "array",
      "description": "Cookies stored and sent with requests in this session.",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "The cookie name."
          },
          "value": {
            "type": "string",
            "description": "The cookie value."
          },
          "domain": {
            "type": "string",
            "description": "The domain the cookie is scoped to."
          },
          "path": {
            "type": "string",
            "description": "The path the cookie is scoped to."
          },
          "secure": {
            "type": "boolean",
            "description": "Whether the cookie requires HTTPS."
          },
          "expires": {
            "type": "string",
            "format": "date-time",
            "description": "The expiration date-time of the cookie."
          }
        },
        "required": ["name", "value"]
      }
    },
    "verify": {
      "type": "boolean",
      "description": "Whether to verify SSL certificates for requests in this session.",
      "default": true
    }
  },
  "required": ["name"]
}

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/session"
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 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. See our Privacy Policy and Terms.

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