HubSpot · Schema

Error

Standard error response object

AnalyticsCommerceContentCRMCustomer ServiceEmail MarketingMarketingMarketing AutomationSales

Properties

Name Type Description
category string The category of the error
correlationId string A unique identifier for tracking this error
message string A human-readable error message
subCategory string A more specific error category
context object Additional context about the error
links object Links to relevant documentation
errors array List of specific errors
View JSON Schema on GitHub

JSON Schema

hubspot-oauth-error-schema.json Raw ↑
{
  "type": "object",
  "description": "Standard error response object",
  "properties": {
    "category": {
      "type": "string",
      "description": "The category of the error",
      "example": "VALIDATION_ERROR"
    },
    "correlationId": {
      "type": "string",
      "description": "A unique identifier for tracking this error",
      "format": "uuid",
      "example": "aeb5f871-7f07-4993-9211-075dc63e7cbf"
    },
    "message": {
      "type": "string",
      "description": "A human-readable error message",
      "example": "Invalid refresh token"
    },
    "subCategory": {
      "type": "string",
      "description": "A more specific error category",
      "example": "INVALID_TOKEN"
    },
    "context": {
      "type": "object",
      "description": "Additional context about the error",
      "example": {
        "invalidToken": [
          "The provided token is invalid or expired"
        ]
      }
    },
    "links": {
      "type": "object",
      "description": "Links to relevant documentation",
      "example": {
        "knowledge-base": "https://developers.hubspot.com/docs/api/oauth"
      }
    },
    "errors": {
      "type": "array",
      "description": "List of specific errors",
      "example": [
        {
          "message": "Invalid parameter value",
          "code": "INVALID_PARAMETER",
          "subCategory": "MISSING_REQUIRED_FIELD",
          "in": "body",
          "context": {
            "missingFields": [
              "client_secret"
            ]
          }
        }
      ],
      "items": {
        "type": "object",
        "description": "Detailed information about a specific error",
        "properties": {
          "message": {
            "type": "string",
            "description": "A human-readable error message",
            "example": "Invalid parameter value"
          },
          "code": {
            "type": "string",
            "description": "An error code",
            "example": "INVALID_PARAMETER"
          },
          "subCategory": {
            "type": "string",
            "description": "A specific error subcategory",
            "example": "MISSING_REQUIRED_FIELD"
          },
          "in": {
            "type": "string",
            "description": "The location of the error (e.g., body, query, path)",
            "example": "body"
          },
          "context": {
            "type": "object",
            "description": "Additional context about the specific error",
            "example": {
              "missingFields": [
                "client_secret"
              ]
            }
          }
        },
        "required": [
          "message"
        ]
      }
    }
  },
  "required": [
    "category",
    "correlationId",
    "message"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Error"
}

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/hubspot-oauth-error"
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.