Data Transformation & Quality · x402 V2

Markdown Outline Extract

Use this service when you need this capability: extracts a deterministic source-ordered Markdown heading outline with stable anchors, parent ordinals, offsets, and section ranges.

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/markdown_outline_extract/invoke

Purpose

Extracts a deterministic source-ordered Markdown heading outline with stable anchors, parent ordinals, offsets, and section ranges.

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
markdownstringOptionalMinimum length 1; Maximum length 65536
textstringOptionalMinimum length 1; Maximum length 65536
maximumHeadingDepthintegerOptionalMinimum 1; Maximum 6
includeSectionRangesbooleanOptionalSee the complete OpenAPI schema.

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": 3,
  "required": [],
  "properties": {
    "markdown": {
      "type": "string",
      "minLength": 1,
      "maxLength": 65536
    },
    "text": {
      "type": "string",
      "minLength": 1,
      "maxLength": 65536
    },
    "maximumHeadingDepth": {
      "type": "integer",
      "minimum": 1,
      "maximum": 6
    },
    "includeSectionRanges": {
      "type": "boolean"
    }
  }
}

Realistic output shape

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

{
  "title": "example",
  "headingCount": 0,
  "headings": [
    {
      "level": 1,
      "text": "Example caller-supplied content.",
      "anchor": "example",
      "ordinal": 0,
      "start": 0,
      "end": 0,
      "sectionStart": 0,
      "sectionEnd": 0,
      "parentOrdinal": -1
    }
  ],
  "warnings": [
    "Verify the caller-supplied data before relying on this result."
  ]
}
View complete output schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "additionalProperties": false,
  "minProperties": 4,
  "maxProperties": 4,
  "required": [
    "title",
    "headingCount",
    "headings",
    "warnings"
  ],
  "properties": {
    "title": {
      "type": "string",
      "minLength": 0,
      "maxLength": 8192
    },
    "headingCount": {
      "type": "integer",
      "minimum": 0,
      "maximum": 256
    },
    "headings": {
      "type": "array",
      "minItems": 0,
      "maxItems": 256,
      "items": {
        "type": "object",
        "additionalProperties": false,
        "minProperties": 9,
        "maxProperties": 9,
        "required": [
          "level",
          "text",
          "anchor",
          "ordinal",
          "start",
          "end",
          "sectionStart",
          "sectionEnd",
          "parentOrdinal"
        ],
        "properties": {
          "level": {
            "type": "integer",
            "minimum": 1,
            "maximum": 6
          },
          "text": {
            "type": "string",
            "minLength": 0,
            "maxLength": 8192
          },
          "anchor": {
            "type": "string",
            "minLength": 1,
            "maxLength": 8192
          },
          "ordinal": {
            "type": "integer",
            "minimum": 0,
            "maximum": 255
          },
          "start": {
            "type": "integer",
            "minimum": 0,
            "maximum": 524288
          },
          "end": {
            "type": "integer",
            "minimum": 0,
            "maximum": 524288
          },
          "sectionStart": {
            "type": "integer",
            "minimum": 0,
            "maximum": 524288
          },
          "sectionEnd": {
            "type": "integer",
            "minimum": 0,
            "maximum": 524288
          },
          "parentOrdinal": {
            "type": "integer",
            "minimum": -1,
            "maximum": 255
          }
        }
      }
    },
    "warnings": {
      "type": "array",
      "minItems": 0,
      "maxItems": 32,
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 1024
      }
    }
  }
}

Execution limits

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

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/markdown_outline_extract/invoke \
  -H "Content-Type: application/json" \
  --data '{"markdown":"# Example\n\n## Detail"}'

Continue with the paid-call walkthrough →