API Snap · Example Payload

Base64 Encode Example

API UtilitiesDeveloper ToolsQR CodesScreenshotsImage ProcessingPDF GenerationMarkdownURL MetadataHashingJWTBase64UUIDColor ConversionLorem IpsumPlaceholder Images

Base64 Encode 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": "Base64Result",
  "operation": "base64EncodeDecode",
  "request": {
    "method": "POST",
    "url": "https://api-snap.com/api/base64",
    "headers": {
      "Authorization": "Bearer snp_REDACTED",
      "Content-Type": "application/json"
    },
    "body": {
      "input": "Hello, World!",
      "action": "encode",
      "urlSafe": false
    }
  },
  "response": {
    "statusCode": 200,
    "contentType": "application/json",
    "body": {
      "result": "SGVsbG8sIFdvcmxkIQ==",
      "action": "encode"
    }
  }
}