API Snap · Example Payload

Resize Image Example

API UtilitiesDeveloper ToolsQR CodesScreenshotsImage ProcessingPDF GenerationMarkdownURL MetadataHashingJWTBase64UUIDColor ConversionLorem IpsumPlaceholder Images

Resize Image 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": "resizeImage",
  "request": {
    "method": "POST",
    "url": "https://api-snap.com/api/resize",
    "headers": {
      "Authorization": "Bearer snp_REDACTED",
      "Content-Type": "application/json"
    },
    "body": {
      "url": "https://example.com/photo.jpg",
      "width": 800,
      "height": 600,
      "format": "webp",
      "quality": 85,
      "fit": "cover"
    }
  },
  "response": {
    "statusCode": 200,
    "contentType": "image/webp",
    "note": "Returns the resized binary image"
  }
}