{"openapi":"3.0.3","info":{"title":"Developer Utilities API (ReefAPI)","version":"1.0.0","description":"Developer Utilities API — 20+ deterministic dev and AI-agent tools: hash, UUID, encode, JWT decode, cron, regex, format, data convert, color, mock data, diff, QR and more Call POST /dev-utils/v1/{action} with an x-api-key header; every response is the { ok, data, meta, error } envelope.","contact":{"name":"ReefAPI","url":"https://reefapi.com/dev-utils-api","email":"support@reefapi.com"},"license":{"name":"ReefAPI Terms","url":"https://reefapi.com/terms"},"termsOfService":"https://reefapi.com/terms"},"externalDocs":{"description":"Developer Utilities API documentation","url":"https://reefapi.com/docs/dev-utils"},"servers":[{"url":"https://api.reefapi.com"}],"security":[{"ApiKeyAuth":[]}],"tags":[{"name":"dev-utils","description":"Developer Utilities API — 20+ deterministic dev and AI-agent tools: hash, UUID, encode, JWT decode, cron, regex, format, data convert, color, mock data, diff, QR and more"}],"paths":{"/dev-utils/v1/hash":{"post":{"operationId":"dev_utils_hash","summary":"Hash/checksum text or binary (base64/hex) input: md5…sha3·blake2·crc32·adler32, optional HMAC keying → hex + base64 digests.","description":"Hash/checksum text or binary (base64/hex) input: md5…sha3·blake2·crc32·adler32, optional HMAC keying → hex + base64 digests.","tags":["dev-utils"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"input":{"type":"string","example":"hello world","description":"The data to hash. Plain text by default; set input_encoding=base64|hex to hash binary data."},"algo":{"type":"string","enum":["md5","sha1","sha224","sha256","sha384","sha512","sha3-256","sha3-512","blake2b","blake2s","crc32","adler32"],"default":"sha256","example":"sha256","description":"Hash/checksum algorithm."},"hmac_key":{"type":"string","example":"my-secret-key","description":"Optional HMAC key — returns the keyed HMAC digest instead of the plain hash (not valid for crc32/adler32)."},"input_encoding":{"type":"string","enum":["text","base64","hex"],"default":"text","example":"text","description":"How to interpret `input`: utf-8 text, or base64/hex-encoded binary."}},"required":["input"]},"example":{"input":"hello world","algo":"sha256"}}}},"responses":{"200":{"description":"Result envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"401":{"description":"Missing or invalid x-api-key"},"429":{"description":"Rate limited or quota exhausted"}},"x-reefapi-credits":1}},"/dev-utils/v1/uuid":{"post":{"operationId":"dev_utils_uuid","summary":"Generate ids: uuid v4/v7/v1(MAC-safe)/v3/v5, ULID, nanoid — up to 100.","description":"Generate ids: uuid v4/v7/v1(MAC-safe)/v3/v5, ULID, nanoid — up to 100.","tags":["dev-utils"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"version":{"type":"string","enum":["v4","v7","v1","v3","v5","ulid","nanoid"],"default":"v4","example":"v4","description":"Id kind. v4=random · v7=time-ordered (RFC 9562) · v1=timestamp (random multicast node — host MAC never leaks) · v3/v5=deterministic namespace+name (md5/sha1) · ulid=Crockford-base32 sortable · nanoid=21-char URL-safe."},"count":{"type":"integer","minimum":1,"maximum":100,"default":1,"example":1,"description":"How many ids to generate (v3/v5 always 1 — deterministic)."},"namespace":{"type":"string","example":"dns","description":"v3/v5 namespace: dns|url|oid|x500 or a custom UUID."},"name":{"type":"string","example":"example.com","description":"v3/v5 name to hash into the namespace."},"size":{"type":"integer","minimum":8,"maximum":64,"default":21,"example":21,"description":"nanoid length (nanoid only)."}}},"example":{"version":"v4","count":3}}}},"responses":{"200":{"description":"Result envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"401":{"description":"Missing or invalid x-api-key"},"429":{"description":"Rate limited or quota exhausted"}},"x-reefapi-credits":1}},"/dev-utils/v1/encode":{"post":{"operationId":"dev_utils_encode","summary":"Encode/decode: base64(+url-safe), hex, URL (path/component/form), HTML entities, unicode-escape, json-string.","description":"Encode/decode: base64(+url-safe), hex, URL (path/component/form), HTML entities, unicode-escape, json-string.","tags":["dev-utils"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"input":{"type":"string","example":"hello world","description":"The string to encode or decode."},"op":{"type":"string","enum":["base64","base64url","hex","url","url-component","url-form","html","unicode-escape","json-string"],"example":"base64","description":"Codec. url=path-safe quote · url-component=encode everything (JS encodeURIComponent) · url-form=+ for spaces · html=entities · json-string=JSON string-literal escaping."},"direction":{"type":"string","enum":["encode","decode"],"default":"encode","example":"encode","description":"encode (default) or decode."}},"required":["input","op"]},"example":{"input":"Merhaba Dünya! 👋","op":"base64"}}}},"responses":{"200":{"description":"Result envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"401":{"description":"Missing or invalid x-api-key"},"429":{"description":"Rate limited or quota exhausted"}},"x-reefapi-credits":1}},"/dev-utils/v1/jwt_decode":{"post":{"operationId":"dev_utils_jwt_decode","summary":"Decode a JWT WITHOUT needing the key (header+payload+claims analysis); optionally verify the signature with a provided key","description":"Decode a JWT WITHOUT needing the key (header+payload+claims analysis); optionally verify the signature with a provided key. Decode-only — this API never signs tokens.","tags":["dev-utils"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string","example":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c","description":"The JWT to decode."},"verify_key":{"type":"string","example":"your-256-bit-secret","description":"Optional verification key: the HMAC secret (HS*) or PEM public key (RS*/ES*/PS*). Algorithm is taken from the token header (whitelisted; alg=none always fails)."}},"required":["token"]},"example":{"token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c","verify_key":"your-256-bit-secret"}}}},"responses":{"200":{"description":"Result envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"401":{"description":"Missing or invalid x-api-key"},"429":{"description":"Rate limited or quota exhausted"}},"x-reefapi-credits":1}},"/dev-utils/v1/password":{"post":{"operationId":"dev_utils_password","summary":"Generate cryptographically-secure passwords (charset controls, ambiguity filter) + entropy strength score; or score a provided password with `check`.","description":"Generate cryptographically-secure passwords (charset controls, ambiguity filter) + entropy strength score; or score a provided password with `check`.","tags":["dev-utils"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"length":{"type":"integer","minimum":4,"maximum":128,"default":16,"example":16,"description":"Password length."},"count":{"type":"integer","minimum":1,"maximum":50,"default":1,"example":1,"description":"How many passwords."},"lowercase":{"type":"boolean","default":true,"example":true,"description":"Include a-z."},"uppercase":{"type":"boolean","default":true,"example":true,"description":"Include A-Z."},"digits":{"type":"boolean","default":true,"example":true,"description":"Include 0-9."},"symbols":{"type":"boolean","default":true,"example":true,"description":"Include symbols (!@#$%^&*()-_=+[]{};:,.<>?/~)."},"exclude_ambiguous":{"type":"boolean","default":false,"example":false,"description":"Drop look-alikes (Il1O0o`'\"|)."},"check":{"type":"string","example":"hunter2","description":"Score THIS password instead of generating (entropy heuristic; the password is not stored or logged)."}}},"example":{"length":24,"count":2}}}},"responses":{"200":{"description":"Result envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"401":{"description":"Missing or invalid x-api-key"},"429":{"description":"Rate limited or quota exhausted"}},"x-reefapi-credits":1}},"/dev-utils/v1/cron":{"post":{"operationId":"dev_utils_cron","summary":"Explain a cron expression in plain language (15 locales) + compute the next N run times in any IANA timezone (DST-correct).","description":"Explain a cron expression in plain language (15 locales) + compute the next N run times in any IANA timezone (DST-correct).","tags":["dev-utils"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expression":{"type":"string","example":"*/15 9-17 * * 1-5","description":"5-field cron (min hour dom month dow), @aliases (@daily, @hourly…), or 6-field with seconds first."},"runs":{"type":"integer","minimum":1,"maximum":50,"default":5,"example":5,"description":"How many upcoming run times to return."},"tz":{"type":"string","default":"UTC","example":"Europe/Istanbul","description":"IANA timezone for the run times (DST handled)."},"locale":{"type":"string","enum":["en","de","es","fr","it","nl","pl","pt","ro","ru","tr","uk","ja","ko","zh"],"default":"en","example":"en","description":"Language of the human explanation."},"from_time":{"type":"string","example":"2026-06-10T12:00:00+03:00","description":"Compute runs after this ISO-8601 instant (default now). Pin it for reproducible output."}},"required":["expression"]},"example":{"expression":"*/15 9-17 * * 1-5","runs":3,"tz":"UTC","from_time":"2026-06-10T12:00:00+00:00"}}}},"responses":{"200":{"description":"Result envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"401":{"description":"Missing or invalid x-api-key"},"429":{"description":"Rate limited or quota exhausted"}},"x-reefapi-credits":1}},"/dev-utils/v1/slugify":{"post":{"operationId":"dev_utils_slugify","summary":"URL-safe slug from any-script text (CJK/Cyrillic/Arabic → ASCII via anyascii transliteration).","description":"URL-safe slug from any-script text (CJK/Cyrillic/Arabic → ASCII via anyascii transliteration).","tags":["dev-utils"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"input":{"type":"string","example":"Çok Güzel Bir Başlık — 2026!","description":"Text to slugify."},"separator":{"type":"string","default":"-","example":"-","description":"Word separator (default '-')."},"lowercase":{"type":"boolean","default":true,"example":true,"description":"Lowercase the slug (default true)."},"max_length":{"type":"integer","minimum":0,"maximum":500,"default":0,"example":0,"description":"Truncate at a word boundary (0 = no limit)."}},"required":["input"]},"example":{"input":"Çok Güzel Bir Başlık — 2026!"}}}},"responses":{"200":{"description":"Result envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"401":{"description":"Missing or invalid x-api-key"},"429":{"description":"Rate limited or quota exhausted"}},"x-reefapi-credits":1}},"/dev-utils/v1/regex_test":{"post":{"operationId":"dev_utils_regex_test","summary":"Test a regex against text: matches + groups + named groups, optional replace","description":"Test a regex against text: matches + groups + named groups, optional replace. User patterns run with a hard 1s timeout (ReDoS-guarded) + size caps.","tags":["dev-utils"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"pattern":{"type":"string","example":"(\\w+)@(\\w+\\.\\w+)","description":"The regular expression (≤2000 chars; Python `regex` syntax — PCRE-compatible incl. \\p{...})."},"input":{"type":"string","example":"mail me at jane@acme.com","description":"The subject text to scan."},"flags":{"type":"string","example":"i","description":"Flag letters, any of: i (ignorecase), m (multiline), s (dotall), x (verbose). E.g. 'im'."},"replacement":{"type":"string","example":"<\\1>","description":"Optional replacement template — when set, `replaced` holds the substituted text (backrefs \\1, \\g<name>)."},"max_matches":{"type":"integer","minimum":1,"maximum":500,"default":100,"example":100,"description":"Cap on returned matches."}},"required":["pattern","input"]},"example":{"pattern":"(\\w+)@([\\w.]+)","input":"mail jane@acme.com now"}}}},"responses":{"200":{"description":"Result envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"401":{"description":"Missing or invalid x-api-key"},"429":{"description":"Rate limited or quota exhausted"}},"x-reefapi-credits":1}},"/dev-utils/v1/format":{"post":{"operationId":"dev_utils_format","summary":"Pretty-print, minify or validate JSON / YAML / XML / SQL (string-level; file/data CONVERSION lives in the file-convert API).","description":"Pretty-print, minify or validate JSON / YAML / XML / SQL (string-level; file/data CONVERSION lives in the file-convert API).","tags":["dev-utils"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"input":{"type":"string","example":"{\"b\":1,\"a\":[1,2]}","description":"The document text."},"type":{"type":"string","enum":["json","yaml","xml","sql"],"example":"json","description":"Document type."},"op":{"type":"string","enum":["pretty","minify","validate"],"default":"pretty","example":"pretty","description":"pretty | minify | validate (sql: pretty/minify only — sqlparse is non-validating)."},"indent":{"type":"integer","minimum":1,"maximum":8,"default":2,"example":2,"description":"Indent width for pretty (json/yaml/xml)."},"sort_keys":{"type":"boolean","default":false,"example":false,"description":"Sort object keys (json/yaml)."},"keyword_case":{"type":"string","enum":["upper","lower","capitalize"],"default":"upper","example":"upper","description":"SQL keyword casing (sql only)."}},"required":["input","type"]},"example":{"input":"{\"b\":1,\"a\":[1,2]}","type":"json","op":"pretty","sort_keys":true}}}},"responses":{"200":{"description":"Result envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"401":{"description":"Missing or invalid x-api-key"},"429":{"description":"Rate limited or quota exhausted"}},"x-reefapi-credits":1}},"/dev-utils/v1/convert":{"post":{"operationId":"dev_utils_convert","summary":"Convert structured data between JSON / YAML / CSV / XML at the string level (paste-in, ≤512KB)","description":"Convert structured data between JSON / YAML / CSV / XML at the string level (paste-in, ≤512KB). CSV↔JSON is tabular (array of flat objects). For file/Excel/multi-MB conversion use the file-convert API.","tags":["dev-utils"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"input":{"type":"string","example":"[{\"id\":1,\"name\":\"a\"},{\"id\":2,\"name\":\"b\"}]","description":"The source document text."},"from":{"type":"string","enum":["json","yaml","csv","xml"],"example":"json","description":"Source format."},"to":{"type":"string","enum":["json","yaml","csv","xml"],"example":"json","description":"Target format."},"indent":{"type":"integer","minimum":0,"maximum":8,"default":2,"example":2,"description":"Indent width for json/yaml/xml output (0=compact)."},"sort_keys":{"type":"boolean","default":false,"example":false,"description":"Sort object keys (json/yaml)."}},"required":["input","from","to"]},"example":{"input":"[{\"id\":1,\"name\":\"a\"},{\"id\":2,\"name\":\"b\"}]","from":"json","to":"csv"}}}},"responses":{"200":{"description":"Result envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"401":{"description":"Missing or invalid x-api-key"},"429":{"description":"Rate limited or quota exhausted"}},"x-reefapi-credits":1}},"/dev-utils/v1/qr":{"post":{"operationId":"dev_utils_qr","summary":"Generate a QR code as SVG (text), base64-PNG (text data-URI), or terminal ASCII — all textual output, no binary asset","description":"Generate a QR code as SVG (text), base64-PNG (text data-URI), or terminal ASCII — all textual output, no binary asset. Up to QR version 40.","tags":["dev-utils"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"input":{"type":"string","example":"https://reefapi.com","description":"The data to encode (URL, text, vCard, wifi string…)."},"kind":{"type":"string","enum":["svg","png_base64","text"],"default":"svg","example":"svg","description":"Output: svg (scalable vector text) · png_base64 (base64 + data-URI) · text (terminal ASCII art)."},"error_correction":{"type":"string","enum":["l","m","q","h"],"default":"m","example":"m","description":"Recovery level: l~7% · m~15% · q~25% · h~30%."},"scale":{"type":"integer","minimum":1,"maximum":20,"default":4,"example":4,"description":"Module pixel size (png/svg)."},"border":{"type":"integer","minimum":0,"maximum":16,"default":4,"example":4,"description":"Quiet-zone width in modules (spec default 4)."}},"required":["input"]},"example":{"input":"https://reefapi.com","kind":"svg"}}}},"responses":{"200":{"description":"Result envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"401":{"description":"Missing or invalid x-api-key"},"429":{"description":"Rate limited or quota exhausted"}},"x-reefapi-credits":1}},"/dev-utils/v1/color":{"post":{"operationId":"dev_utils_color","summary":"Parse any CSS color (hex/rgb()/hsl()/name) → every format + CSS3 name + luminance; optional second color → WCAG 2.x contrast ratio + AA/AAA.","description":"Parse any CSS color (hex/rgb()/hsl()/name) → every format + CSS3 name + luminance; optional second color → WCAG 2.x contrast ratio + AA/AAA.","tags":["dev-utils"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"input":{"type":"string","example":"#1a2b3c","description":"The color: '#1a2b3c', '#abc', 'rgb(26,43,60)', 'hsl(210,40%,17%)' or a CSS3 name ('rebeccapurple')."},"contrast_with":{"type":"string","example":"#ffffff","description":"Optional second color — returns the WCAG contrast ratio + AA/AAA pass flags for normal/large text."}},"required":["input"]},"example":{"input":"#1a2b3c","contrast_with":"#ffffff"}}}},"responses":{"200":{"description":"Result envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"401":{"description":"Missing or invalid x-api-key"},"429":{"description":"Rate limited or quota exhausted"}},"x-reefapi-credits":1}},"/dev-utils/v1/mock_data":{"post":{"operationId":"dev_utils_mock_data","summary":"Generate fake/test records (Faker, 70+ locales): preset bundles (person/address/company/internet/profile/product/lorem) or a custom field→type schema; seed for reproducible output.","description":"Generate fake/test records (Faker, 70+ locales): preset bundles (person/address/company/internet/profile/product/lorem) or a custom field→type schema; seed for reproducible output.","tags":["dev-utils"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"preset":{"type":"string","enum":["person","address","company","internet","profile","product","lorem"],"example":"person","description":"Ready-made record shape (ignored when `schema` is given)."},"schema":{"type":"object","example":{"full_name":"name","mail":"email","age":"int"},"description":"Custom shape: {output_field: type}. Types: address, bool, catch_phrase, city, color_hex, color_name, company, company_email, country, country_code, credit_card_full, credit_card_number, currency_code, date, date_of_birth, domain, email, emoji, file_name, first_name, float, free_email, iban, int, ipv4, ipv6, iso8601, job, language_code, last_name, latitude, locale, longitude, mac, mime_type, name, paragraph, password, phone, sentence, slug, ssn, state, street, text, time, url, user_agent, username, uuid, word, zip."},"count":{"type":"integer","minimum":1,"maximum":100,"default":5,"example":5,"description":"How many records."},"locale":{"type":"string","default":"en_US","example":"tr_TR","description":"Faker locale (en_US, tr_TR, de_DE, ja_JP…). Unknown locales fall back to en_US."},"seed":{"type":"integer","example":42,"description":"Seed for deterministic output (same seed+schema+locale +count+faker-version → same records)."}}},"example":{"preset":"person","count":2,"seed":42}}}},"responses":{"200":{"description":"Result envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"401":{"description":"Missing or invalid x-api-key"},"429":{"description":"Rate limited or quota exhausted"}},"x-reefapi-credits":2}},"/dev-utils/v1/text_diff":{"post":{"operationId":"dev_utils_text_diff","summary":"Unified diff between two texts + change stats + similarity ratio.","description":"Unified diff between two texts + change stats + similarity ratio.","tags":["dev-utils"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"a":{"type":"string","example":"line one\nline two","description":"The original text."},"b":{"type":"string","example":"line one\nline 2","description":"The changed text."},"context":{"type":"integer","minimum":0,"maximum":20,"default":3,"example":3,"description":"Context lines around each hunk."},"label_a":{"type":"string","default":"a","example":"before","description":"Label for the original."},"label_b":{"type":"string","default":"b","example":"after","description":"Label for the changed text."}},"required":["a","b"]},"example":{"a":"one\ntwo","b":"one\n2"}}}},"responses":{"200":{"description":"Result envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"401":{"description":"Missing or invalid x-api-key"},"429":{"description":"Rate limited or quota exhausted"}},"x-reefapi-credits":1}},"/dev-utils/v1/text_analyze":{"post":{"operationId":"dev_utils_text_analyze","summary":"Algorithmic text analysis (no LLM): language detect (97 langs) · readability (Flesch & co) · profanity flag/censor · keyword extraction · full stats","description":"Algorithmic text analysis (no LLM): language detect (97 langs) · readability (Flesch & co) · profanity flag/censor · keyword extraction · full stats. Pick checks or get all.","tags":["dev-utils"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"input":{"type":"string","example":"The quick brown fox jumps over the lazy dog. A truly remarkable fox.","description":"The text to analyze."},"checks":{"type":"array","items":{"type":"string"},"example":["language","stats"],"description":"Which analyses to run (default all): language, readability, profanity, keywords, stats."},"top_keywords":{"type":"integer","minimum":1,"maximum":50,"default":10,"example":10,"description":"How many keywords to extract."}},"required":["input"]},"example":{"input":"The quick brown fox jumps over the lazy dog. The fox is fast."}}}},"responses":{"200":{"description":"Result envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"401":{"description":"Missing or invalid x-api-key"},"429":{"description":"Rate limited or quota exhausted"}},"x-reefapi-credits":2}},"/dev-utils/v1/timestamp":{"post":{"operationId":"dev_utils_timestamp","summary":"Parse/convert any timestamp ('now', unix s/ms/µs, ISO-8601, RFC-2822) → every format + timezone conversion + relative time.","description":"Parse/convert any timestamp ('now', unix s/ms/µs, ISO-8601, RFC-2822) → every format + timezone conversion + relative time.","tags":["dev-utils"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"value":{"type":"string","default":"now","example":"1718000000","description":"The timestamp. 'now' (default), unix seconds (≤10 digits), unix ms (12-14), unix µs (15-17), ISO 8601, or RFC 2822."},"tz":{"type":"string","default":"UTC","example":"Europe/Istanbul","description":"IANA timezone for the local-time outputs."}}},"example":{"value":"1718000000","tz":"Europe/Istanbul"}}}},"responses":{"200":{"description":"Result envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"401":{"description":"Missing or invalid x-api-key"},"429":{"description":"Rate limited or quota exhausted"}},"x-reefapi-credits":1}},"/dev-utils/v1/case_convert":{"post":{"operationId":"dev_utils_case_convert","summary":"Convert identifier/text casing: camel·pascal·snake·kebab·constant·dot·title·sentence·upper·lower (+ detected input case).","description":"Convert identifier/text casing: camel·pascal·snake·kebab·constant·dot·title·sentence·upper·lower (+ detected input case).","tags":["dev-utils"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"input":{"type":"string","example":"getUserProfileURL","description":"The text/identifier to convert."},"target":{"type":"string","enum":["camel","pascal","snake","kebab","constant","dot","title","sentence","upper","lower"],"example":"camel","description":"Target case style."}},"required":["input","target"]},"example":{"input":"getUserProfileURL","target":"snake"}}}},"responses":{"200":{"description":"Result envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"401":{"description":"Missing or invalid x-api-key"},"429":{"description":"Rate limited or quota exhausted"}},"x-reefapi-credits":1}},"/dev-utils/v1/base_convert":{"post":{"operationId":"dev_utils_base_convert","summary":"Convert integers between bases 2-36 (arbitrary precision; 0x/0b/0o prefixes accepted).","description":"Convert integers between bases 2-36 (arbitrary precision; 0x/0b/0o prefixes accepted).","tags":["dev-utils"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"input":{"type":"string","example":"0xff","description":"The number (string). Prefixes 0x/0b/0o override from_base."},"from_base":{"type":"integer","minimum":2,"maximum":36,"default":10,"example":10,"description":"Source base (ignored if input has a prefix)."},"to_base":{"type":"integer","minimum":2,"maximum":36,"default":10,"example":10,"description":"Target base."}},"required":["input"]},"example":{"input":"ff","from_base":16,"to_base":10}}}},"responses":{"200":{"description":"Result envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"401":{"description":"Missing or invalid x-api-key"},"429":{"description":"Rate limited or quota exhausted"}},"x-reefapi-credits":1}},"/dev-utils/v1/markdown":{"post":{"operationId":"dev_utils_markdown","summary":"Render CommonMark+tables markdown → sanitized HTML (raw HTML escaped, XSS-safe) + heading TOC with slugs.","description":"Render CommonMark+tables markdown → sanitized HTML (raw HTML escaped, XSS-safe) + heading TOC with slugs.","tags":["dev-utils"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"input":{"type":"string","example":"# Title\n\nSome **bold** text.","description":"The markdown source."}},"required":["input"]},"example":{"input":"# Hello\n\nworld **bold**\n\n## Sub Title"}}}},"responses":{"200":{"description":"Result envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"401":{"description":"Missing or invalid x-api-key"},"429":{"description":"Rate limited or quota exhausted"}},"x-reefapi-credits":1}},"/dev-utils/v1/user_agent":{"post":{"operationId":"dev_utils_user_agent","summary":"Parse a User-Agent string → browser/OS/device families + versions + bot flag (uap-core database).","description":"Parse a User-Agent string → browser/OS/device families + versions + bot flag (uap-core database).","tags":["dev-utils"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"input":{"type":"string","example":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36","description":"The User-Agent header value."}},"required":["input"]},"example":{"input":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36"}}}},"responses":{"200":{"description":"Result envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"401":{"description":"Missing or invalid x-api-key"},"429":{"description":"Rate limited or quota exhausted"}},"x-reefapi-credits":1}},"/dev-utils/v1/batch":{"post":{"operationId":"dev_utils_batch","summary":"Run up to 100 mixed dev-utils calls in one request.","description":"Run up to 100 mixed dev-utils calls in one request.","tags":["dev-utils"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"string"},"example":[{"action":"hash","params":{"input":"abc","algo":"sha256"}},{"action":"uuid","params":{"version":"v7"}}],"description":"Up to 100 items, each {action, params}. Items run independently — a bad item yields its own error entry, never fails the batch."}},"required":["items"]},"example":{"items":[{"action":"hash","params":{"input":"abc","algo":"md5"}},{"action":"base_convert","params":{"input":"1010","from_base":2}},{"action":"encode","params":{"input":"x","op":"nope"}}]}}}},"responses":{"200":{"description":"Result envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"401":{"description":"Missing or invalid x-api-key"},"429":{"description":"Rate limited or quota exhausted"}},"x-reefapi-credits":1}}},"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key"}},"schemas":{"Envelope":{"type":"object","required":["ok"],"properties":{"ok":{"type":"boolean"},"data":{"description":"Action result (shape varies per action)"},"meta":{"type":"object","description":"api, endpoint, mode, latency_ms, record_count, completeness_pct"},"error":{"type":"object","nullable":true,"properties":{"code":{"type":"string"},"message":{"type":"string"},"retryable":{"type":"boolean"}}}}}}}}