HubSpot · JSON Structure

Hubspot Domains Error Structure

Represents an error response from the API

Type: object Properties: 7 Required: 3
AnalyticsCommerceContentCRMCustomer ServiceEmail MarketingMarketingMarketing AutomationOperationsSales

Error is a JSON Structure definition published by HubSpot, describing 7 properties, of which 3 are required. It conforms to the https://json-structure.org/draft/2020-12/schema meta-schema.

Properties

category correlationId message subCategory context links errors

Meta-schema: https://json-structure.org/draft/2020-12/schema

JSON Structure

Raw ↑
{
  "type": "object",
  "description": "Represents an error response from the API",
  "name": "Error",
  "properties": {
    "category": {
      "type": "string",
      "description": "The error category"
    },
    "correlationId": {
      "type": "uuid",
      "description": "A unique identifier for the request, useful for debugging"
    },
    "message": {
      "type": "string",
      "description": "A human-readable message describing the error"
    },
    "subCategory": {
      "type": "string",
      "description": "A more specific category for the error"
    },
    "context": {
      "type": "object",
      "description": "Additional context about the error"
    },
    "links": {
      "type": "object",
      "description": "Links to documentation or remediation steps"
    },
    "errors": {
      "type": "array",
      "description": "A list of specific error details",
      "items": {
        "type": "object",
        "description": "Detailed information about a specific error",
        "properties": {
          "message": {
            "type": "string",
            "description": "A human-readable message describing the specific error"
          },
          "code": {
            "type": "string",
            "description": "An error code for this specific error"
          },
          "in": {
            "type": "string",
            "description": "The field or parameter where the error occurred"
          },
          "subCategory": {
            "type": "string",
            "description": "A specific subcategory for this error"
          },
          "context": {
            "type": "object",
            "description": "Additional context for this error"
          }
        },
        "required": [
          "message"
        ]
      }
    }
  },
  "required": [
    "category",
    "correlationId",
    "message"
  ],
  "$schema": "https://json-structure.org/draft/2020-12/schema"
}