API Snap · Example Payload

Qr Generate Example

API UtilitiesDeveloper ToolsQR CodesScreenshotsImage ProcessingPDF GenerationMarkdownURL MetadataHashingJWTBase64UUIDColor ConversionLorem IpsumPlaceholder Images

Qr Generate 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": "generateQrCode",
  "request": {
    "method": "GET",
    "url": "https://api-snap.com/api/qr",
    "queryParameters": {
      "data": "https://example.com/landing",
      "size": 512,
      "format": "png",
      "dark": "#000000",
      "light": "#ffffff"
    },
    "headers": {
      "Authorization": "Bearer snp_REDACTED"
    }
  },
  "response": {
    "statusCode": 200,
    "contentType": "image/png",
    "note": "Returns the binary PNG image bytes"
  }
}