c. CallMint
← All documentation

jsonld-validator

POST /v1/jsonld-validator

Check JSON-LD syntax and basic structure

Confirm that a JSON-LD payload is parseable and inspect whether top-level context and type are present.

5 credits · USD $0.005

Input schema

{
  "type": "object",
  "properties": {
    "document": {
      "oneOf": [
        {
          "type": "string",
          "maxLength": 50000,
          "x-maxUtf8Bytes": 50000
        },
        {
          "type": "object"
        },
        {
          "type": "array",
          "minItems": 1,
          "items": {
            "type": "object"
          }
        }
      ]
    }
  },
  "required": [
    "document"
  ]
}

Request

curl -X POST 'https://staging.callmint.dev/v1/jsonld-validator' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Idempotency-Key: unique-request-001' \
  -H 'Content-Type: application/json' \
  -d '{"document":{"@context":"https://schema.org","@type":"Thing"}}'

Response result

{
  "valid": true,
  "has_context": true,
  "has_type": true,
  "note": "Syntax/basic structure only; not full schema.org validation"
}

Limitations

Accepts an object or a nonempty array of objects, including an encoded JSON string. Does not resolve contexts or check Schema.org semantics. Array responses report false for the two top-level presence flags.

All enabled routes accept a JSON object of at most 60,000 UTF-8 bytes. String limits are also measured in UTF-8 bytes.

Questions about jsonld-validator

What does this endpoint guarantee?

Accepts an object or a nonempty array of objects, including an encoded JSON string. Does not resolve contexts or check Schema.org semantics. Array responses report false for the two top-level presence flags.

How much does a call cost?

5 credits (USD $0.005) per successful call. Invalid inputs and upstream failures are refunded.

Get started Authentication and billing guide