API Snap · Example Payload

Markdown Render Example

API UtilitiesDeveloper ToolsQR CodesScreenshotsImage ProcessingPDF GenerationMarkdownURL MetadataHashingJWTBase64UUIDColor ConversionLorem IpsumPlaceholder Images

Markdown Render Example is an example object payload from API Snap, with 5 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

@context@typeoperationrequestresponse

Example Payload

Raw ↑
{
  "@context": "../json-ld/api-snap-context.jsonld",
  "@type": "ApiSnap",
  "operation": "markdownToHtml",
  "request": {
    "method": "POST",
    "url": "https://api-snap.com/api/markdown",
    "headers": {
      "Authorization": "Bearer snp_REDACTED",
      "Content-Type": "application/json"
    },
    "body": {
      "markdown": "# Hello\n\nThis is **markdown**.",
      "styled": false
    }
  },
  "response": {
    "statusCode": 200,
    "contentType": "application/json",
    "body": {
      "html": "<h1>Hello</h1>\n<p>This is <strong>markdown</strong>.</p>"
    }
  }
}