Two strings in, structured diff out. Text mode returns a line-level unified patch plus added/removed/changed counts. JSON mode returns a path-aware deep diff. Auto mode picks JSON when both inputs parse cleanly, text otherwise.
curl -X POST https://kiprio.com/v1/diff \
-H "X-API-Key: $WORKSHOP_KEY" \
-H "Content-Type: application/json" \
-d '{"a":"hello world","b":"hello, world","mode":"text"}'
# JSON deep diff
curl -X POST https://kiprio.com/v1/diff \
-H "X-API-Key: $WORKSHOP_KEY" \
-H "Content-Type: application/json" \
-d '{"a":"{\"plan\":\"free\"}","b":"{\"plan\":\"pro\"}","mode":"json"}'
diff and a separate JSON differ.$.users[0].email-style path, not a flattened key list.patch(1)?Yes — in text mode the response includes unified_patch, the standard --- a / +++ b format with configurable context lines (0–20).
Element-by-element, with index in the path. Extra elements at the end appear as added; missing ones as removed. We don’t attempt longest-common-subsequence on arrays — it’s deterministic and fast, which matters in CI.
auto mode actually do?It tries to json.loads both inputs. If both succeed, you get a JSON deep diff. If either fails, you get a text diff. The response includes auto_resolved_to: "json" or "text" so you know which path ran.
No retention on Free. Pro and Business include opt-in audit logging (30 days) for compliance reviews. We never log the diff content itself unless audit is on.
HTTP 429 with a Retry-After header. Daily quotas reset on a rolling 24-hour window, not midnight UTC.
Get an API key View health endpoint →
Built by kiprio.com · Free demo capped at 4,000 chars and 20 requests / minute / IP.