Public documentation
Documentation indexRead as MarkdownBin configuration
Portable bin configuration
Export a versioned document containing the bin name, fallback response, forwarding configuration, and ordered conditional response rules. The document excludes captures, replay history, account ownership, Freebin API keys, public-share tokens, rule IDs and revisions, and internal enforcement metadata. User-authored response bodies, headers, destinations, and rule values may still be sensitive, so review a file before sharing it.
curl https://freebin.org/api/v1/bins/YOUR_BIN_ID/config \
-H "authorization: Bearer YOUR_API_KEY" \
-o freebin-config.json
curl -X PUT https://freebin.org/api/v1/bins/OTHER_BIN_ID/config \
-H "authorization: Bearer YOUR_API_KEY" \
-H "content-type: application/json" \
--data-binary @freebin-config.json
Imports replace the destination bin’s portable fields and all rules atomically while preserving its captured requests and replay attempts. Local rule IDs and revisions are regenerated. The import must satisfy the destination account’s limits, and enabled forwarding must target an origin permitted by that deployment. Validate files against bin-config.v1.json.
Source: Freebin API documentation and Freebin quickstart.
Conditional response rules
Conditional responses evaluate up to five enabled rules in order and stop at the first match. Each rule supports up to five AND conditions over method, path, query, selected headers, and JSON or form body fields using equals, exists, contains, or glob. Rules cannot inspect authorization, proxy-authorization, or cookie headers. Compressed bodies are not evaluated by body conditions. Static responses may delay for up to five seconds.