HubSpot · JSON Structure

Hubspot Marketing Emal Error Structure

Error response

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": "Error response",
  "name": "Error",
  "properties": {
    "category": {
      "type": "string",
      "description": "The error category"
    },
    "correlationId": {
      "type": "uuid",
      "description": "Unique request identifier for debugging"
    },
    "message": {
      "type": "string",
      "description": "Human-readable error message"
    },
    "subCategory": {
      "type": "string",
      "description": "More specific error category"
    },
    "context": {
      "type": "object"
    },
    "links": {
      "type": "object"
    },
    "errors": {
      "type": "array",
      "items": {
        "type": "object",
        "description": "Detailed error information",
        "properties": {
          "message": {
            "type": "string",
            "description": "Error message"
          },
          "code": {
            "type": "string",
            "description": "Error code"
          },
          "in": {
            "type": "string",
            "description": "Field where error occurred"
          },
          "subCategory": {
            "type": "string",
            "description": "Error subcategory"
          },
          "context": {
            "type": "object"
          }
        },
        "required": [
          "message"
        ]
      }
    }
  },
  "required": [
    "category",
    "correlationId",
    "message"
  ],
  "$schema": "https://json-structure.org/draft/2020-12/schema"
}