Data Transformation & Quality · x402 V2

Heading Structure Audit

Use this service when you need this capability: audits bounded HTML or Markdown heading hierarchy, duplicates, IDs, skipped levels, and empty headings deterministically.

Price and endpoint

LivePOSTBase USDC

0.005 USDC per call

x402 V2 exact payment on Base mainnet (eip155:8453) using USDC. The HTTP 402 challenge confirms the exact requirements before an authorized payment.

POST https://signalharness.ai/api/agent/services/heading_structure_audit/invoke

Purpose

Audits bounded HTML or Markdown heading hierarchy, duplicates, IDs, skipped levels, and empty headings deterministically.

This service applies bounded processing to the supplied input. Review its schema, result fields, and limits for the exact supported capability.

Inputs

Request fields and validation limits
FieldTypeRequiredLimits
htmlstringOptionalMinimum length 1; Maximum length 65536
markdownstringOptionalMinimum length 1; Maximum length 65536

Example request body

{
  "markdown": "# Example\n\n### Detail"
}
View complete input schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "additionalProperties": false,
  "minProperties": 1,
  "maxProperties": 1,
  "required": [],
  "properties": {
    "html": {
      "type": "string",
      "minLength": 1,
      "maxLength": 65536
    },
    "markdown": {
      "type": "string",
      "minLength": 1,
      "maxLength": 65536
    }
  }
}

Realistic output shape

Illustrative output from the canonical adapter fixture and schema. It is not a completed paid execution or a current live observation.

{
  "format": "html",
  "status": "pass",
  "outline": [
    {
      "level": 1,
      "text": "Example caller-supplied content.",
      "id": "example",
      "ordinal": 0
    }
  ],
  "findings": [
    {
      "code": "empty_heading",
      "severity": "warn",
      "ordinal": 0
    }
  ],
  "summary": {
    "headingCount": 0,
    "h1Count": 0,
    "failCount": 0,
    "warnCount": 0
  }
}
View complete output schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "additionalProperties": false,
  "minProperties": 5,
  "maxProperties": 5,
  "required": [
    "format",
    "status",
    "outline",
    "findings",
    "summary"
  ],
  "properties": {
    "format": {
      "type": "string",
      "enum": [
        "html",
        "markdown"
      ],
      "minLength": 4,
      "maxLength": 8
    },
    "status": {
      "type": "string",
      "enum": [
        "pass",
        "warn",
        "fail"
      ],
      "minLength": 4,
      "maxLength": 4
    },
    "outline": {
      "type": "array",
      "minItems": 0,
      "maxItems": 256,
      "items": {
        "type": "object",
        "additionalProperties": false,
        "minProperties": 4,
        "maxProperties": 4,
        "required": [
          "level",
          "text",
          "id",
          "ordinal"
        ],
        "properties": {
          "level": {
            "type": "integer",
            "minimum": 1,
            "maximum": 6
          },
          "text": {
            "type": "string",
            "minLength": 0,
            "maxLength": 8192
          },
          "id": {
            "type": "string",
            "minLength": 0,
            "maxLength": 256
          },
          "ordinal": {
            "type": "integer",
            "minimum": 0,
            "maximum": 255
          }
        }
      }
    },
    "findings": {
      "type": "array",
      "minItems": 0,
      "maxItems": 256,
      "items": {
        "type": "object",
        "additionalProperties": false,
        "minProperties": 3,
        "maxProperties": 3,
        "required": [
          "code",
          "severity",
          "ordinal"
        ],
        "properties": {
          "code": {
            "type": "string",
            "enum": [
              "empty_heading",
              "skipped_level",
              "duplicate_id",
              "duplicate_heading"
            ],
            "minLength": 11,
            "maxLength": 17
          },
          "severity": {
            "type": "string",
            "enum": [
              "warn",
              "fail"
            ],
            "minLength": 4,
            "maxLength": 4
          },
          "ordinal": {
            "type": "integer",
            "minimum": 0,
            "maximum": 255
          }
        }
      }
    },
    "summary": {
      "type": "object",
      "additionalProperties": false,
      "minProperties": 4,
      "maxProperties": 4,
      "required": [
        "headingCount",
        "h1Count",
        "failCount",
        "warnCount"
      ],
      "properties": {
        "headingCount": {
          "type": "integer",
          "minimum": 0,
          "maximum": 256
        },
        "h1Count": {
          "type": "integer",
          "minimum": 0,
          "maximum": 256
        },
        "failCount": {
          "type": "integer",
          "minimum": 0,
          "maximum": 256
        },
        "warnCount": {
          "type": "integer",
          "minimum": 0,
          "maximum": 256
        }
      }
    }
  }
}

Execution limits

  • MaxInputBytes: 524288
  • MaxOutputBytes: 1048576
  • MaxConcurrentExecutions: 6
  • MaxArtifacts: 0
  • MaxArtifactBytes: 0
  • RateLimitPerMinute: 90
  • MaxHeadings: 256
  • MaxNesting: 128

Timeout: 5000 ms. Full schemas are in OpenAPI.

Copyable unpaid request

This schema-valid request returns the canonical HTTP 402 challenge without executing the service. A payment-capable client validates the challenge, signs only with prior authority and budget, and retries the identical body.

curl -i -X POST https://signalharness.ai/api/agent/services/heading_structure_audit/invoke \
  -H "Content-Type: application/json" \
  --data '{"markdown":"# Example\n\n### Detail"}'

Continue with the paid-call walkthrough →