Twilio Segment · Schema

Context

Dictionary of extra context for the call. Context is a dictionary of extra information that provides useful context about a data point, such as the user's IP address, locale, or device information.

CompanyCustomer Data PlatformCDPIdentity ResolutionEvent StreamingReverse ETLData PipelineCustomer DataAnalyticsAcquired

Properties

Name Type Description
active boolean Whether the user is active.
ip string The IP address of the user.
locale string The locale string for the user.
userAgent string The user agent string of the client.
library object Information about the library making the call.
page object Information about the current page.
device object Information about the user's device.
View JSON Schema on GitHub

JSON Schema

segment-context-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/Context",
  "title": "Context",
  "type": "object",
  "description": "Dictionary of extra context for the call. Context is a dictionary of extra information that provides useful context about a data point, such as the user's IP address, locale, or device information.",
  "properties": {
    "active": {
      "type": "boolean",
      "description": "Whether the user is active."
    },
    "ip": {
      "type": "string",
      "description": "The IP address of the user."
    },
    "locale": {
      "type": "string",
      "description": "The locale string for the user."
    },
    "userAgent": {
      "type": "string",
      "description": "The user agent string of the client."
    },
    "library": {
      "type": "object",
      "description": "Information about the library making the call.",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the library."
        },
        "version": {
          "type": "string",
          "description": "The version of the library."
        }
      }
    },
    "page": {
      "type": "object",
      "description": "Information about the current page.",
      "properties": {
        "path": {
          "type": "string",
          "description": "The path of the page."
        },
        "referrer": {
          "type": "string",
          "format": "uri",
          "description": "The referrer URL."
        },
        "search": {
          "type": "string",
          "description": "The search query string."
        },
        "title": {
          "type": "string",
          "description": "The page title."
        },
        "url": {
          "type": "string",
          "format": "uri",
          "description": "The full URL of the page."
        }
      }
    },
    "device": {
      "type": "object",
      "description": "Information about the user's device.",
      "properties": {
        "id": {
          "type": "string",
          "description": "The device ID."
        },
        "manufacturer": {
          "type": "string",
          "description": "The device manufacturer."
        },
        "model": {
          "type": "string",
          "description": "The device model."
        },
        "name": {
          "type": "string",
          "description": "The device name."
        },
        "type": {
          "type": "string",
          "description": "The device type."
        }
      }
    }
  }
}

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/segment-context"
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.