Examples

Copy-paste examples for every tool.

Use the exact headers and bodies your tools expect. No SDKs—just HTTP calls ready for Zapier, n8n, Make, Airtable Scripts, Bubble, and Retool.

Zapier

Custom Webhooks + Code

View in carousel
Example

Fix malformed JSON from AI responses

Stop staring at "We had trouble parsing your JSON" errors. Zapier builders in the community constantly fight with half-valid JSON from AI steps; this turns that chaos into clean, reliable objects for downstream actions.

{
  "url": "https://api.postthatgetthis.com/v1/json/fix",
  "method": "POST",
  "headers": {
    "Authorization": "Bearer {{bundle.authData.api_key}}",
    "Content-Type": "text/plain"
  },
  "data": {
    {{bundle.inputData.raw_text}}
  }
}
Example

Extract clean fields from messy email text

You shouldn’t have to regex your way through every contact form. This turns chaotic email bodies into structured JSON that Zapier users can route, score, and enrich without fragile text parsing.

{
  "url": "https://api.postthatgetthis.com/v1/json/extract",
  "method": "POST",
  "headers": {
    "Authorization": "Bearer {{bundle.authData.api_key}}",
    "Content-Type": "text/plain"
  },
  "data": {{bundle.inputData.email_body}},
}
Example

Flatten nested webhook payloads

Webhooks from modern apps are ridiculously nested. Instead of manually mapping `customer.profile.primary_email`, Zapier builders flatten everything once and reuse it everywhere.

{
  "url": "https://api.postthatgetthis.com/v1/json/flatten",
  "method": "POST",
  "headers": {
    "Authorization": "Bearer {{bundle.authData.api_key}}",
    "Content-Type": "application/json"
  },
  "data": {{bundle.inputData.raw_json}}
}
Example

Turn webhook arrays into CSV rows

Airtable and Google Sheets love rows, not nested arrays. Zapier users are tired of juggling Formatter loops; this converts arrays into ready-to-insert CSV in a single, reliable step.

{
  "url": "https://api.postthatgetthis.com/v1/json/to_csv",
  "method": "POST",
  "headers": {
    "Authorization": "Bearer {{bundle.authData.api_key}}",
    "Content-Type": "application/json"
  },
  "data": {
    "data": {{bundle.inputData.records}},
    "options": { "headers": true }
  }
}
🪢

n8n

HTTP Request node

View in carousel
Example

Fix malformed JSON before Set node

n8n self-hosters are wiring LLMs into everything, but a single missing quote breaks the whole workflow. This pattern cleans the JSON so the rest of the flow stays rock-solid.

{
  "url": "https://api.postthatgetthis.com/v1/json/fix",
  "method": "POST",
  "json": true,
  "body": "{{$json["raw"]}}"
}
Example

Extract key fields from email bodies

Ops teams hate building brittle Function nodes full of split() and regex just to grab a budget or phone number. This pattern turns email text into a clean JSON object n8n can branch on.

{
  "url": "https://api.postthatgetthis.com/v1/json/extract",
  "method": "POST",
  "json": true,
  "body": "{{$json["text"]}}"
}
Example

Flatten webhook payloads for easier mapping

When every node expression looks like `$json["data"][0]["attributes"]["profile"]`, builders burn out. Flatten once via PTGT and keep the rest of your flow clean and readable.

{
  "url": "https://api.postthatgetthis.com/v1/json/flatten",
  "method": "POST",
  "json": true,
  "body": {{$json}}
}
Example

Convert item arrays to CSV

n8n users often end up writing custom JS to export reports. Instead, let PTGT turn `$items` into CSV that can be emailed, stored, or synced to Google Sheets in one clean step.

{
  "url": "https://api.postthatgetthis.com/v1/json/to_csv",
  "method": "POST",
  "json": true,
  "body": {
    "data": {{$items.map(i => i.json)}},
    "options": { "headers": true }
  }
}
🛠️

Make

HTTP module

View in carousel
Example

Fix AI JSON before JSON Tools module

Make scenarios break silently when AI output isn't perfect JSON. PTGT sits in the middle and guarantees a valid object every time, so your routers and mappers stay reliable.

{
  "url": "https://api.postthatgetthis.com/v1/json/fix",
  "method": "POST",
  "headers": {
    "Authorization": "Bearer {{apiKey}}"
  },
  "body": "{{ai_output}}"
}
Example

Extract fields from unstructured text

Support teams piping tickets into Make don’t want to hand-write regex for every request format. PTGT turns messy text into JSON so you can branch, score, and auto-respond confidently.

{
  "url": "https://api.postthatgetthis.com/v1/json/extract",
  "method": "POST",
  "headers": {
    "Authorization": "Bearer {{apiKey}}"
  },
  "body": "{{text_body}}"
}
Example

Flatten complex API responses

Many Make integrations return `data.attributes.*` trees that are painful to map. PTGT flattens them into simple key/value pairs that play nicely with the visual mapper.

{
  "url": "https://api.postthatgetthis.com/v1/json/flatten",
  "method": "POST",
  "headers": {
    "Authorization": "Bearer {{apiKey}}"
  },
  "body": {{api_response}}
}
Example

JSON → CSV text

Reporting scenarios often need CSV attachments or bulk inserts. PTGT converts arrays of objects into clean CSV text without a single custom script module.

{
  "url": "https://api.postthatgetthis.com/v1/json/to_csv",
  "method": "POST",
  "headers": {
    "Authorization": "Bearer {{apiKey}}"
  },
  "body": {
    "data": {{items}},
    "options": { "headers": true }
  }
}
📒

Airtable

Scripts & automations

View in carousel
Example

Fix JSON before writing to Airtable

RevOps and data teams pipe AI output into Airtable and constantly hit invalid JSON issues. PTGT makes sure every record payload is clean before it ever touches your base.

const res = await fetch("https://api.postthatgetthis.com/v1/json/fix", {
  method: "POST",
  headers: {
    Authorization: "Bearer " + YOUR_API_KEY,
    "Content-Type": "text/plain"
  },
  body: "{ \"Company\": \"Acme\", extraComma: true }"
});
const fixed = await res.json();
// use fixed.input when writing to Airtable
Example

Extract structured fields from Notes column

Sales and success teams love dumping context into a single long-text field. PTGT lets you retroactively extract clean fields (budget, timeline, owner) without rewriting your whole base.

const res = await fetch("https://api.postthatgetthis.com/v1/json/extract", {
  method: "POST",
  headers: {
    Authorization: "Bearer " + YOUR_API_KEY,
    "Content-Type": "text/plain"
  },
  body: JSON.stringify({ data: inputConfig.notes })
});
const result = await res.json();
// result.json has owner, stage, budget, etc.
Example

Flatten JSON into Airtable-friendly fields

When external APIs push complex objects into Airtable, builders end up with unreadable JSON blobs. PTGT flattens them so each key lands in its own column.

const res = await fetch("https://api.postthatgetthis.com/v1/json/flatten", {
  method: "POST",
  headers: {
    Authorization: "Bearer " + YOUR_API_KEY,
    "Content-Type": "application/json"
  },
  body: JSON.stringify({ data: inputConfig.payload })
});
const flat = await res.json();
// flat.flat has simple keys for Airtable columns
Example

Turn JSON arrays into CSV attachments

Operations teams want a "Download as CSV" attachment right on the record. PTGT converts JSON arrays into CSV so you can store them as file attachments or shareable exports.

const res = await fetch("https://api.postthatgetthis.com/v1/json/to_csv", {
  method: "POST",
  headers: {
    Authorization: "Bearer " + YOUR_API_KEY,
    "Content-Type": "application/json"
  },
  body: JSON.stringify({ data: inputConfig.rows, options: { headers: true } })
});
const result = await res.json();
// result.csv can be turned into a file/attachment
🫧

Bubble

API Connector

View in carousel
Example

Fix JSON before saving to Bubble things

Bubble builders are gluing AI into their apps but keep running into "invalid JSON" errors when trying to store responses. PTGT guarantees clean JSON that plays nicely with Bubble’s database.

{
  "name": "Fix JSON",
  "use_name": "fix_json",
  "authentication": "none",
  "headers": {
    "Authorization": "Bearer [YOUR_API_KEY]",
    "Content-Type": "text/plain"
  },
  "data_type": "text",
  "body": "{ \"summary\": \"[AI response here]\", trailingComma: true }",
  "url": "https://api.postthatgetthis.com/v1/json/fix",
  "method": "POST"
}
Example

Extract fields from user-submitted text

Instead of building giant conditional workflows to parse text blocks, Bubble apps can offload the logic to PTGT and get back a clean JSON object to map into fields.

{
  "name": "Extract fields",
  "use_name": "extract_fields",
  "authentication": "none",
  "headers": {
    "Authorization": "Bearer [YOUR_API_KEY]",
    "Content-Type": "text/plain"
  },
  "body": "[dynamic text from Bubble]",
  "url": "https://api.postthatgetthis.com/v1/json/extract",
  "method": "POST"
}
Example

Flatten API responses for simple field mapping

External APIs often return deeply nested JSON that is awkward to map into Bubble’s visual UI. PTGT flattens the response so you get simple key names you can bind to your data types.

{
  "name": "Flatten JSON",
  "use_name": "flatten_json",
  "authentication": "none",
  "headers": {
    "Authorization": "Bearer [YOUR_API_KEY]",
    "Content-Type": "application/json"
  },
  "body": {
    "data": "[API response JSON]"
  },
  "url": "https://api.postthatgetthis.com/v1/json/flatten",
  "method": "POST"
}
Example

Convert repeating group data to CSV

For exports and reporting, Bubble apps often need a CSV snapshot of a list. PTGT converts a list of things into CSV that you can store, email, or let users download.

{
  "name": "List to CSV",
  "use_name": "list_to_csv",
  "authentication": "none",
  "headers": {
    "Authorization": "Bearer [YOUR_API_KEY]",
    "Content-Type": "application/json"
  },
  "body": {
    "data": "[Bubble list converted to JSON]",
    "options": { "headers": true }
  },
  "url": "https://api.postthatgetthis.com/v1/json/to_csv",
  "method": "POST"
}
Example

Convert base64 images to Bubble-compatible files

When AI or external services send images as base64, Bubble needs normal file objects. PTGT bridges that gap so your file upload fields always receive valid image URLs or file handles.

{
  "name": "Base64 to Image",
  "use_name": "base64_to_image",
  "authentication": "none",
  "headers": {
    "Authorization": "Bearer [YOUR_API_KEY]",
    "Content-Type": "application/json"
  },
  "body": {
    "input": "[base64 string]",
    "filename": "avatar.png"
  },
  "url": "https://api.postthatgetthis.com/v1/base64/to_image",
  "method": "POST"
}
🧰

Retool

REST queries

View in carousel
Example

Fix JSON in Retool Transformer output

Internal tools teams often chain AI into Retool transformers and then spend hours debugging syntax errors. PTGT guarantees valid JSON before it ever hits a query or table.

{
  "resource": "PostThatGetThis",
  "action": "POST",
  "url": "https://api.postthatgetthis.com/v1/json/fix",
  "headers": {
    "Authorization": "Bearer {{ apiKey }}",
    "Content-Type": "text/plain"
  },
  "body": "{ \"note\": \"{{ aiOutput }}\", trailingComma: true }"
}
Example

Extract fields from freeform analyst notes

Analysts love typing rich context into a big text box. PTGT lets you carve out structured metrics (risk, priority, owner) from those notes so your dashboards stay sortable.

{
  "resource": "PostThatGetThis",
  "action": "POST",
  "url": "https://api.postthatgetthis.com/v1/json/extract",
  "headers": {
    "Authorization": "Bearer {{ apiKey }}",
    "Content-Type": "text/plain"
  },
  "body": {{ textInput.value }}
}
Example

Flatten API responses for table components

Retool table components work best with flat rows, but APIs rarely cooperate. PTGT flattens nested objects so every column can be directly bound without extra JS.

{
  "resource": "PostThatGetThis",
  "action": "POST",
  "url": "https://api.postthatgetthis.com/v1/json/flatten",
  "headers": {
    "Authorization": "Bearer {{ apiKey }}",
    "Content-Type": "application/json"
  },
  "body": {
    "data": {{ apiQuery.data }}
  }
}
Example

Convert query results to CSV exports

Product and ops teams constantly ask for "just export it to CSV" buttons in internal tools. PTGT takes Retool query results and turns them into downloadable CSV in one call.

{
  "resource": "PostThatGetThis",
  "action": "POST",
  "url": "https://api.postthatgetthis.com/v1/json/to_csv",
  "headers": {
    "Authorization": "Bearer {{ apiKey }}",
    "Content-Type": "application/json"
  },
  "body": {
    "data": {{ table.data }},
    "options": { "headers": true }
  }
}