{"openapi":"3.1.0","jsonSchemaDialect":"https://json-schema.org/draft/2020-12/schema","info":{"title":"IDNTEQ tools API","version":"1.0.0","summary":"EMV, SIM and telecom tools from idnteq.net, simprobe.com and telcobench.com as JSON endpoints.","description":"Each endpoint runs the same logic as a free browser tool on idnteq.net, simprobe.com or telcobench.com: JSON in, JSON out. Inputs are processed in memory and not stored or logged. Use test keys and test data only. Tools that take keys or card data say so in their description. Rate limit: 60 requests a minute per IP address. The same tools are available as a remote MCP server at https://api.idnteq.net/mcp.","contact":{"name":"IDNTEQ","url":"https://idnteq.net/contact/"}},"externalDocs":{"description":"Docs","url":"https://api.idnteq.net/"},"servers":[{"url":"https://api.idnteq.net"}],"tags":[{"name":"emv","description":"EMV and payments (idnteq.net)","externalDocs":{"url":"https://idnteq.net/tools/"}},{"name":"sim","description":"SIM and eSIM (simprobe.com)","externalDocs":{"url":"https://simprobe.com/tools/"}},{"name":"telecom","description":"Telecom: SMPP, SMS and SIP (telcobench.com)","externalDocs":{"url":"https://telcobench.com/tools/"}},{"name":"service","description":"Service status"}],"paths":{"/health":{"get":{"operationId":"health","summary":"Service status","tags":["service"],"responses":{"200":{"description":"The service is up.","content":{"application/json":{"schema":{"type":"object","required":["ok","version"],"properties":{"ok":{"type":"boolean","const":true},"version":{"type":"string"}}}}}}}}},"/v1/emv_tlv_decode":{"post":{"operationId":"emv_tlv_decode","summary":"EMV TLV decoder","description":"Decodes BER-TLV data as used on EMV cards (EMV 4.4 Book 3 Annex B, ISO/IEC 8825-1): FCI, GET PROCESSING OPTIONS responses, records, GENERATE AC responses, ISO 8583 DE 55. Each data object gets its EMV tag name and, for 89 tags from EMV 4.4 Books 1–4, a decoded value: dates, amounts with their currency, country and currency codes, PAN, Track 2, AFL, CVM List, CVM Results, and the set bits of AIP, TVR, TSI, AUC, CID, terminal capabilities, TTQ and CTQ. Values that break the tag's rules get a warning; structural problems are reported with their byte offset and the objects read up to that point are returned. Issuer Application Data (9F10) and other payment-system-specific layouts are shown raw. Limits: 64 KiB of input, 32 nesting levels, 5000 objects. Input may contain spaces, line breaks and 0x prefixes. May contain card data (PAN, Track 2). Use test keys and test data only.\n\nSame logic as https://idnteq.net/tools/tlv-parser/. Request body limit: 256 KB.","tags":["emv"],"externalDocs":{"url":"https://idnteq.net/tools/tlv-parser/"},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"description":"BER-TLV data as hex, for example 6F1A840E315041592E5359532E4444463031A5088801025F2D02656E.","type":"string","maxLength":140000}},"required":["data"],"additionalProperties":false,"examples":[{"data":"6F1A840E315041592E5359532E4444463031A5088801025F2D02656E"},{"data":"9F02060000000012345F2A0208409A03251231950580000480009F3403420300"}]},"example":{"data":"6F1A840E315041592E5359532E4444463031A5088801025F2D02656E"}}}},"responses":{"200":{"description":"The tool's result.","content":{"application/json":{"schema":{"type":"object","required":["tool","result","summary"],"properties":{"tool":{"type":"string","const":"emv_tlv_decode"},"result":{"type":"object","description":"The structured result.","additionalProperties":true},"summary":{"type":"string","description":"One or two sentences describing the result."}}}}}},"400":{"description":"The body is not valid JSON.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"The body is over the size limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"The Content-Type is not application/json.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The input does not match the schema, or the tool rejected it (the message says why).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit: 60 requests a minute per IP address.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/emv_dol_decode":{"post":{"operationId":"emv_dol_decode","summary":"EMV DOL decoder","description":"Decodes an EMV Data Object List (EMV 4.4 Book 3 §5.4): a list of tags each followed by a one-byte length, with no values, as in PDOL (9F38), CDOL1 (8C), CDOL2 (8D), TDOL (97) and DDOL (9F49). Returns each tag with its EMV name, the length the card asks for, its offset in the data the terminal builds, and the total length of that data.\n\nSame logic as https://idnteq.net/tools/tlv-parser/. Request body limit: 256 KB.","tags":["emv"],"externalDocs":{"url":"https://idnteq.net/tools/tlv-parser/"},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"dol":{"description":"The DOL value as hex (without its own tag and length), for example 9F02069F03069F1A0295055F2A029A039C019F3704.","type":"string","maxLength":4096}},"required":["dol"],"additionalProperties":false,"examples":[{"dol":"9F02069F03069F1A0295055F2A029A039C019F3704"}]},"example":{"dol":"9F02069F03069F1A0295055F2A029A039C019F3704"}}}},"responses":{"200":{"description":"The tool's result.","content":{"application/json":{"schema":{"type":"object","required":["tool","result","summary"],"properties":{"tool":{"type":"string","const":"emv_dol_decode"},"result":{"type":"object","description":"The structured result.","additionalProperties":true},"summary":{"type":"string","description":"One or two sentences describing the result."}}}}}},"400":{"description":"The body is not valid JSON.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"The body is over the size limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"The Content-Type is not application/json.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The input does not match the schema, or the tool rejected it (the message says why).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit: 60 requests a minute per IP address.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/emv_tlv_build":{"post":{"operationId":"emv_tlv_build","summary":"EMV TLV builder","description":"Encodes a list of data objects as BER-TLV (EMV 4.4 Book 3 Annex B): tag, length (one byte below 128, otherwise 81 or 82 followed by the length) and value. Constructed tags (bit 6 of the first byte set, such as 6F, 70, 77, A5, BF0C, E0) take children and their lengths are computed. Returns the hex and the decoded result as a check.\n\nSame logic as https://idnteq.net/tools/tlv-parser/. Request body limit: 256 KB.","tags":["emv"],"externalDocs":{"url":"https://idnteq.net/tools/tlv-parser/"},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"objects":{"description":"Data objects in order. Each has a tag and either a hex value (primitive) or children (constructed).","minItems":1,"maxItems":500,"type":"array","items":{"$ref":"#/components/schemas/emv_tlv_build____schema0"}}},"required":["objects"],"additionalProperties":false,"examples":[{"objects":[{"tag":"70","children":[{"tag":"5F34","value":"01"},{"tag":"9F07","value":"FF00"}]}]}]},"example":{"objects":[{"tag":"70","children":[{"tag":"5F34","value":"01"},{"tag":"9F07","value":"FF00"}]}]}}}},"responses":{"200":{"description":"The tool's result.","content":{"application/json":{"schema":{"type":"object","required":["tool","result","summary"],"properties":{"tool":{"type":"string","const":"emv_tlv_build"},"result":{"type":"object","description":"The structured result.","additionalProperties":true},"summary":{"type":"string","description":"One or two sentences describing the result."}}}}}},"400":{"description":"The body is not valid JSON.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"The body is over the size limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"The Content-Type is not application/json.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The input does not match the schema, or the tool rejected it (the message says why).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit: 60 requests a minute per IP address.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/emv_tag_lookup":{"post":{"operationId":"emv_tag_lookup","summary":"EMV tag dictionary","description":"Looks up an EMV data element in a dictionary of 89 tags from EMV 4.4 Books 1–4 and the EMV Contactless Books: name, format, length, defining book, template, description and, for bitmap tags (82, 95, 9B, 9F07, 9F27, 9F33, 9F40, 9F66, 9F6C), the meaning of each bit. Search by tag (e.g. 9F26) or by words in the name (e.g. 'cryptogram'). With a value, decodes it as that tag: dates, amounts, codes, AFL, CVM List, CVM Results, set bits. Payment-system-specific layouts such as Issuer Application Data (9F10) are not decoded.\n\nSame logic as https://idnteq.net/tools/emv-tags/. Request body limit: 256 KB.","tags":["emv"],"externalDocs":{"url":"https://idnteq.net/tools/emv-tags/"},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"tag":{"description":"Tag in hex, e.g. 9F26. Give tag or query.","type":"string","pattern":"^[0-9A-Fa-f]{2,6}$"},"query":{"description":"Words to search for in tag names, e.g. 'terminal verification'. Up to 20 matches.","type":"string","minLength":2,"maxLength":80},"value":{"description":"Optional value to decode with the tag, as hex (e.g. 8000048000 for tag 95).","type":"string","maxLength":4096}},"additionalProperties":false,"examples":[{"tag":"95","value":"8000048000"},{"query":"cryptogram"}]},"example":{"tag":"95","value":"8000048000"}}}},"responses":{"200":{"description":"The tool's result.","content":{"application/json":{"schema":{"type":"object","required":["tool","result","summary"],"properties":{"tool":{"type":"string","const":"emv_tag_lookup"},"result":{"type":"object","description":"The structured result.","additionalProperties":true},"summary":{"type":"string","description":"One or two sentences describing the result."}}}}}},"400":{"description":"The body is not valid JSON.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"The body is over the size limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"The Content-Type is not application/json.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The input does not match the schema, or the tool rejected it (the message says why).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit: 60 requests a minute per IP address.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/emv_apdu_decode":{"post":{"operationId":"emv_apdu_decode","summary":"APDU decoder","description":"Decodes smart-card APDUs: one command or response, or a tracer log with one APDU per line (>> / << or C: / R: direction markers, timestamps and # comments are accepted). Commands: class byte (ISO/IEC 7816-4 §5.1.1), instruction name for ISO 7816-4, EMV 4.4 Book 3 §6 and GlobalPlatform commands (SELECT, GET PROCESSING OPTIONS, READ RECORD, GENERATE AC, VERIFY, STORE DATA and others), P1/P2 meaning, case 1–4 short or extended, Lc, data and Le. Responses: status word meaning (61xx, 6Cxx and the 63Cx PIN try counter included) and the data decoded as BER-TLV with EMV tag names when it parses cleanly. Secure messaging is named in the class byte but not decrypted. A line that cannot be read is reported with its line number and position. May contain card data. Use test keys and test data only.\n\nSame logic as https://idnteq.net/tools/apdu-decoder/. Request body limit: 256 KB.","tags":["emv"],"externalDocs":{"url":"https://idnteq.net/tools/apdu-decoder/"},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"apdus":{"description":"One APDU in hex, or a log with one command or response per line. Lines may start with >> (command) or << (response).","type":"string","maxLength":200000}},"required":["apdus"],"additionalProperties":false,"examples":[{"apdus":">> 00A404000E325041592E5359532E444446303100\n<< 6F2E840E325041592E5359532E4444463031A51CBF0C1961174F07A00000000310105009564953412043415244870101 9000\n>> 00A4040007A000000003101000\n<< 6F198407A0000000031010A50E5009564953412043415244870101 9000\n>> 80A8000002830000\n<< 771282024000940C080101001001020118010200 9000"},{"apdus":"00A404000E315041592E5359532E444446303100"}]},"example":{"apdus":">> 00A404000E325041592E5359532E444446303100\n<< 6F2E840E325041592E5359532E4444463031A51CBF0C1961174F07A00000000310105009564953412043415244870101 9000\n>> 00A4040007A000000003101000\n<< 6F198407A0000000031010A50E5009564953412043415244870101 9000\n>> 80A8000002830000\n<< 771282024000940C080101001001020118010200 9000"}}}},"responses":{"200":{"description":"The tool's result.","content":{"application/json":{"schema":{"type":"object","required":["tool","result","summary"],"properties":{"tool":{"type":"string","const":"emv_apdu_decode"},"result":{"type":"object","description":"The structured result.","additionalProperties":true},"summary":{"type":"string","description":"One or two sentences describing the result."}}}}}},"400":{"description":"The body is not valid JSON.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"The body is over the size limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"The Content-Type is not application/json.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The input does not match the schema, or the tool rejected it (the message says why).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit: 60 requests a minute per IP address.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/emv_dgi_decode":{"post":{"operationId":"emv_dgi_decode","summary":"DGI / CPS perso decoder","description":"Decodes personalization data as Data Grouping Identifiers (EMV Card Personalization Specification v1.0 §2.2 and Annex A): DGI (2 bytes), length (1 byte, or FF and 2 bytes) and data, in plain framing or with an 8802 marker before each DGI. Names the common DGIs of CPS Annex A (record DGIs 01nn–1Enn, 8000 DES keys, 9000 key check values, 8010 reference PIN, 9010 PIN counters, 81xx–83xx ICC key parts, 9102 SELECT data, 9104 GPO data) and decodes their TLV content with EMV tag names. Encrypted DGIs (first byte 80–8F, CPS §2.2) are hidden unless reveal_encrypted is set. Optionally checks the presence of the CPS common DGIs. Scheme-specific DGIs are not named. Contains key material and card data. Use test keys and test data only.\n\nSame logic as https://idnteq.net/tools/dgi-decoder/. Request body limit: 256 KB.","tags":["emv"],"externalDocs":{"url":"https://idnteq.net/tools/dgi-decoder/"},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"description":"The DGI stream as hex (spaces allowed).","type":"string","maxLength":140000},"framing":{"description":"plain: DGI | length | data. marked: 8802 before each DGI. auto: marked when the stream starts with 8802 and parses that way.","default":"auto","type":"string","enum":["auto","plain","marked"]},"checklist":{"description":"Presence checklist of the CPS Annex A common DGIs: payment application or PSE.","default":"none","type":"string","enum":["none","cps-payment","cps-pse"]},"reveal_encrypted":{"description":"Show the data of encrypted DGIs (80xx–8Fxx); hidden by default.","default":false,"type":"boolean"}},"required":["data"],"additionalProperties":false,"examples":[{"data":"0101 10 70 0E 5A 08 4000 0000 0000 0002 5F34 01 00  9102 0C A5 0A 50 08 5445535420415050  9104 0A 82 02 5C00 94 04 08010100  8000 10 00112233445566778899AABBCCDDEEFF  9000 03 08D7B4","checklist":"cps-payment"}]},"example":{"data":"0101 10 70 0E 5A 08 4000 0000 0000 0002 5F34 01 00  9102 0C A5 0A 50 08 5445535420415050  9104 0A 82 02 5C00 94 04 08010100  8000 10 00112233445566778899AABBCCDDEEFF  9000 03 08D7B4","checklist":"cps-payment"}}}},"responses":{"200":{"description":"The tool's result.","content":{"application/json":{"schema":{"type":"object","required":["tool","result","summary"],"properties":{"tool":{"type":"string","const":"emv_dgi_decode"},"result":{"type":"object","description":"The structured result.","additionalProperties":true},"summary":{"type":"string","description":"One or two sentences describing the result."}}}}}},"400":{"description":"The body is not valid JSON.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"The body is over the size limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"The Content-Type is not application/json.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The input does not match the schema, or the tool rejected it (the message says why).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit: 60 requests a minute per IP address.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/emv_afl_decode":{"post":{"operationId":"emv_afl_decode","summary":"AFL and static data builder","description":"Decodes the Application File Locator (EMV 4.4 Book 3 §10.2) from a GET PROCESSING OPTIONS response (format 1 '80' or format 2 '77', §6.5.8) or a bare AFL, lists the records the terminal reads with their READ RECORD commands (§6.5.11), and, given the record responses, assembles the static data to be authenticated (§10.3): records marked for offline data authentication (SFI 1–10 without the 70 header, SFI 11–30 whole) followed by the AIP when the Static Data Authentication Tag List (9F4A) asks for it. Returns the static data and its SHA-1 (of the static data alone, not the certificate hash). Records may be given as a log of READ RECORD exchanges or one response per line. May contain card data. Use test keys and test data only.\n\nSame logic as https://idnteq.net/tools/afl-builder/. Request body limit: 256 KB.","tags":["emv"],"externalDocs":{"url":"https://idnteq.net/tools/afl-builder/"},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"gpo":{"description":"GPO response (80… or 77…, SW optional) or a bare AFL as hex. May be empty when the records log contains the GPO exchange.","type":"string","maxLength":8192},"records":{"description":"READ RECORD exchanges as a log (>> 00B2… / << 70… 9000), or one record response per line. Optional: without it only the AFL is decoded.","default":"","type":"string","maxLength":200000},"read_as":{"description":"How to read the gpo field: auto, a GPO response, or a bare AFL.","default":"auto","type":"string","enum":["auto","gpo","afl"]}},"required":["gpo"],"additionalProperties":false,"examples":[{"gpo":"800E3C00080101001001020158010101 9000","records":">> 00B2010C00\n<< 702157134761739001010010D28122011234567800000F5F200953494C56412F414E41 9000\n>> 00B2011400\n<< 703F5A0847617390010100105F24032812315F25032401015F280200765F3401018C159F02069F03069F1A0295055F2A029A039C019F37049F0702FF009F4A0182 9000\n>> 00B2021400\n<< 70288E0E000000000000000042031E031F009F0D05DC4000A8009F0E0500100000009F0F05DC4004F800 9000\n>> 00B2015C00\n<< 70118F01929F3201039F4701039F49039F3704 9000"},{"gpo":"080101001001020118010200","read_as":"afl"}]},"example":{"gpo":"800E3C00080101001001020158010101 9000","records":">> 00B2010C00\n<< 702157134761739001010010D28122011234567800000F5F200953494C56412F414E41 9000\n>> 00B2011400\n<< 703F5A0847617390010100105F24032812315F25032401015F280200765F3401018C159F02069F03069F1A0295055F2A029A039C019F37049F0702FF009F4A0182 9000\n>> 00B2021400\n<< 70288E0E000000000000000042031E031F009F0D05DC4000A8009F0E0500100000009F0F05DC4004F800 9000\n>> 00B2015C00\n<< 70118F01929F3201039F4701039F49039F3704 9000"}}}},"responses":{"200":{"description":"The tool's result.","content":{"application/json":{"schema":{"type":"object","required":["tool","result","summary"],"properties":{"tool":{"type":"string","const":"emv_afl_decode"},"result":{"type":"object","description":"The structured result.","additionalProperties":true},"summary":{"type":"string","description":"One or two sentences describing the result."}}}}}},"400":{"description":"The body is not valid JSON.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"The body is over the size limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"The Content-Type is not application/json.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The input does not match the schema, or the tool rejected it (the message says why).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit: 60 requests a minute per IP address.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/emv_arqc_verify":{"post":{"operationId":"emv_arqc_verify","summary":"ARQC / ARPC calculator","description":"Computes the application cryptogram (ARQC/TC/AAC) per EMV 4.4 Book 2 §8.1: card key (UDK) from the issuer master key with Option A or B (Annex A1.4), session key by the EMV common session key method (Annex A1.3) or SK = UDK, ISO/IEC 9797-1 padding method 1 or 2, and MAC algorithm 3 (retail MAC). Returns every intermediate value (Y, UDK, session key, padded data) with key check values. With an ARQC to verify, reports match or mismatch and, on a mismatch, tries common input variations (other session-key method, other padding, padding already present, byte-swapped ATC, other derivation option) and names any that reproduce it. Optionally computes the ARPC: method 1 with the ARC (§8.2.1) or method 2 with the CSU, decoded per Book 3 Annex C10 (§8.2.2). Presets: visa-cvn18 (Option B, EMV CSK, method 2 padding, ARPC method 2) and visa-cvn10 (Option A, SK = UDK, method 1 padding, ARPC method 1), each confirmed by a published example (AWS Payment Cryptography documentation, pyemv); emv-csk (Option A, EMV CSK, method 2 padding). The transaction data must already be concatenated in the order the cryptogram version defines. Mastercard CVN 12/13 session keys are not supported. Use test keys and test data only.\n\nSame logic as https://idnteq.net/tools/arqc-verifier/. Request body limit: 256 KB.","tags":["emv"],"externalDocs":{"url":"https://idnteq.net/tools/arqc-verifier/"},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"key":{"description":"Issuer master key (IMK, 16 bytes hex), or the card key (UDK) when key_type is udk.","type":"string","maxLength":65536},"key_type":{"description":"imk: derive the UDK from PAN and PSN. udk: the key is already the card key.","default":"imk","type":"string","enum":["imk","udk"]},"pan":{"description":"PAN, 8–19 digits. Needed with key_type imk.","default":"","type":"string","maxLength":25},"psn":{"description":"PAN sequence number (tag 5F34), 2 digits; 00 when the card has none.","default":"00","type":"string","maxLength":2},"profile":{"description":"Preset for derivation, session_key and padding (and the ARPC method). Explicit fields override it.","type":"string","enum":["visa-cvn18","visa-cvn10","emv-csk"]},"derivation":{"description":"UDK derivation option (EMV Book 2 Annex A1.4). Option B differs only for PANs over 16 digits. Default A.","type":"string","enum":["A","B"]},"session_key":{"description":"emv-csk: EMV common session key from the ATC. udk: the card key is the session key. Default emv-csk.","type":"string","enum":["emv-csk","udk"]},"padding":{"description":"ISO/IEC 9797-1 padding: m1 zeros, m2 80 then zeros. Default m2.","type":"string","enum":["m1","m2"]},"atc":{"default":"0000","description":"Application Transaction Counter (9F36), 2 bytes hex. Used by emv-csk.","type":"string","maxLength":8},"data":{"description":"Transaction data, concatenated in the order of the cryptogram version (e.g. 9F02 9F03 9F1A 95 5F2A 9A 9C 9F37 82 9F36 9F10 for Visa CVN 10/18).","type":"string","maxLength":2048},"data_is_padded":{"description":"The data already carries its padding: use as is (multiple of 8 bytes).","default":false,"type":"boolean"},"arqc":{"description":"ARQC to verify (9F26), 8 bytes. Leave out to only compute.","type":"string","maxLength":32},"arpc_method":{"description":"ARPC: m1 (needs arc) or m2 (needs csu). Defaults to the profile's method when arc or csu is given, else none.","type":"string","enum":["none","m1","m2"]},"arc":{"description":"Authorisation Response Code for ARPC method 1, 2 bytes (3030 = ASCII '00').","type":"string","maxLength":8},"csu":{"description":"Card Status Update for ARPC method 2, 4 bytes.","type":"string","maxLength":16},"proprietary_auth_data":{"description":"ARPC method 2: proprietary authentication data, 0–8 bytes.","type":"string","maxLength":32}},"required":["key","data"],"additionalProperties":false,"examples":[{"key":"0123456789ABCDEFFEDCBA9876543210","pan":"9137631040001422","psn":"01","profile":"visa-cvn10","atc":"000B","data":"00000000170000000000000008400080008000084016051700000000093800000B03011203000000","arqc":"D791093C8A921769"},{"key":"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","pan":"1234567890123456","psn":"00","profile":"visa-cvn18","atc":"0FFF","data":"0000000099990000000000000840800004800008409912310152BF458518000FFF06011203A0B800","arqc":"769577B5ABE9FE62","arpc_method":"m2","csu":"00000000"}]},"example":{"key":"0123456789ABCDEFFEDCBA9876543210","pan":"9137631040001422","psn":"01","profile":"visa-cvn10","atc":"000B","data":"00000000170000000000000008400080008000084016051700000000093800000B03011203000000","arqc":"D791093C8A921769"}}}},"responses":{"200":{"description":"The tool's result.","content":{"application/json":{"schema":{"type":"object","required":["tool","result","summary"],"properties":{"tool":{"type":"string","const":"emv_arqc_verify"},"result":{"type":"object","description":"The structured result.","additionalProperties":true},"summary":{"type":"string","description":"One or two sentences describing the result."}}}}}},"400":{"description":"The body is not valid JSON.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"The body is over the size limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"The Content-Type is not application/json.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The input does not match the schema, or the tool rejected it (the message says why).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit: 60 requests a minute per IP address.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/emv_cvv_compute":{"post":{"operationId":"emv_cvv_compute","summary":"CVV / CVC calculator","description":"Computes a card verification value with the CVV / CVC method (DES/TDES with the CVK pair CVKA ‖ CVKB and decimalisation), as published in the psec library: PAN ‖ expiry ‖ service code, zero-padded to 32 digits, two DES/TDES steps, then the first three decimal digits. The service code selects the value: the track's own code (e.g. 201) for CVV1/CVC1, 000 for CVV2/CVC2, 999 for iCVV. Returns the value, each intermediate step and the key check values. Whether the expiry is YYMM or MMYY depends on the issuer. Dynamic CVV, CVC3 and Amex CSC are not computed. Use test keys and test data only.\n\nSame logic as https://idnteq.net/tools/cvv-calculator/. Request body limit: 256 KB.","tags":["emv"],"externalDocs":{"url":"https://idnteq.net/tools/cvv-calculator/"},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"cvk":{"description":"CVK pair CVKA ‖ CVKB, 16 bytes hex (or one 8-byte key).","type":"string","maxLength":64},"pan":{"description":"PAN, 8–19 digits (spaces and dashes ignored).","type":"string","maxLength":25},"expiry":{"description":"Expiry, 4 digits, in the order the issuer uses (usually YYMM).","type":"string","pattern":"^\\d{4}$"},"service_code":{"description":"Service code: the track's code for CVV1, 000 for CVV2, 999 for iCVV.","type":"string","pattern":"^\\d{3}$"}},"required":["cvk","pan","expiry","service_code"],"additionalProperties":false,"examples":[{"cvk":"0123456789ABCDEFFEDCBA9876543210","pan":"1234567890123456","expiry":"9912","service_code":"220"}]},"example":{"cvk":"0123456789ABCDEFFEDCBA9876543210","pan":"1234567890123456","expiry":"9912","service_code":"220"}}}},"responses":{"200":{"description":"The tool's result.","content":{"application/json":{"schema":{"type":"object","required":["tool","result","summary"],"properties":{"tool":{"type":"string","const":"emv_cvv_compute"},"result":{"type":"object","description":"The structured result.","additionalProperties":true},"summary":{"type":"string","description":"One or two sentences describing the result."}}}}}},"400":{"description":"The body is not valid JSON.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"The body is over the size limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"The Content-Type is not application/json.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The input does not match the schema, or the tool rejected it (the message says why).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit: 60 requests a minute per IP address.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/pin_block_build":{"post":{"operationId":"pin_block_build","summary":"PIN block builder","description":"Builds a PIN block per ISO 9564-1:2017 §9: format 0 (ANSI X9.8, PIN field XOR PAN field), format 1 (no PAN, fill digits), format 2 (ICC offline PIN, EMV 4.4 Book 3 §6.5.12), format 3 (PAN-bound, A–F fill) and format 4 (AES, 16-byte PIN and PAN fields). Returns the PIN field, PAN field and clear block. With a key, encrypts it: TDES (8, 16 or 24 bytes) for formats 0–3, AES (16, 24 or 32 bytes) for format 4 with its two intermediate blocks. Fill digits for formats 1, 3 and 4 are random unless given, so pass fill to reproduce a published block. Use test keys and test data only.\n\nSame logic as https://idnteq.net/tools/pin-block/. Request body limit: 256 KB.","tags":["emv"],"externalDocs":{"url":"https://idnteq.net/tools/pin-block/"},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"format":{"description":"ISO 9564 PIN block format, 0 to 4.","type":"integer","minimum":0,"maximum":4},"pin":{"description":"PIN, 4 to 12 digits.","type":"string","pattern":"^\\d{4,12}$"},"pan":{"description":"PAN digits; needed for formats 0, 3 and 4.","type":"string","maxLength":25},"fill":{"description":"Fill digits (hex) for formats 1 and 3 (14 minus the PIN length) or the 16 random digits of format 4. Random when left out.","type":"string","maxLength":32},"key":{"description":"Optional test PIN key to encrypt the block: TDES 8/16/24 bytes (formats 0–3) or AES 16/24/32 bytes (format 4).","type":"string","maxLength":64}},"required":["format","pin"],"additionalProperties":false,"examples":[{"format":0,"pin":"1234","pan":"43219876543210987"},{"format":3,"pin":"1234","pan":"43219876543210987","fill":"BFEDBECFDB"}]},"example":{"format":0,"pin":"1234","pan":"43219876543210987"}}}},"responses":{"200":{"description":"The tool's result.","content":{"application/json":{"schema":{"type":"object","required":["tool","result","summary"],"properties":{"tool":{"type":"string","const":"pin_block_build"},"result":{"type":"object","description":"The structured result.","additionalProperties":true},"summary":{"type":"string","description":"One or two sentences describing the result."}}}}}},"400":{"description":"The body is not valid JSON.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"The body is over the size limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"The Content-Type is not application/json.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The input does not match the schema, or the tool rejected it (the message says why).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit: 60 requests a minute per IP address.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/pin_block_decode":{"post":{"operationId":"pin_block_decode","summary":"PIN block decoder","description":"Decodes an ISO 9564-1:2017 PIN block: an 8-byte block (formats 0–3, the format is read from the control nibble) or a 16-byte format 4 block. With a key, decrypts it first (TDES for 8-byte blocks, AES for format 4). Formats 0, 3 and 4 need the PAN. Returns the PIN, its length, the fill, the PIN and PAN fields, and any structure problems (wrong fill, non-digit PIN, length nibble out of range), which usually mean a wrong key or PAN. Use test keys and test data only.\n\nSame logic as https://idnteq.net/tools/pin-block/. Request body limit: 256 KB.","tags":["emv"],"externalDocs":{"url":"https://idnteq.net/tools/pin-block/"},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"block":{"description":"PIN block as hex: 8 bytes (formats 0–3) or 16 bytes (format 4), clear or encrypted.","type":"string","maxLength":64},"pan":{"description":"PAN digits; needed for formats 0, 3 and 4.","type":"string","maxLength":25},"key":{"description":"Optional test PIN key to decrypt the block first: TDES 8/16/24 bytes, or AES 16/24/32 bytes for format 4.","type":"string","maxLength":64}},"required":["block"],"additionalProperties":false,"examples":[{"block":"0412AC89ABCDEF67","pan":"43219876543210987"},{"block":"E4BE5B623AF7E006AC319E5B93544564","pan":"1234567890123456","key":"00112233445566778899AABBCCDDEEFF"}]},"example":{"block":"0412AC89ABCDEF67","pan":"43219876543210987"}}}},"responses":{"200":{"description":"The tool's result.","content":{"application/json":{"schema":{"type":"object","required":["tool","result","summary"],"properties":{"tool":{"type":"string","const":"pin_block_decode"},"result":{"type":"object","description":"The structured result.","additionalProperties":true},"summary":{"type":"string","description":"One or two sentences describing the result."}}}}}},"400":{"description":"The body is not valid JSON.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"The body is over the size limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"The Content-Type is not application/json.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The input does not match the schema, or the tool rejected it (the message says why).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit: 60 requests a minute per IP address.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/pin_pvv_compute":{"post":{"operationId":"pin_pvv_compute","summary":"Visa PVV calculator","description":"Computes the Visa PIN Verification Value as published in the psec library: the transformed security parameter (TSP: 11 rightmost PAN digits before the check digit, the PVK index, the first 4 PIN digits) is encrypted with TDES under PVKA ‖ PVKB, then the PVV is the first four decimal digits of the result, completed from the A–F digits mapped to 0–5 when needed. Returns each step. With pvv, also verifies the PIN against it. IBM 3624 offsets and other PIN verification methods are not computed. Use test keys and test data only.\n\nSame logic as https://idnteq.net/tools/pvv-calculator/. Request body limit: 256 KB.","tags":["emv"],"externalDocs":{"url":"https://idnteq.net/tools/pvv-calculator/"},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"pvk":{"description":"PVK pair PVKA ‖ PVKB, 16 bytes hex (or a 24-byte TDES key).","type":"string","maxLength":64},"pan":{"description":"PAN, 12–19 digits.","type":"string","maxLength":25},"pvki":{"description":"PVK index (PVKI), one digit 0–9.","type":"string","pattern":"^\\d$"},"pin":{"description":"PIN, 4 to 12 digits (the first 4 are used).","type":"string","pattern":"^\\d{4,12}$"},"pvv":{"description":"PVV on file, to verify the PIN against.","type":"string","pattern":"^\\d{4}$"}},"required":["pvk","pan","pvki","pin"],"additionalProperties":false,"examples":[{"pvk":"0123456789ABCDEFFEDCBA9876543210","pan":"1122334455667788","pvki":"3","pin":"4524"},{"pvk":"0123456789ABCDEFFEDCBA9876543210","pan":"1122334455667788","pvki":"1","pin":"4524","pvv":"8523"}]},"example":{"pvk":"0123456789ABCDEFFEDCBA9876543210","pan":"1122334455667788","pvki":"3","pin":"4524"}}}},"responses":{"200":{"description":"The tool's result.","content":{"application/json":{"schema":{"type":"object","required":["tool","result","summary"],"properties":{"tool":{"type":"string","const":"pin_pvv_compute"},"result":{"type":"object","description":"The structured result.","additionalProperties":true},"summary":{"type":"string","description":"One or two sentences describing the result."}}}}}},"400":{"description":"The body is not valid JSON.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"The body is over the size limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"The Content-Type is not application/json.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The input does not match the schema, or the tool rejected it (the message says why).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit: 60 requests a minute per IP address.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/key_kcv_compute":{"post":{"operationId":"key_kcv_compute","summary":"KCV calculator","description":"Computes key check values: DES/TDES encrypts 8 zero bytes (ANSI X9.24) and AES encrypts 16 bytes of 01 (GlobalPlatform SCP03 convention); the KCV is the first 3 bytes. Give one key, or several key components: each component gets its own KCV and parity, and the combined key is their XOR with its KCV, as in a key ceremony. Reports DES parity per key (odd, even or mixed) and can set odd or even parity on the combined key before the KCV. AES-CMAC check values are not computed here (see key_tr31_unwrap and key_dukpt_derive, which report them). Use test keys and test data only.\n\nSame logic as https://idnteq.net/tools/kcv-calculator/. Request body limit: 256 KB.","tags":["emv"],"externalDocs":{"url":"https://idnteq.net/tools/kcv-calculator/"},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"components":{"description":"One key, or up to 9 components of the same length that are XORed into the key.","minItems":1,"maxItems":9,"type":"array","items":{"description":"A key or key component as hex.","type":"string","maxLength":128}},"algorithm":{"description":"des: DES/TDES key of 8, 16 or 24 bytes. aes: AES key of 16, 24 or 32 bytes.","default":"des","type":"string","enum":["des","aes"]},"set_parity":{"description":"Set DES parity on the combined key before computing its KCV.","default":"keep","type":"string","enum":["keep","odd","even"]}},"required":["components"],"additionalProperties":false,"examples":[{"components":["0123456789ABCDEFFEDCBA9876543210"]},{"components":["0123456789ABCDEF0123456789ABCDEF","FEDCBA9876543210FEDCBA9876543210"],"algorithm":"des"}]},"example":{"components":["0123456789ABCDEFFEDCBA9876543210"]}}}},"responses":{"200":{"description":"The tool's result.","content":{"application/json":{"schema":{"type":"object","required":["tool","result","summary"],"properties":{"tool":{"type":"string","const":"key_kcv_compute"},"result":{"type":"object","description":"The structured result.","additionalProperties":true},"summary":{"type":"string","description":"One or two sentences describing the result."}}}}}},"400":{"description":"The body is not valid JSON.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"The body is over the size limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"The Content-Type is not application/json.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The input does not match the schema, or the tool rejected it (the message says why).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit: 60 requests a minute per IP address.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/crypto_cipher":{"post":{"operationId":"crypto_cipher","summary":"Symmetric encrypt / decrypt","description":"Encrypts or decrypts data with DES/TDES (NIST SP 800-67; 8, 16 or 24-byte keys) or AES (FIPS 197; 16, 24 or 32-byte keys) in ECB or CBC mode (NIST SP 800-38A). Padding: none (data must be whole blocks), ISO/IEC 9797-1 method 1 (zeros) or method 2 (80 then zeros), or PKCS#7; added before encryption and removed after decryption. CBC uses the given IV, or zeros when none is given. Returns the result and the key's check value. Use test keys and test data only.\n\nSame logic as https://idnteq.net/tools/crypto/. Request body limit: 256 KB.","tags":["emv"],"externalDocs":{"url":"https://idnteq.net/tools/crypto/"},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"operation":{"description":"Encrypt or decrypt.","type":"string","enum":["encrypt","decrypt"]},"algorithm":{"description":"des: DES/TDES. aes: AES.","type":"string","enum":["des","aes"]},"mode":{"description":"Block cipher mode.","default":"ecb","type":"string","enum":["ecb","cbc"]},"padding":{"description":"none, ISO 9797-1 method 1 (m1), method 2 (m2) or PKCS#7.","default":"none","type":"string","enum":["none","m1","m2","pkcs7"]},"key":{"description":"Key as hex.","type":"string","maxLength":64},"iv":{"default":"","description":"CBC initialisation vector (8 bytes DES, 16 bytes AES). Zeros when left out.","type":"string","maxLength":64},"data":{"description":"Data as hex.","type":"string","maxLength":131072}},"required":["operation","algorithm","key","data"],"additionalProperties":false,"examples":[{"operation":"encrypt","algorithm":"des","mode":"ecb","key":"0123456789ABCDEF","data":"4E6F77206973207468652074696D6520666F7220616C6C20"},{"operation":"decrypt","algorithm":"aes","mode":"cbc","key":"2B7E151628AED2A6ABF7158809CF4F3C","iv":"000102030405060708090A0B0C0D0E0F","data":"7649ABAC8119B246CEE98E9B12E9197D"}]},"example":{"operation":"encrypt","algorithm":"des","mode":"ecb","key":"0123456789ABCDEF","data":"4E6F77206973207468652074696D6520666F7220616C6C20"}}}},"responses":{"200":{"description":"The tool's result.","content":{"application/json":{"schema":{"type":"object","required":["tool","result","summary"],"properties":{"tool":{"type":"string","const":"crypto_cipher"},"result":{"type":"object","description":"The structured result.","additionalProperties":true},"summary":{"type":"string","description":"One or two sentences describing the result."}}}}}},"400":{"description":"The body is not valid JSON.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"The body is over the size limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"The Content-Type is not application/json.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The input does not match the schema, or the tool rejected it (the message says why).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit: 60 requests a minute per IP address.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/crypto_mac":{"post":{"operationId":"crypto_mac","summary":"MAC calculator","description":"Computes a message authentication code: ISO/IEC 9797-1 MAC algorithm 1 (DES/TDES CBC-MAC, zero IV), MAC algorithm 3 / ANSI X9.19 retail MAC (16-byte key K1 ‖ K2), or AES-CMAC (NIST SP 800-38B, RFC 4493). Padding for the DES MACs: ISO/IEC 9797-1 method 1 or 2, or none (the message must then be whole 8-byte blocks); AES-CMAC pads itself. Returns the full MAC block; truncate it as your protocol requires. Use test keys and test data only.\n\nSame logic as https://idnteq.net/tools/mac-calculator/. Request body limit: 256 KB.","tags":["emv"],"externalDocs":{"url":"https://idnteq.net/tools/mac-calculator/"},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"type":{"description":"iso9797-1-alg1: CBC-MAC. retail: ISO 9797-1 algorithm 3 / X9.19. aes-cmac: AES-CMAC.","type":"string","enum":["iso9797-1-alg1","retail","aes-cmac"]},"key":{"description":"Key as hex: DES/TDES 8/16/24 bytes (algorithm 1), 16 bytes (retail), AES 16/24/32 bytes (CMAC).","type":"string","maxLength":64},"data":{"description":"Message as hex (may be empty).","type":"string","maxLength":131072},"padding":{"description":"ISO 9797-1 padding for the DES MACs: none, method 1 (zeros) or method 2 (80 then zeros). Ignored for AES-CMAC.","default":"m2","type":"string","enum":["none","m1","m2"]}},"required":["type","key","data"],"additionalProperties":false,"examples":[{"type":"aes-cmac","key":"2B7E151628AED2A6ABF7158809CF4F3C","data":"6BC1BEE22E409F96E93D7E117393172A"},{"type":"retail","key":"0123456789ABCDEFFEDCBA9876543210","data":"","padding":"m1"}]},"example":{"type":"aes-cmac","key":"2B7E151628AED2A6ABF7158809CF4F3C","data":"6BC1BEE22E409F96E93D7E117393172A"}}}},"responses":{"200":{"description":"The tool's result.","content":{"application/json":{"schema":{"type":"object","required":["tool","result","summary"],"properties":{"tool":{"type":"string","const":"crypto_mac"},"result":{"type":"object","description":"The structured result.","additionalProperties":true},"summary":{"type":"string","description":"One or two sentences describing the result."}}}}}},"400":{"description":"The body is not valid JSON.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"The body is over the size limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"The Content-Type is not application/json.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The input does not match the schema, or the tool rejected it (the message says why).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit: 60 requests a minute per IP address.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/crypto_hash":{"post":{"operationId":"crypto_hash","summary":"Hash calculator","description":"Computes the SHA-1 or SHA-256 digest (FIPS 180-4) of binary data given as hex, as used for EMV certificate hashes and CA key checksums. Spaces, colons and line breaks between bytes are ignored; empty data gives the hash of no bytes.\n\nSame logic as https://idnteq.net/tools/hash-calculator/. Request body limit: 256 KB.","tags":["emv"],"externalDocs":{"url":"https://idnteq.net/tools/hash-calculator/"},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"algorithm":{"description":"Digest algorithm.","type":"string","enum":["SHA-1","SHA-256"]},"data":{"description":"The data to hash, as hex (for example 0102AABB).","type":"string","maxLength":65536}},"required":["algorithm","data"],"additionalProperties":false,"examples":[{"algorithm":"SHA-1","data":"616263"}]},"example":{"algorithm":"SHA-1","data":"616263"}}}},"responses":{"200":{"description":"The tool's result.","content":{"application/json":{"schema":{"type":"object","required":["tool","result","summary"],"properties":{"tool":{"type":"string","const":"crypto_hash"},"result":{"type":"object","description":"The structured result.","additionalProperties":true},"summary":{"type":"string","description":"One or two sentences describing the result."}}}}}},"400":{"description":"The body is not valid JSON.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"The body is over the size limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"The Content-Type is not application/json.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The input does not match the schema, or the tool rejected it (the message says why).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit: 60 requests a minute per IP address.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/key_tr31_decode":{"post":{"operationId":"key_tr31_decode","summary":"TR-31 key block header decoder","description":"Decodes the clear header of a key block per ASC X9 TR-31:2018 (key block versions A, B, C, D) and ANSI X9.143:2021 (header fields, optional blocks): version, length, key usage (B0 BDK, P0 PIN key, E0 EMV issuer master key and the others), algorithm, mode of use, key version number, exportability, key context, and each optional block (KS, IK, KC, KP, PB, TS…) with its meaning. The key itself stays encrypted; use key_tr31_unwrap with the KBPK to check the MAC and recover it. Use test keys and test data only.\n\nSame logic as https://idnteq.net/tools/tr31-key-block/. Request body limit: 256 KB.","tags":["emv"],"externalDocs":{"url":"https://idnteq.net/tools/tr31-key-block/"},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"key_block":{"description":"The key block (or its header alone), as one printable ASCII string.","type":"string","maxLength":20000}},"required":["key_block"],"additionalProperties":false,"examples":[{"key_block":"C0096B0TX12S0100KS1800604B120F9292800000BFB9B689CB567E66FC3FEE5AD5F52161FC6545B9D60989015D02155C"}]},"example":{"key_block":"C0096B0TX12S0100KS1800604B120F9292800000BFB9B689CB567E66FC3FEE5AD5F52161FC6545B9D60989015D02155C"}}}},"responses":{"200":{"description":"The tool's result.","content":{"application/json":{"schema":{"type":"object","required":["tool","result","summary"],"properties":{"tool":{"type":"string","const":"key_tr31_decode"},"result":{"type":"object","description":"The structured result.","additionalProperties":true},"summary":{"type":"string","description":"One or two sentences describing the result."}}}}}},"400":{"description":"The body is not valid JSON.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"The body is over the size limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"The Content-Type is not application/json.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The input does not match the schema, or the tool rejected it (the message says why).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit: 60 requests a minute per IP address.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/key_tr31_unwrap":{"post":{"operationId":"key_tr31_unwrap","summary":"TR-31 key block unwrap","description":"Unwraps a key block per ASC X9 TR-31:2018 (key block versions A, B, C, D) and ANSI X9.143:2021 (header fields, optional blocks): derives the encryption and MAC keys from the KBPK (variant binding for A and C, CMAC key derivation for B and D, NIST SP 800-38B), verifies the MAC, and only when it verifies returns the clear key, its length and padding, and key check values (legacy KCV and, for AES, the CMAC KCV of ANSI X9.24-1:2017 Annex A). Version E (ISO 20038) is not unwrapped. Returns the decoded header too. Use test keys and test data only.\n\nSame logic as https://idnteq.net/tools/tr31-key-block/. Request body limit: 256 KB.","tags":["emv"],"externalDocs":{"url":"https://idnteq.net/tools/tr31-key-block/"},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"key_block":{"description":"The key block, as one printable ASCII string.","type":"string","maxLength":20000},"kbpk":{"description":"Key block protection key as hex: TDES 16 or 24 bytes (versions A, B, C; A and C also 8), AES 16, 24 or 32 bytes (version D).","type":"string","maxLength":64}},"required":["key_block","kbpk"],"additionalProperties":false,"examples":[{"key_block":"B0080P0TE00E000094B420079CC80BA3461F86FE26EFC4A3B8E4FA4C5F5341176EED7B727B8A248E","kbpk":"DD7515F2BFC17F85CE48F3CA25CB21F6"},{"key_block":"D0112P0AE00E0000B82679114F470F540165EDFBF7E250FCEA43F810D215F8D207E2E417C07156A27E8E31DA05F7425509593D03A457DC34","kbpk":"88E1AB2A2E3DD38C1FA039A536500CC8A87AB9D62DC92C01058FA79F44657DE6"}]},"example":{"key_block":"B0080P0TE00E000094B420079CC80BA3461F86FE26EFC4A3B8E4FA4C5F5341176EED7B727B8A248E","kbpk":"DD7515F2BFC17F85CE48F3CA25CB21F6"}}}},"responses":{"200":{"description":"The tool's result.","content":{"application/json":{"schema":{"type":"object","required":["tool","result","summary"],"properties":{"tool":{"type":"string","const":"key_tr31_unwrap"},"result":{"type":"object","description":"The structured result.","additionalProperties":true},"summary":{"type":"string","description":"One or two sentences describing the result."}}}}}},"400":{"description":"The body is not valid JSON.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"The body is over the size limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"The Content-Type is not application/json.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The input does not match the schema, or the tool rejected it (the message says why).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit: 60 requests a minute per IP address.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/key_tr31_build":{"post":{"operationId":"key_tr31_build","summary":"TR-31 key block builder","description":"Builds a key block per ASC X9 TR-31:2018 (key block versions A, B, C, D) and ANSI X9.143:2021 (header fields, optional blocks): header from the given fields and optional blocks (a PB padding block is added when needed), key length and key, padding, encryption and MAC with keys derived from the KBPK. Padding is random unless given; pass the padding of a published block to rebuild it byte for byte. mask_to pads as if the key were that many bytes, to hide its length. Use test keys and test data only.\n\nSame logic as https://idnteq.net/tools/tr31-key-block/. Request body limit: 256 KB.","tags":["emv"],"externalDocs":{"url":"https://idnteq.net/tools/tr31-key-block/"},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"version":{"description":"Key block version: A/C TDES variant binding, B TDES derivation binding, D AES.","type":"string","enum":["A","B","C","D"]},"usage":{"description":"Key usage, 2 characters, e.g. P0 (PIN key), B0 (BDK), D0 (data), K0 (KEK), M3 (retail MAC).","type":"string","pattern":"^[0-9A-Z]{2}$"},"algorithm":{"description":"Algorithm of the wrapped key: T (TDES), D (DES), A (AES), H (HMAC)…","type":"string","pattern":"^[0-9A-Z]$"},"mode_of_use":{"description":"Mode of use: B, C, D, E, G, N, S, T, V, X or Y.","type":"string","pattern":"^[0-9A-Z]$"},"key_version_number":{"description":"Key version number, 2 characters; 00 when not used.","default":"00","type":"string","pattern":"^[0-9A-Za-z]{2}$"},"exportability":{"description":"E exportable under a trusted key, N not exportable, S sensitive.","default":"E","type":"string","pattern":"^[0-9A-Z]$"},"optional_blocks":{"description":"Optional blocks in order, e.g. [{id: 'KS', data: '00604B120F9292800000'}].","default":[],"maxItems":20,"type":"array","items":{"type":"object","properties":{"id":{"description":"Block ID, e.g. KS.","type":"string","pattern":"^[0-9A-Za-z]{2}$"},"data":{"description":"Block data (printable ASCII).","type":"string","maxLength":4000}},"required":["id","data"],"additionalProperties":false}},"kbpk":{"description":"Key block protection key as hex (TDES for A, B, C; AES for D).","type":"string","maxLength":64},"key":{"description":"The key to wrap, as hex.","type":"string","maxLength":128},"padding":{"description":"Padding bytes as hex, to reproduce a key block. Random when left out.","type":"string","maxLength":128},"mask_to":{"description":"Pad as for a key of this many bytes, to hide the key length.","type":"integer","minimum":1,"maximum":64}},"required":["version","usage","algorithm","mode_of_use","kbpk","key"],"additionalProperties":false,"examples":[{"version":"B","usage":"P0","algorithm":"T","mode_of_use":"E","exportability":"E","kbpk":"DD7515F2BFC17F85CE48F3CA25CB21F6","key":"3F419E1CB7079442AA37474C2EFBF8B8"}]},"example":{"version":"B","usage":"P0","algorithm":"T","mode_of_use":"E","exportability":"E","kbpk":"DD7515F2BFC17F85CE48F3CA25CB21F6","key":"3F419E1CB7079442AA37474C2EFBF8B8"}}}},"responses":{"200":{"description":"The tool's result.","content":{"application/json":{"schema":{"type":"object","required":["tool","result","summary"],"properties":{"tool":{"type":"string","const":"key_tr31_build"},"result":{"type":"object","description":"The structured result.","additionalProperties":true},"summary":{"type":"string","description":"One or two sentences describing the result."}}}}}},"400":{"description":"The body is not valid JSON.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"The body is over the size limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"The Content-Type is not application/json.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The input does not match the schema, or the tool rejected it (the message says why).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit: 60 requests a minute per IP address.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/key_dukpt_derive":{"post":{"operationId":"key_dukpt_derive","summary":"DUKPT calculator","description":"Derives DUKPT keys. TDES DUKPT (ANSI X9.24-1:2009 Annex A): 16-byte BDK and 10-byte KSN give the IPEK, one step per counter bit with the KSN register, the transaction key, the PIN, MAC request/response and data request/response variants, and the data encryption keys (variant through the one-way function). AES DUKPT (ANSI X9.24-3:2017 §6): AES-128/192/256 BDK and 12-byte KSN (8-byte initial key ID, 4-byte counter) give the initial key, the derivation steps, the intermediate derivation key and the working keys (KEK, PIN, MAC generate/verify/both, data encrypt/decrypt/both) of the chosen type with their derivation data. Every key has a check value (TDES: encrypt zeros; AES: CMAC of a zero block, X9.24-1:2017 Annex A). The variant is chosen from the BDK and KSN length. Use test keys and test data only.\n\nSame logic as https://idnteq.net/tools/dukpt-calculator/. Request body limit: 256 KB.","tags":["emv"],"externalDocs":{"url":"https://idnteq.net/tools/dukpt-calculator/"},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"bdk":{"description":"Base derivation key, hex: 16 bytes for TDES DUKPT, or an AES key of 16, 24 or 32 bytes for AES DUKPT.","type":"string","maxLength":64},"ksn":{"description":"Key serial number, hex: 10 bytes (TDES DUKPT) or 12 bytes (AES DUKPT).","type":"string","maxLength":32},"working_key_type":{"description":"AES DUKPT only: type of the working keys (not longer than the BDK).","default":"AES128","type":"string","enum":["2TDEA","3TDEA","AES128","AES192","AES256"]}},"required":["bdk","ksn"],"additionalProperties":false,"examples":[{"bdk":"0123456789ABCDEFFEDCBA9876543210","ksn":"FFFF9876543210E00001"},{"bdk":"FEDCBA9876543210F1F1F1F1F1F1F1F1","ksn":"123456789012345600000001","working_key_type":"AES128"}]},"example":{"bdk":"0123456789ABCDEFFEDCBA9876543210","ksn":"FFFF9876543210E00001"}}}},"responses":{"200":{"description":"The tool's result.","content":{"application/json":{"schema":{"type":"object","required":["tool","result","summary"],"properties":{"tool":{"type":"string","const":"key_dukpt_derive"},"result":{"type":"object","description":"The structured result.","additionalProperties":true},"summary":{"type":"string","description":"One or two sentences describing the result."}}}}}},"400":{"description":"The body is not valid JSON.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"The body is over the size limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"The Content-Type is not application/json.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The input does not match the schema, or the tool rejected it (the message says why).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit: 60 requests a minute per IP address.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/emv_cert_recover":{"post":{"operationId":"emv_cert_recover","summary":"EMV certificate validator","description":"Recovers and validates the EMV offline data authentication certificates (EMV 4.4 Book 2 §5–6): the issuer public key certificate (tag 90, Table 6) with a CA public key, then the ICC public key certificate (tag 9F46, Table 14) with the rebuilt issuer key. For each: the recovered fields (identifier, expiry, serial, algorithms, key lengths), the public key rebuilt from the certificate and the remainder (92 / 9F48), the SHA-1 hash check over the Table 6 / Table 14 input (for the ICC certificate including the static data to be authenticated, Book 3 §10.3), structure checks (6A … BC framing, BB padding, exponent 03 or 010001, remainder rules, N_IC ≤ N_I ≤ N_CA) and the expiry against a reference date. The CA key is found automatically in the bundled list, chosen by RID and index, or given as modulus and exponent; the trust verdict names its status (production, test, unknown or entered by hand). Certificates may also be given already recovered. The link to the card's PAN, revocation lists and scheme acceptance are not checked. Use test keys and test data only.\n\nSame logic as https://idnteq.net/tools/cert-chain/. Request body limit: 256 KB.","tags":["emv"],"externalDocs":{"url":"https://idnteq.net/tools/cert-chain/"},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"issuer_certificate":{"description":"Issuer public key certificate (tag 90), hex.","type":"string","maxLength":600},"issuer_remainder":{"default":"","description":"Issuer public key remainder (tag 92), hex; empty when the key fits in the certificate.","type":"string","maxLength":600},"issuer_exponent":{"default":"03","description":"Issuer public key exponent (tag 9F32), hex, e.g. 03.","type":"string","maxLength":8},"issuer_mode":{"description":"signed: as read from the card. recovered: already opened (6A … BC).","default":"signed","type":"string","enum":["signed","recovered"]},"ca_rid":{"description":"RID of the CA key to use from the bundled list (with ca_index). Leave out for automatic detection.","type":"string","pattern":"^[0-9A-Fa-f]{10}$"},"ca_index":{"description":"CA public key index (tag 8F), with ca_rid.","type":"string","pattern":"^[0-9A-Fa-f]{2}$"},"ca_modulus":{"description":"CA key modulus, hex, to use a key that is not in the list (with ca_exponent).","type":"string","maxLength":600},"ca_exponent":{"description":"CA key exponent, hex (with ca_modulus).","type":"string","maxLength":8},"icc_certificate":{"default":"","description":"ICC public key certificate (tag 9F46), hex. Optional.","type":"string","maxLength":600},"icc_remainder":{"default":"","description":"ICC public key remainder (tag 9F48), hex.","type":"string","maxLength":600},"icc_exponent":{"default":"03","description":"ICC public key exponent (tag 9F47), hex.","type":"string","maxLength":8},"icc_mode":{"description":"signed or already recovered.","default":"signed","type":"string","enum":["signed","recovered"]},"static_data":{"default":"","description":"Static data to be authenticated (records and AIP, as built by emv_afl_decode), hex. Part of the ICC certificate hash.","type":"string","maxLength":8192},"reference_date":{"description":"Date to compare the expiry dates with, YYYY-MM-DD. Today when left out.","type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"required":["issuer_certificate"],"additionalProperties":false,"examples":[{"issuer_certificate":"3559BAC7F18C8F9EFD4C26EF438A7C3CAE4C40BC77E7C2AF39D85550715DFCE5E4D303D78B568ADA4C0A677FA755776EAD440A3C763B9BFB68B8F39084DD0940C85C4A0635CBF9CA05B0F11328AB0656DD33DC642138C39A9C3928AC139F98C0B02E0F4186B3BD34B7517B46196B2F803385717A5B0D0AA8876499068E406F35","issuer_remainder":"1192FCF36E7369A28157DF8600DDC50938CBD602369A62248FDD5E8F81F40A682E758A19","issuer_exponent":"03","ca_modulus":"98D83E76D204F2E702F85E0F9104B5AC73E154F6F3A95645CA2C0B61AE6AD5586EEAD4DE0D585CBC11304F3B576875A3390C79BE0590C597EF88011709D22135F2DF29A29AA9BBD0E7CC0BB0EA44A0F039C730D1E1645BE46F9D0A2C0AE974E6089876D96392931DC59879D6404820DB7419607B013AADFD86575ACE57102935","ca_exponent":"03","icc_certificate":"A34A4174B971C7861FC9ABDA22BC20DCCD5FF59AFF74BC5AB03C76876B521A13262C5606B7A43DD63556BB1A6300C4403F99EB7432885CD8F690972AC25D90719BA34BDBA16EE0384127CD2F19108B78CB3320D4639F75DD6533E022CDF22DF72C4098DEBB8D789EBDFA8CAA5C70CBC03E09C6EE53DA3CE0A3521C4C617CFA96","icc_remainder":"EAC512206D58AD52296B","icc_exponent":"03","static_data":"5A0899990000000000015F24032812315F25032401019F0702FF00","reference_date":"2026-12-01"}]},"example":{"issuer_certificate":"3559BAC7F18C8F9EFD4C26EF438A7C3CAE4C40BC77E7C2AF39D85550715DFCE5E4D303D78B568ADA4C0A677FA755776EAD440A3C763B9BFB68B8F39084DD0940C85C4A0635CBF9CA05B0F11328AB0656DD33DC642138C39A9C3928AC139F98C0B02E0F4186B3BD34B7517B46196B2F803385717A5B0D0AA8876499068E406F35","issuer_remainder":"1192FCF36E7369A28157DF8600DDC50938CBD602369A62248FDD5E8F81F40A682E758A19","issuer_exponent":"03","ca_modulus":"98D83E76D204F2E702F85E0F9104B5AC73E154F6F3A95645CA2C0B61AE6AD5586EEAD4DE0D585CBC11304F3B576875A3390C79BE0590C597EF88011709D22135F2DF29A29AA9BBD0E7CC0BB0EA44A0F039C730D1E1645BE46F9D0A2C0AE974E6089876D96392931DC59879D6404820DB7419607B013AADFD86575ACE57102935","ca_exponent":"03","icc_certificate":"A34A4174B971C7861FC9ABDA22BC20DCCD5FF59AFF74BC5AB03C76876B521A13262C5606B7A43DD63556BB1A6300C4403F99EB7432885CD8F690972AC25D90719BA34BDBA16EE0384127CD2F19108B78CB3320D4639F75DD6533E022CDF22DF72C4098DEBB8D789EBDFA8CAA5C70CBC03E09C6EE53DA3CE0A3521C4C617CFA96","icc_remainder":"EAC512206D58AD52296B","icc_exponent":"03","static_data":"5A0899990000000000015F24032812315F25032401019F0702FF00","reference_date":"2026-12-01"}}}},"responses":{"200":{"description":"The tool's result.","content":{"application/json":{"schema":{"type":"object","required":["tool","result","summary"],"properties":{"tool":{"type":"string","const":"emv_cert_recover"},"result":{"type":"object","description":"The structured result.","additionalProperties":true},"summary":{"type":"string","description":"One or two sentences describing the result."}}}}}},"400":{"description":"The body is not valid JSON.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"The body is over the size limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"The Content-Type is not application/json.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The input does not match the schema, or the tool rejected it (the message says why).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit: 60 requests a minute per IP address.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/emv_ca_key_lookup":{"post":{"operationId":"emv_ca_key_lookup","summary":"EMV CA public key lookup","description":"Looks up an EMV certification authority public key (EMV 4.4 Book 2 §11) in the list published on idnteq.net, compiled from public sources (network key lists published by acquirers and terminal vendors, open-source EMV kernels); each key lists its sources, its status (production, test or unknown) and, where a source states one, its expiry. With rid and index, returns the modulus, exponent and SHA-1 checksum over RID, index, modulus and exponent. With rid only, lists the indexes known for that RID. Not a key distribution service: check the network's current bulletin before loading a key into a terminal.\n\nSame logic as https://idnteq.net/tools/ca-keys/. Request body limit: 256 KB.","tags":["emv"],"externalDocs":{"url":"https://idnteq.net/tools/ca-keys/"},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"rid":{"description":"Registered application provider identifier, 5 bytes hex, e.g. A000000003 or A000000004.","type":"string","pattern":"^[0-9A-Fa-f]{10}$"},"index":{"description":"CA public key index (tag 8F), 1 byte hex, e.g. 92. Leave out to list the indexes for the RID.","type":"string","pattern":"^[0-9A-Fa-f]{2}$"}},"required":["rid"],"additionalProperties":false,"examples":[{"rid":"A000000004","index":"06"},{"rid":"A000000003"}]},"example":{"rid":"A000000004","index":"06"}}}},"responses":{"200":{"description":"The tool's result.","content":{"application/json":{"schema":{"type":"object","required":["tool","result","summary"],"properties":{"tool":{"type":"string","const":"emv_ca_key_lookup"},"result":{"type":"object","description":"The structured result.","additionalProperties":true},"summary":{"type":"string","description":"One or two sentences describing the result."}}}}}},"400":{"description":"The body is not valid JSON.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"The body is over the size limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"The Content-Type is not application/json.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The input does not match the schema, or the tool rejected it (the message says why).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit: 60 requests a minute per IP address.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/emv_rsa_modexp":{"post":{"operationId":"emv_rsa_modexp","summary":"Raw RSA calculator","description":"Computes raw RSA (modular exponentiation) as used for EMV public-key operations (EMV 4.4 Book 2 §5–6, Annex A2): result = data ^ exponent mod modulus, left-padded to the modulus length. No padding scheme, signature format or certificate parsing; use emv_cert_recover to recover and check EMV certificates. The data must be smaller than the modulus.\n\nSame logic as https://idnteq.net/tools/rsa-calculator/. Request body limit: 256 KB.","tags":["emv"],"externalDocs":{"url":"https://idnteq.net/tools/rsa-calculator/"},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"description":"Data (e.g. a signed certificate), hex.","type":"string","maxLength":1100},"exponent":{"description":"Exponent, hex (e.g. 03 or 010001).","type":"string","maxLength":1100},"modulus":{"description":"Modulus, hex.","type":"string","maxLength":1100}},"required":["data","exponent","modulus"],"additionalProperties":false,"examples":[{"data":"3559BAC7F18C8F9EFD4C26EF438A7C3CAE4C40BC77E7C2AF39D85550715DFCE5E4D303D78B568ADA4C0A677FA755776EAD440A3C763B9BFB68B8F39084DD0940C85C4A0635CBF9CA05B0F11328AB0656DD33DC642138C39A9C3928AC139F98C0B02E0F4186B3BD34B7517B46196B2F803385717A5B0D0AA8876499068E406F35","exponent":"03","modulus":"98D83E76D204F2E702F85E0F9104B5AC73E154F6F3A95645CA2C0B61AE6AD5586EEAD4DE0D585CBC11304F3B576875A3390C79BE0590C597EF88011709D22135F2DF29A29AA9BBD0E7CC0BB0EA44A0F039C730D1E1645BE46F9D0A2C0AE974E6089876D96392931DC59879D6404820DB7419607B013AADFD86575ACE57102935"}]},"example":{"data":"3559BAC7F18C8F9EFD4C26EF438A7C3CAE4C40BC77E7C2AF39D85550715DFCE5E4D303D78B568ADA4C0A677FA755776EAD440A3C763B9BFB68B8F39084DD0940C85C4A0635CBF9CA05B0F11328AB0656DD33DC642138C39A9C3928AC139F98C0B02E0F4186B3BD34B7517B46196B2F803385717A5B0D0AA8876499068E406F35","exponent":"03","modulus":"98D83E76D204F2E702F85E0F9104B5AC73E154F6F3A95645CA2C0B61AE6AD5586EEAD4DE0D585CBC11304F3B576875A3390C79BE0590C597EF88011709D22135F2DF29A29AA9BBD0E7CC0BB0EA44A0F039C730D1E1645BE46F9D0A2C0AE974E6089876D96392931DC59879D6404820DB7419607B013AADFD86575ACE57102935"}}}},"responses":{"200":{"description":"The tool's result.","content":{"application/json":{"schema":{"type":"object","required":["tool","result","summary"],"properties":{"tool":{"type":"string","const":"emv_rsa_modexp"},"result":{"type":"object","description":"The structured result.","additionalProperties":true},"summary":{"type":"string","description":"One or two sentences describing the result."}}}}}},"400":{"description":"The body is not valid JSON.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"The body is over the size limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"The Content-Type is not application/json.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The input does not match the schema, or the tool rejected it (the message says why).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit: 60 requests a minute per IP address.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/iso8583_decode":{"post":{"operationId":"iso8583_decode","summary":"ISO 8583 decoder","description":"Decodes an ISO 8583 message per ISO 8583:1987 (message type indicator, primary and secondary bitmaps, data elements 2–128) in a declared dialect (ASCII, ASCII with hex bitmap, or BCD numeric) with an optional length header: MTI and its meaning, bitmaps, each data element with its name, type, offset and value, explanations of common codes (processing code, POS entry mode, response code including the EMV Book 4 terminal codes Y1, Z1, Y3, Z3), and DE 55 decoded as EMV BER-TLV (EMV 4.4 Book 3 Annex A tags). Errors give the byte offset and the data element. No EBCDIC, no DE 65 (tertiary bitmap), no subfields of private fields (48, 60–63, 120–127): network-specific layouts need their own dialect. May contain card data; mask hides it in the output. Use test keys and test data only.\n\nSame logic as https://idnteq.net/tools/iso8583/. Request body limit: 256 KB.","tags":["emv"],"externalDocs":{"url":"https://idnteq.net/tools/iso8583/"},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"message":{"description":"The message as hex, from the length header (if any) or the MTI.","type":"string","maxLength":40000},"dialect":{"description":"ascii: MTI and numeric fields as ASCII digits, binary bitmap. asciihex: as ascii with the bitmap as 16 ASCII hex characters. bcd: MTI and numeric fields packed BCD, binary bitmap (ISO 8583:1987 binary).","default":"ascii","type":"string","enum":["ascii","asciihex","bcd"]},"header":{"description":"Length header before the MTI: none, 2-byte binary, or 4 ASCII digits.","default":"none","type":"string","enum":["none","bin2","ascii4"]},"mask":{"description":"Mask the PAN (first 6 and last 4 digits shown), track data and cardholder name in the output.","default":false,"type":"boolean"}},"required":["message"],"additionalProperties":false,"examples":[{"message":"303130307224068020C09200313634373631373339303031303130303130303030303030303030303030303032353530313133303134333031353030303132333238313230353130303130303337343736313733393030313031303031303D32383132323031313233343536373830303030305445524D303030314D45524348414E54303030303030313938361A2B3C4D5E6F70813039319F26088E19ED4B98AE5A419F2701809F100706011203A000009F37049BADBCAB9F36020027950500000400009A032611309C01009F02060000000025505F2A020986820239009F1A0200769F3303E0F0C85A084761739001010010","dialect":"ascii"}]},"example":{"message":"303130307224068020C09200313634373631373339303031303130303130303030303030303030303030303032353530313133303134333031353030303132333238313230353130303130303337343736313733393030313031303031303D32383132323031313233343536373830303030305445524D303030314D45524348414E54303030303030313938361A2B3C4D5E6F70813039319F26088E19ED4B98AE5A419F2701809F100706011203A000009F37049BADBCAB9F36020027950500000400009A032611309C01009F02060000000025505F2A020986820239009F1A0200769F3303E0F0C85A084761739001010010","dialect":"ascii"}}}},"responses":{"200":{"description":"The tool's result.","content":{"application/json":{"schema":{"type":"object","required":["tool","result","summary"],"properties":{"tool":{"type":"string","const":"iso8583_decode"},"result":{"type":"object","description":"The structured result.","additionalProperties":true},"summary":{"type":"string","description":"One or two sentences describing the result."}}}}}},"400":{"description":"The body is not valid JSON.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"The body is over the size limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"The Content-Type is not application/json.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The input does not match the schema, or the tool rejected it (the message says why).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit: 60 requests a minute per IP address.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/iso8583_compare":{"post":{"operationId":"iso8583_compare","summary":"ISO 8583 compare","description":"Decodes two ISO 8583 messages (ISO 8583:1987 (message type indicator, primary and secondary bitmaps, data elements 2–128)), each in its own dialect, and compares them by data element on the decoded values, so messages in different dialects can be compared. Each element is same, different, only in A or only in B; when both carry DE 55 the EMV tags inside are compared too. Notes when B's MTI is the response to A's. May contain card data; mask hides it. Use test keys and test data only.\n\nSame logic as https://idnteq.net/tools/iso8583/. Request body limit: 256 KB.","tags":["emv"],"externalDocs":{"url":"https://idnteq.net/tools/iso8583/"},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"message_a":{"description":"First message, hex.","type":"string","maxLength":40000},"message_b":{"description":"Second message, hex.","type":"string","maxLength":40000},"dialect_a":{"description":"ascii: MTI and numeric fields as ASCII digits, binary bitmap. asciihex: as ascii with the bitmap as 16 ASCII hex characters. bcd: MTI and numeric fields packed BCD, binary bitmap (ISO 8583:1987 binary).","default":"ascii","type":"string","enum":["ascii","asciihex","bcd"]},"dialect_b":{"description":"ascii: MTI and numeric fields as ASCII digits, binary bitmap. asciihex: as ascii with the bitmap as 16 ASCII hex characters. bcd: MTI and numeric fields packed BCD, binary bitmap (ISO 8583:1987 binary).","default":"ascii","type":"string","enum":["ascii","asciihex","bcd"]},"header_a":{"description":"Length header before the MTI: none, 2-byte binary, or 4 ASCII digits.","default":"none","type":"string","enum":["none","bin2","ascii4"]},"header_b":{"description":"Length header before the MTI: none, 2-byte binary, or 4 ASCII digits.","default":"none","type":"string","enum":["none","bin2","ascii4"]},"mask":{"description":"Mask the PAN (first 6 and last 4 digits shown), track data and cardholder name in the output.","default":false,"type":"boolean"}},"required":["message_a","message_b"],"additionalProperties":false,"examples":[{"message_a":"303130307224068020C09200313634373631373339303031303130303130303030303030303030303030303032353530313133303134333031353030303132333238313230353130303130303337343736313733393030313031303031303D32383132323031313233343536373830303030305445524D303030314D45524348414E54303030303030313938361A2B3C4D5E6F70813039319F26088E19ED4B98AE5A419F2701809F100706011203A000009F37049BADBCAB9F36020027950500000400009A032611309C01009F02060000000025505F2A020986820239009F1A0200769F3303E0F0C85A084761739001010010","message_b":"30313130722000000E8082003136343736313733393030313031303031303030303030303030303030303030323535303131333031343330313630303031323336333334313430303031323341314232433330305445524D30303031393836303136910A3D6E8A01B2C3D4E500008A023030"}]},"example":{"message_a":"303130307224068020C09200313634373631373339303031303130303130303030303030303030303030303032353530313133303134333031353030303132333238313230353130303130303337343736313733393030313031303031303D32383132323031313233343536373830303030305445524D303030314D45524348414E54303030303030313938361A2B3C4D5E6F70813039319F26088E19ED4B98AE5A419F2701809F100706011203A000009F37049BADBCAB9F36020027950500000400009A032611309C01009F02060000000025505F2A020986820239009F1A0200769F3303E0F0C85A084761739001010010","message_b":"30313130722000000E8082003136343736313733393030313031303031303030303030303030303030303030323535303131333031343330313630303031323336333334313430303031323341314232433330305445524D30303031393836303136910A3D6E8A01B2C3D4E500008A023030"}}}},"responses":{"200":{"description":"The tool's result.","content":{"application/json":{"schema":{"type":"object","required":["tool","result","summary"],"properties":{"tool":{"type":"string","const":"iso8583_compare"},"result":{"type":"object","description":"The structured result.","additionalProperties":true},"summary":{"type":"string","description":"One or two sentences describing the result."}}}}}},"400":{"description":"The body is not valid JSON.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"The body is over the size limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"The Content-Type is not application/json.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The input does not match the schema, or the tool rejected it (the message says why).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit: 60 requests a minute per IP address.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/iso8583_build":{"post":{"operationId":"iso8583_build","summary":"ISO 8583 message builder","description":"Encodes an ISO 8583 test message per ISO 8583:1987 (message type indicator, primary and secondary bitmaps, data elements 2–128) in the chosen dialect (ASCII, ASCII with hex bitmap, or BCD) with an optional length header: MTI, primary and secondary bitmap (bit 1 set when a field above 64 is present), then each data element with its length prefix. Every value is checked against the field's format (fixed or LL/LLL variable, numeric, track, text or binary); problems are listed per field and nothing is encoded until they are fixed. Binary fields (52, 55, 64, 128) are given as hex; track 2 (35) uses = or D as separator. A template (emv-auth, auth-resp, financial, reversal, echo) gives a starting set of fields with made-up test data; fields given override it. No 1993/2003 layouts, EBCDIC, DE 65 or private subfields. Use test keys and test data only.\n\nSame logic as https://idnteq.net/tools/iso8583-builder/. Request body limit: 256 KB.","tags":["emv"],"externalDocs":{"url":"https://idnteq.net/tools/iso8583-builder/"},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"mti":{"description":"Message type indicator, 4 digits starting with 0, e.g. 0100. Required unless a template gives it.","type":"string","pattern":"^\\d{4}$"},"fields":{"description":"Data elements by number, e.g. {\"3\": \"000000\", \"4\": \"000000001000\", \"55\": \"9F2608…\"}. Values as text or digits; binary fields as hex.","default":{},"type":"object","propertyNames":{"type":"string","pattern":"^\\d{1,3}$"},"additionalProperties":{"type":"string","maxLength":1000}},"template":{"description":"Start from a template with made-up test data; fields override its values.","type":"string","enum":["emv-auth","auth-resp","financial","reversal","echo"]},"dialect":{"description":"ascii: MTI and numeric fields as ASCII digits, binary bitmap. asciihex: as ascii with the bitmap as 16 ASCII hex characters. bcd: MTI and numeric fields packed BCD, binary bitmap (ISO 8583:1987 binary).","default":"ascii","type":"string","enum":["ascii","asciihex","bcd"]},"header":{"description":"Length header before the MTI: none, 2-byte binary, or 4 ASCII digits.","default":"none","type":"string","enum":["none","bin2","ascii4"]}},"additionalProperties":false,"examples":[{"mti":"0800","fields":{"7":"1130150000","11":"000126","70":"301"}},{"template":"emv-auth","dialect":"bcd","header":"bin2"}]},"example":{"mti":"0800","fields":{"7":"1130150000","11":"000126","70":"301"}}}}},"responses":{"200":{"description":"The tool's result.","content":{"application/json":{"schema":{"type":"object","required":["tool","result","summary"],"properties":{"tool":{"type":"string","const":"iso8583_build"},"result":{"type":"object","description":"The structured result.","additionalProperties":true},"summary":{"type":"string","description":"One or two sentences describing the result."}}}}}},"400":{"description":"The body is not valid JSON.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"The body is over the size limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"The Content-Type is not application/json.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The input does not match the schema, or the tool rejected it (the message says why).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit: 60 requests a minute per IP address.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/sim_identify":{"post":{"operationId":"sim_identify","summary":"SIM identifier detector","description":"Recognises which SIM or eSIM identifier a string is and decodes it with the matching parser: ICCID (ITU-T E.118, printed or raw EF_ICCID per ETSI TS 102 221), IMSI (ITU-T E.212 / 3GPP TS 23.003, printed or raw EF_IMSI per TS 31.102), EID (GSMA SGP.29) or an SGP.22 activation code. IMEIs are not detected: a 15-digit IMEI looks like an IMSI. Returns kind \"unknown\" with the reason when nothing matches. Names of countries and operators carry their source credit.\n\nSame logic as https://simprobe.com/. Request body limit: 256 KB.","tags":["sim"],"externalDocs":{"url":"https://simprobe.com/"},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"input":{"description":"The string to identify: digits, hex card content or an LPA:1$… code.","type":"string","minLength":1,"maxLength":1024}},"required":["input"],"additionalProperties":false,"examples":[{"input":"8955010012832773428"},{"input":"89049032123451234512345678901235"}]},"example":{"input":"8955010012832773428"}}}},"responses":{"200":{"description":"The tool's result.","content":{"application/json":{"schema":{"type":"object","required":["tool","result","summary"],"properties":{"tool":{"type":"string","const":"sim_identify"},"result":{"type":"object","description":"The structured result.","additionalProperties":true},"summary":{"type":"string","description":"One or two sentences describing the result."}}}}}},"400":{"description":"The body is not valid JSON.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"The body is over the size limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"The Content-Type is not application/json.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The input does not match the schema, or the tool rejected it (the message says why).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit: 60 requests a minute per IP address.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/sim_iccid_parse":{"post":{"operationId":"sim_iccid_parse","summary":"ICCID parser","description":"Parses an ICCID (Integrated Circuit Card Identifier, ITU-T E.118): checks the Luhn check digit (ISO/IEC 7812-1) and gives the correct one when it fails, splits the major industry identifier (89), the E.164 country code (with every plausible reading, e.g. the zero-padded 01 North American layout or an MCC in the country position) and the issuer/account digits, and gives the on-card EF_ICCID (2FE2) content as swapped-nibble BCD padded with F to 10 bytes (ETSI TS 102 221 §13.2). Accepts the printed digits or raw EF_ICCID hex; raw content is recognised by its structure, or forced with raw: true. Country and operator names come from the ITU-T E.164 and E.212 lists; the answer carries their source credit.\n\nSame logic as https://simprobe.com/tools/iccid-parser/. Request body limit: 256 KB.","tags":["sim"],"externalDocs":{"url":"https://simprobe.com/tools/iccid-parser/"},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"iccid":{"description":"The printed ICCID (18–20 digits, spaces allowed) or raw EF_ICCID content as hex.","type":"string","minLength":1,"maxLength":64},"raw":{"description":"Read the input as raw EF_ICCID bytes (swapped-nibble BCD) whatever it looks like. Default false: decided from the input's structure.","type":"boolean"}},"required":["iccid"],"additionalProperties":false,"examples":[{"iccid":"8955010012832773428"},{"iccid":"985510002138723724F8","raw":true}]},"example":{"iccid":"8955010012832773428"}}}},"responses":{"200":{"description":"The tool's result.","content":{"application/json":{"schema":{"type":"object","required":["tool","result","summary"],"properties":{"tool":{"type":"string","const":"sim_iccid_parse"},"result":{"type":"object","description":"The structured result.","additionalProperties":true},"summary":{"type":"string","description":"One or two sentences describing the result."}}}}}},"400":{"description":"The body is not valid JSON.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"The body is over the size limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"The Content-Type is not application/json.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The input does not match the schema, or the tool rejected it (the message says why).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit: 60 requests a minute per IP address.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/sim_iccid_generate":{"post":{"operationId":"sim_iccid_generate","summary":"ICCID generator","description":"Builds a synthetic ICCID (ITU-T E.118) for testing: the prefix (starting with the telecom MII 89), then the fill digits or random digits up to the requested length, then the Luhn check digit (ISO/IEC 7812-1). Also returns the EF_ICCID content as swapped-nibble BCD padded to 10 bytes (ETSI TS 102 221 §13.2). The result is a test value, not an assigned issuer or account number. Without fill, the body digits are random on each call.\n\nSame logic as https://simprobe.com/tools/iccid-parser/. Request body limit: 256 KB.","tags":["sim"],"externalDocs":{"url":"https://simprobe.com/tools/iccid-parser/"},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"prefix":{"description":"Leading digits without the check digit, starting with 89, e.g. 8955 (89 + country code + issuer).","type":"string","minLength":2,"maxLength":19},"length":{"description":"Total length including the check digit: 18, 19 or 20.","anyOf":[{"type":"number","const":18},{"type":"number","const":19},{"type":"number","const":20}]},"fill":{"description":"Digits placed after the prefix; random digits fill any remainder. Gives a reproducible result when it fills the whole body.","type":"string","maxLength":19}},"required":["prefix","length"],"additionalProperties":false,"examples":[{"prefix":"8955","length":19,"fill":"01001283277342"}]},"example":{"prefix":"8955","length":19,"fill":"01001283277342"}}}},"responses":{"200":{"description":"The tool's result.","content":{"application/json":{"schema":{"type":"object","required":["tool","result","summary"],"properties":{"tool":{"type":"string","const":"sim_iccid_generate"},"result":{"type":"object","description":"The structured result.","additionalProperties":true},"summary":{"type":"string","description":"One or two sentences describing the result."}}}}}},"400":{"description":"The body is not valid JSON.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"The body is over the size limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"The Content-Type is not application/json.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The input does not match the schema, or the tool rejected it (the message says why).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit: 60 requests a minute per IP address.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/sim_imsi_parse":{"post":{"operationId":"sim_imsi_parse","summary":"IMSI parser","description":"Parses an IMSI (ITU-T E.212, 3GPP TS 23.003 §2.2) into MCC, MNC and MSIN. Because the MNC length (2 or 3 digits) cannot be read from the IMSI itself, both splits are returned, with the likelier one marked from the MNCs assigned under the MCC (or from mnc_length when known, e.g. from EF_AD byte 4). Also decodes raw EF_IMSI (6F07) content: length byte, parity and identity-type nibble and swapped-nibble BCD (3GPP TS 31.102 §4.2.2, TS 24.008). Country and operator names come from the ITU-T E.212 list and its supplements; the answer carries the source of each name.\n\nSame logic as https://simprobe.com/tools/imsi-parser/. Request body limit: 256 KB.","tags":["sim"],"externalDocs":{"url":"https://simprobe.com/tools/imsi-parser/"},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"imsi":{"description":"A printed IMSI (up to 15 digits) or raw EF_IMSI content as hex (9 bytes, length byte first).","type":"string","minLength":1,"maxLength":64},"mnc_length":{"description":"The MNC length when known (EF_AD byte 4); that split is then the preferred one.","anyOf":[{"type":"number","const":2},{"type":"number","const":3}]}},"required":["imsi"],"additionalProperties":false,"examples":[{"imsi":"310150123456789"},{"imsi":"08 39 01 51 10 32 54 76 98"}]},"example":{"imsi":"310150123456789"}}}},"responses":{"200":{"description":"The tool's result.","content":{"application/json":{"schema":{"type":"object","required":["tool","result","summary"],"properties":{"tool":{"type":"string","const":"sim_imsi_parse"},"result":{"type":"object","description":"The structured result.","additionalProperties":true},"summary":{"type":"string","description":"One or two sentences describing the result."}}}}}},"400":{"description":"The body is not valid JSON.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"The body is over the size limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"The Content-Type is not application/json.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The input does not match the schema, or the tool rejected it (the message says why).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit: 60 requests a minute per IP address.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/sim_mccmnc_lookup":{"post":{"operationId":"sim_mccmnc_lookup","summary":"MCC / MNC lookup","description":"Looks up one mobile country code (MCC) and, optionally, one mobile network code (MNC) in the ITU-T E.212 list as amended by the ITU Operational Bulletins (US MCC 310–316 from the US IMSI Administrator; some India MCC 404/405 codes from India's Department of Telecommunications or Wikipedia, CC BY-SA 4.0). With an MNC: that network's name, or not found. With an MCC only: the country or area and how many MNCs are assigned under it (not the list). Every answer names the source of its data. One query per call; there is no bulk or list access, because the data is for reference use under ITU's terms.\n\nSame logic as https://simprobe.com/reference/mcc-mnc/. Request body limit: 256 KB.","tags":["sim"],"externalDocs":{"url":"https://simprobe.com/reference/mcc-mnc/"},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"mcc":{"description":"Mobile country code, 3 digits, e.g. 310.","type":"string","pattern":"^\\d{3}$"},"mnc":{"description":"Mobile network code, 2 or 3 digits as assigned (05 and 005 are different codes), e.g. 150.","type":"string","pattern":"^\\d{2,3}$"}},"required":["mcc"],"additionalProperties":false,"examples":[{"mcc":"310","mnc":"150"},{"mcc":"724","mnc":"05"},{"mcc":"404","mnc":"28"},{"mcc":"262"}]},"example":{"mcc":"310","mnc":"150"}}}},"responses":{"200":{"description":"The tool's result.","content":{"application/json":{"schema":{"type":"object","required":["tool","result","summary"],"properties":{"tool":{"type":"string","const":"sim_mccmnc_lookup"},"result":{"type":"object","description":"The structured result.","additionalProperties":true},"summary":{"type":"string","description":"One or two sentences describing the result."}}}}}},"400":{"description":"The body is not valid JSON.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"The body is over the size limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"The Content-Type is not application/json.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The input does not match the schema, or the tool rejected it (the message says why).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit: 60 requests a minute per IP address.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/esim_eid_parse":{"post":{"operationId":"esim_eid_parse","summary":"EID parser","description":"Parses an eUICC identifier (EID, 32 digits, GSMA SGP.29 §10 and SGP.22): checks the two check digits with ISO/IEC 7064 MOD 97-10 (the EID mod 97 must equal 1; this is not a Luhn digit) and gives the correct digits when they fail, and splits an 89-prefixed EID into MII, EUM country code (3 digits, zero-padded E.164), EUM issuer identifier and the manufacturer-specific digits. The country name comes from the ITU-T E.164 list; the answer carries its source credit.\n\nSame logic as https://simprobe.com/tools/eid-parser/. Request body limit: 256 KB.","tags":["sim"],"externalDocs":{"url":"https://simprobe.com/tools/eid-parser/"},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"eid":{"description":"The 32-digit EID; spaces allowed.","type":"string","minLength":1,"maxLength":64}},"required":["eid"],"additionalProperties":false,"examples":[{"eid":"89049032123451234512345678901235"}]},"example":{"eid":"89049032123451234512345678901235"}}}},"responses":{"200":{"description":"The tool's result.","content":{"application/json":{"schema":{"type":"object","required":["tool","result","summary"],"properties":{"tool":{"type":"string","const":"esim_eid_parse"},"result":{"type":"object","description":"The structured result.","additionalProperties":true},"summary":{"type":"string","description":"One or two sentences describing the result."}}}}}},"400":{"description":"The body is not valid JSON.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"The body is over the size limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"The Content-Type is not application/json.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The input does not match the schema, or the tool rejected it (the message says why).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit: 60 requests a minute per IP address.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/esim_activation_code_parse":{"post":{"operationId":"esim_activation_code_parse","summary":"eSIM activation code decoder","description":"Decodes an eSIM activation code (GSMA SGP.22 §4.1, the string an eSIM QR code carries, e.g. LPA:1$SMDP.EXAMPLE.COM$MATCHING-ID): format version, SM-DP+ address (checked as an FQDN), matching ID, SM-DP+ OID, confirmation-code-required flag, and the SGP.22 v3 fields (CI public key indicator, Delete Notification for Device Change). Warns about a bad format version, address, OID, flag or length. Activation codes identify a profile download: use test codes.\n\nSame logic as https://simprobe.com/tools/activation-code-decoder/. Request body limit: 256 KB.","tags":["sim"],"externalDocs":{"url":"https://simprobe.com/tools/activation-code-decoder/"},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"description":"The activation code, with or without the LPA: prefix.","type":"string","minLength":1,"maxLength":1024}},"required":["code"],"additionalProperties":false,"examples":[{"code":"LPA:1$SMDP.GSMA.COM$04386-AGYFT-A74Y8-3F815$1.3.6.1.4.1.31746$1"}]},"example":{"code":"LPA:1$SMDP.GSMA.COM$04386-AGYFT-A74Y8-3F815$1.3.6.1.4.1.31746$1"}}}},"responses":{"200":{"description":"The tool's result.","content":{"application/json":{"schema":{"type":"object","required":["tool","result","summary"],"properties":{"tool":{"type":"string","const":"esim_activation_code_parse"},"result":{"type":"object","description":"The structured result.","additionalProperties":true},"summary":{"type":"string","description":"One or two sentences describing the result."}}}}}},"400":{"description":"The body is not valid JSON.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"The body is over the size limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"The Content-Type is not application/json.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The input does not match the schema, or the tool rejected it (the message says why).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit: 60 requests a minute per IP address.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/sim_apdu_decode":{"post":{"operationId":"sim_apdu_decode","summary":"SIM APDU decoder","description":"Decodes a command APDU as a SIM, USIM or eUICC sees it (ISO/IEC 7816-4, ETSI TS 102 221 Tables 10.3–10.5, 3GPP TS 51.011 for CLA A0, GlobalPlatform and GSMA SGP.22 for the proprietary class): the APDU case (1–4, short or extended length), the class byte (logical channel, secure messaging, chaining), the instruction name, P1/P2 meaning (SELECT modes, READ/UPDATE BINARY offset or SFI, READ RECORD modes, PIN references), Lc, data and Le; for a SELECT, the file of the UICC reference it reaches. Optionally decodes the status word (SW1 SW2, read in the command's context, e.g. 63CX) and a SELECT response's FCP template (TS 102 221 §11.1.1.3: file descriptor, FID, life cycle, security attributes, size, SFI, PIN status). Give at least one of command, status_word and response.\n\nSame logic as https://simprobe.com/tools/apdu-decoder/. Request body limit: 256 KB.","tags":["sim"],"externalDocs":{"url":"https://simprobe.com/tools/apdu-decoder/"},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"command":{"description":"The command APDU as hex, e.g. 00A40004023F00.","type":"string","maxLength":1024},"status_word":{"description":"The status word SW1 SW2 as 4 hex digits, e.g. 9000 or 6A82. Decoded on its own when no command is given.","type":"string","maxLength":16},"response":{"description":"Response data as hex; FCP templates (starting with tag 62, from SELECT with P2 = 04) are decoded.","type":"string","maxLength":1024}},"additionalProperties":false,"examples":[{"command":"00A40004023F00","status_word":"9000"},{"command":"00A40004026F07","response":"62178202412183026F078A01058B036F0604800200098801389000"},{"status_word":"6982"}]},"example":{"command":"00A40004023F00","status_word":"9000"}}}},"responses":{"200":{"description":"The tool's result.","content":{"application/json":{"schema":{"type":"object","required":["tool","result","summary"],"properties":{"tool":{"type":"string","const":"sim_apdu_decode"},"result":{"type":"object","description":"The structured result.","additionalProperties":true},"summary":{"type":"string","description":"One or two sentences describing the result."}}}}}},"400":{"description":"The body is not valid JSON.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"The body is over the size limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"The Content-Type is not application/json.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The input does not match the schema, or the tool rejected it (the message says why).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit: 60 requests a minute per IP address.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/sim_apdu_build":{"post":{"operationId":"sim_apdu_build","summary":"SIM APDU builder","description":"Assembles a short-length command APDU (ISO/IEC 7816-4 §5.1, ETSI TS 102 221 §10.1) from its parts: CLA, INS, P1, P2, optional data (Lc is computed) and optional Le (00 = maximum), and returns the hex with the APDU case (1–4). At most 255 data bytes: extended length is not built because TS 102 221 does not define it for the UICC. Decode the result with sim_apdu_decode.\n\nSame logic as https://simprobe.com/tools/apdu-decoder/. Request body limit: 256 KB.","tags":["sim"],"externalDocs":{"url":"https://simprobe.com/tools/apdu-decoder/"},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"cla":{"description":"CLA, one byte of hex (00–FF).","type":"string","pattern":"^\\s*(0x)?[0-9A-Fa-f]{1,2}\\s*$"},"ins":{"description":"INS, one byte of hex (00–FF).","type":"string","pattern":"^\\s*(0x)?[0-9A-Fa-f]{1,2}\\s*$"},"p1":{"description":"P1, one byte of hex (00–FF).","type":"string","pattern":"^\\s*(0x)?[0-9A-Fa-f]{1,2}\\s*$"},"p2":{"description":"P2, one byte of hex (00–FF).","type":"string","pattern":"^\\s*(0x)?[0-9A-Fa-f]{1,2}\\s*$"},"data":{"description":"Command data as hex (Lc is computed from it), at most 255 bytes.","type":"string","maxLength":1024},"le":{"description":"Le, one byte of hex; 00 asks for the maximum. Omit for no Le.","type":"string","maxLength":8}},"required":["cla","ins","p1","p2"],"additionalProperties":false,"examples":[{"cla":"00","ins":"A4","p1":"04","p2":"04","data":"A0 00 00 00 87 10 02","le":"00"}]},"example":{"cla":"00","ins":"A4","p1":"04","p2":"04","data":"A0 00 00 00 87 10 02","le":"00"}}}},"responses":{"200":{"description":"The tool's result.","content":{"application/json":{"schema":{"type":"object","required":["tool","result","summary"],"properties":{"tool":{"type":"string","const":"sim_apdu_build"},"result":{"type":"object","description":"The structured result.","additionalProperties":true},"summary":{"type":"string","description":"One or two sentences describing the result."}}}}}},"400":{"description":"The body is not valid JSON.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"The body is over the size limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"The Content-Type is not application/json.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The input does not match the schema, or the tool rejected it (the message says why).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit: 60 requests a minute per IP address.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/sim_file_lookup":{"post":{"operationId":"sim_file_lookup","summary":"SIM file system lookup","description":"Looks up files in the UICC / USIM / classic SIM file system reference (ETSI TS 102 221, 3GPP TS 31.102, TS 31.103, TS 51.011; 21 files from the MF down): by file ID (e.g. 6F07), by name (e.g. EF_IMSI) or by a word of the description. For each match: FID (or AID for an ADF), structure, path, size, read and update access conditions (ALW, PIN, PIN2, ADM, NEVER), the spec clause, a description, the UICC SELECT commands that reach it (CLA 00, by AID and by path from the MF with P2 = 04) and, outside an ADF, the classic-SIM SELECTs (CLA A0), and whether sim_ef_decode can decode its content.\n\nSame logic as https://simprobe.com/tools/sim-file-system/. Request body limit: 256 KB.","tags":["sim"],"externalDocs":{"url":"https://simprobe.com/tools/sim-file-system/"},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"query":{"description":"A file ID (4 hex digits, e.g. 6F07), a file name (EF_IMSI, ADF_USIM, DF_TELECOM) or a word to search for (e.g. roaming).","type":"string","minLength":1,"maxLength":64}},"required":["query"],"additionalProperties":false,"examples":[{"query":"6F07"},{"query":"EF_SPN"}]},"example":{"query":"6F07"}}}},"responses":{"200":{"description":"The tool's result.","content":{"application/json":{"schema":{"type":"object","required":["tool","result","summary"],"properties":{"tool":{"type":"string","const":"sim_file_lookup"},"result":{"type":"object","description":"The structured result.","additionalProperties":true},"summary":{"type":"string","description":"One or two sentences describing the result."}}}}}},"400":{"description":"The body is not valid JSON.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"The body is over the size limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"The Content-Type is not application/json.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The input does not match the schema, or the tool rejected it (the message says why).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit: 60 requests a minute per IP address.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/sim_ef_decode":{"post":{"operationId":"sim_ef_decode","summary":"SIM EF content decoder","description":"Decodes the raw content (hex, as READ BINARY returns it) of one elementary file: EF_ICCID (2FE2, swapped-nibble BCD, ETSI TS 102 221 §13.2), EF_IMSI (6F07, length byte, parity and swapped-nibble BCD, 3GPP TS 31.102 §4.2.2), EF_SPN (6F46, display condition and the service provider name in GSM 7-bit or UCS2 per TS 102 221 Annex A, TS 31.102 §4.2.12), EF_AD (6FAD, UE operation mode and MNC length, §4.2.18), and the service tables EF_UST (6F38, available services, §4.2.8) and EF_EST (6F56, enabled services, §4.2.47).\n\nSame logic as https://simprobe.com/tools/sim-file-system/. Request body limit: 256 KB.","tags":["sim"],"externalDocs":{"url":"https://simprobe.com/tools/sim-file-system/"},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"file":{"description":"Which file the content comes from.","type":"string","enum":["EF_ICCID","EF_IMSI","EF_SPN","EF_AD","EF_UST","EF_EST"]},"data":{"description":"The file content as hex.","type":"string","maxLength":2048}},"required":["file","data"],"additionalProperties":false,"examples":[{"file":"EF_SPN","data":"0153494DFFFFFFFFFFFFFFFFFFFFFFFFFF"},{"file":"EF_IMSI","data":"083901511032547698"},{"file":"EF_AD","data":"00000003"}]},"example":{"file":"EF_SPN","data":"0153494DFFFFFFFFFFFFFFFFFFFFFFFFFF"}}}},"responses":{"200":{"description":"The tool's result.","content":{"application/json":{"schema":{"type":"object","required":["tool","result","summary"],"properties":{"tool":{"type":"string","const":"sim_ef_decode"},"result":{"type":"object","description":"The structured result.","additionalProperties":true},"summary":{"type":"string","description":"One or two sentences describing the result."}}}}}},"400":{"description":"The body is not valid JSON.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"The body is over the size limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"The Content-Type is not application/json.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The input does not match the schema, or the tool rejected it (the message says why).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit: 60 requests a minute per IP address.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/sim_ota_decode":{"post":{"operationId":"sim_ota_decode","summary":"SIM OTA packet inspector","description":"Explains SIM over-the-air (OTA) messages field by field: the ENVELOPE (SMS-PP DOWNLOAD) a handset sends to the card (3GPP TS 31.111 §7.1.1.2), SMS-DELIVER / SMS-SUBMIT TPDUs and user data headers (TS 23.040, TS 31.115 §4), secured command packets and response packets / PoRs (ETSI TS 102 225 §5: CPL, CHL, SPI, KIc, KID, TAR with known TS 101 220 TARs, counter, padding counter, RC/CC/DS, response status codes) and the RFM/RAM command strings they carry, compact or expanded (ETSI TS 102 226 §5). One item per line; a PoR on the line after its command is read with that command's SPI, KIc and KID, and parts of a concatenated SMS are joined. Structure only, as on the site: no keys are taken, ciphered data stays ciphered and a checksum is shown but not verified.\n\nSame logic as https://simprobe.com/tools/ota-packet-inspector/. Request body limit: 256 KB.","tags":["sim"],"externalDocs":{"url":"https://simprobe.com/tools/ota-packet-inspector/"},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"hex":{"description":"OTA data as hex, one item per line (\\n between items): an ENVELOPE APDU, an SMS TPDU, SMS user data (UDH first), a command packet (from the CPL), a PoR (from the RPL) or RFM/RAM data.","type":"string","minLength":1,"maxLength":20000},"kind":{"description":"What each line is; default auto (tries each in turn).","type":"string","enum":["auto","envelope","sms_tpdu","user_data","command_packet","response_packet","rfm_ram_script","rfm_ram_response"]}},"required":["hex"],"additionalProperties":false,"examples":[{"hex":"80C2000049D14782028381060591515500008B3A4405812143F57FF6622110010000002A02700000251111050005B000100000000001008CE112CB00A40004023F0000A40004022FE200B000000A"},{"hex":"00251111050005B000100000000001008CE112CB00A40004023F0000A40004022FE200B000000A\n027100001C0EB0001000000000010000EEF35FC603900098101430121181157002"}]},"example":{"hex":"80C2000049D14782028381060591515500008B3A4405812143F57FF6622110010000002A02700000251111050005B000100000000001008CE112CB00A40004023F0000A40004022FE200B000000A"}}}},"responses":{"200":{"description":"The tool's result.","content":{"application/json":{"schema":{"type":"object","required":["tool","result","summary"],"properties":{"tool":{"type":"string","const":"sim_ota_decode"},"result":{"type":"object","description":"The structured result.","additionalProperties":true},"summary":{"type":"string","description":"One or two sentences describing the result."}}}}}},"400":{"description":"The body is not valid JSON.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"The body is over the size limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"The Content-Type is not application/json.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The input does not match the schema, or the tool rejected it (the message says why).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit: 60 requests a minute per IP address.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/smpp_pdu_decode":{"post":{"operationId":"smpp_pdu_decode","summary":"SMPP PDU decoder","description":"Decodes one or more SMPP PDUs (SMPP v3.4 Issue 1.2, with the SMPP v5.0 commands, TLVs and command_status values): the 16-octet header, every mandatory body field and TLV with its offset, length and meaning, data_coding (3GPP TS 23.038 §4), esm_class and the User Data Header (3GPP TS 23.040 §9.2.3.24, concatenation and port addressing), the short_message text in GSM 7-bit (packed or unpacked), Latin-1 or UCS-2, and delivery receipts (v3.4 Appendix B). Several PDUs in a row are framed on command_length; segments of a concatenated message are reassembled. Accepts hex (spaces, 0x prefixes and line breaks allowed), a Wireshark or tcpdump hex dump of a whole TCP frame (the link, IP and TCP headers are skipped), or base64. Problems are reported per field instead of failing.\n\nSame logic as https://telcobench.com/tools/smpp-pdu-decoder/. Request body limit: 256 KB.","tags":["telecom"],"externalDocs":{"url":"https://telcobench.com/tools/smpp-pdu-decoder/"},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"input":{"description":"The PDU bytes: hex, a Wireshark/tcpdump hex dump of the frame, or base64. Several PDUs may follow each other.","type":"string","minLength":1,"maxLength":200000},"charset":{"description":"How to read short_message: 'auto' follows data_coding; the other values force a character set (for SMSCs that ignore data_coding).","default":"auto","type":"string","enum":["auto","GSM 7-bit","GSM 7-bit (packed)","IA5/ASCII","Latin-1","ISO-8859-5","ISO-8859-8","UCS-2","hex"]}},"required":["input"],"additionalProperties":false,"examples":[{"input":"00 00 00 32 00 00 00 04 00 00 00 00 00 00 00 01 00 01 01 34 30 34 30 34 00 01 01 35 35 35 31 32 33 34 00 00 00 00 00 00 01 00 00 00 05 48 65 6C 6C 6F"},{"input":"00 00 00 10 00 00 00 15 00 00 00 00 00 00 00 09 00 00 00 10 80 00 00 15 00 00 00 00 00 00 00 09","charset":"auto"}]},"example":{"input":"00 00 00 32 00 00 00 04 00 00 00 00 00 00 00 01 00 01 01 34 30 34 30 34 00 01 01 35 35 35 31 32 33 34 00 00 00 00 00 00 01 00 00 00 05 48 65 6C 6C 6F"}}}},"responses":{"200":{"description":"The tool's result.","content":{"application/json":{"schema":{"type":"object","required":["tool","result","summary"],"properties":{"tool":{"type":"string","const":"smpp_pdu_decode"},"result":{"type":"object","description":"The structured result.","additionalProperties":true},"summary":{"type":"string","description":"One or two sentences describing the result."}}}}}},"400":{"description":"The body is not valid JSON.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"The body is over the size limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"The Content-Type is not application/json.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The input does not match the schema, or the tool rejected it (the message says why).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit: 60 requests a minute per IP address.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/smpp_status_lookup":{"post":{"operationId":"smpp_status_lookup","summary":"SMPP command_status lookup","description":"Looks up one SMPP command_status value, given as hex (0x58), decimal (88) or by name (ESME_RTHROTTLED): its ESME_ name and meaning from SMPP v3.4 Issue 1.2 §5.1.3 (Table 5-2) and SMPP v5.0 §4.7.6, which versions define it, and, for common errors, IDNTEQ's note on the usual cause and fix. Values in the reserved and vendor-specific ranges are reported as such. One code per call.\n\nSame logic as https://telcobench.com/reference/smpp-error-codes/. Request body limit: 256 KB.","tags":["telecom"],"externalDocs":{"url":"https://telcobench.com/reference/smpp-error-codes/"},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"description":"The command_status: hex (0x00000058 or 0x58), decimal (88) or the name (ESME_RTHROTTLED).","type":"string","minLength":1,"maxLength":40}},"required":["status"],"additionalProperties":false,"examples":[{"status":"0x58"},{"status":"ESME_RINVDSTADR"}]},"example":{"status":"0x58"}}}},"responses":{"200":{"description":"The tool's result.","content":{"application/json":{"schema":{"type":"object","required":["tool","result","summary"],"properties":{"tool":{"type":"string","const":"smpp_status_lookup"},"result":{"type":"object","description":"The structured result.","additionalProperties":true},"summary":{"type":"string","description":"One or two sentences describing the result."}}}}}},"400":{"description":"The body is not valid JSON.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"The body is over the size limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"The Content-Type is not application/json.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The input does not match the schema, or the tool rejected it (the message says why).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit: 60 requests a minute per IP address.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/sms_segments_count":{"post":{"operationId":"sms_segments_count","summary":"SMS segment calculator","description":"Works out how a text is sent as SMS: the encoding (GSM 7-bit default alphabet with its extension table, 3GPP TS 23.038 §6.2.1, or UCS-2 when any character is outside it), the cost in septets or UTF-16 units, the number of parts and where each part ends (160/153 septets, 70/67 units; 152/66 with the 16-bit concatenation reference of TS 23.040 §9.2.3.24.8), the characters that force UCS-2 and the extension characters that cost two septets, and the SMPP data_coding value. A part never splits an escape sequence or a surrogate pair. When typographic look-alikes (smart quotes, dashes, ellipsis) are the only reason for UCS-2, the result also counts the text with them replaced.\n\nSame logic as https://telcobench.com/tools/sms-segment-calculator/. Request body limit: 256 KB.","tags":["telecom"],"externalDocs":{"url":"https://telcobench.com/tools/sms-segment-calculator/"},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"description":"The message text.","type":"string","maxLength":20000},"ref16":{"description":"Use the 16-bit concatenation reference (7-octet UDH) instead of the usual 8-bit one (6 octets).","default":false,"type":"boolean"},"encoding":{"description":"'auto' picks GSM 7-bit when every character allows it; or force one encoding.","default":"auto","type":"string","enum":["auto","GSM-7","UCS-2"]}},"required":["text"],"additionalProperties":false,"examples":[{"text":"Your code is 482913. It expires in 10 minutes. Do not share it with anyone."},{"text":"We’re open “as usual” – call us…"}]},"example":{"text":"Your code is 482913. It expires in 10 minutes. Do not share it with anyone."}}}},"responses":{"200":{"description":"The tool's result.","content":{"application/json":{"schema":{"type":"object","required":["tool","result","summary"],"properties":{"tool":{"type":"string","const":"sms_segments_count"},"result":{"type":"object","description":"The structured result.","additionalProperties":true},"summary":{"type":"string","description":"One or two sentences describing the result."}}}}}},"400":{"description":"The body is not valid JSON.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"The body is over the size limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"The Content-Type is not application/json.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The input does not match the schema, or the tool rejected it (the message says why).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit: 60 requests a minute per IP address.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/sip_message_parse":{"post":{"operationId":"sip_message_parse","summary":"SIP message parser and linter","description":"Parses one SIP request or response (RFC 3261 §7, compact header forms of §7.3.3 expanded) into its start line, headers and Via stack, parses an SDP body (RFC 8866, RFC 3264), and lints it: mandatory headers (§8.1.1), Via branch magic cookie (§8.1.1.7), CSeq and method, Content-Length against the body counted with CRLF line breaks (§20.14), Max-Forwards, private addresses in Contact or SDP, Warning codes (§20.43). For a response it adds the IANA-registered meaning of the status code with its RFC section and, for common failures, IDNTEQ's notes on usual causes. Log prefixes and timestamps in front of each line are removed. A paste with several messages is split; `index` picks one (use sip_trace_ladder for the whole flow).\n\nSame logic as https://telcobench.com/tools/sip-message-parser/. Request body limit: 256 KB.","tags":["telecom"],"externalDocs":{"url":"https://telcobench.com/tools/sip-message-parser/"},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"message":{"description":"The SIP message text (LF or CRLF line breaks), or a trace holding several messages.","type":"string","minLength":1,"maxLength":200000},"index":{"description":"When the text holds several messages: which one to parse (1-based).","default":1,"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["message"],"additionalProperties":false,"examples":[{"message":"INVITE sip:bob@biloxi.example.com SIP/2.0\nVia: SIP/2.0/UDP 192.168.1.10:5060;branch=z9hG4bK776asdhds\nMax-Forwards: 70\nFrom: Alice <sip:alice@atlanta.example.com>;tag=1928301774\nTo: Bob <sip:bob@biloxi.example.com>\nCall-ID: a84b4c76e66710@pc33.atlanta.example.com\nCSeq: 314159 INVITE\nContact: <sip:alice@192.168.1.10>\nContent-Type: application/sdp\nContent-Length: 213\n\nv=0\no=alice 2890844526 2890844526 IN IP4 192.168.1.10\ns=-\nc=IN IP4 192.168.1.10\nt=0 0\nm=audio 49170 RTP/AVP 0 8 101\na=rtpmap:0 PCMU/8000\na=rtpmap:8 PCMA/8000\na=rtpmap:101 telephone-event/8000\na=sendrecv\n"},{"message":"SIP/2.0 488 Not Acceptable Here\nVia: SIP/2.0/UDP 10.0.0.5:5060;branch=z9hG4bKnashds\nFrom: Alice <sip:alice@atlanta.example.com>;tag=1928301774\nTo: Bob <sip:bob@biloxi.example.com>;tag=a6c85cf\nCall-ID: a84b4c76e66710@pc33.atlanta.example.com\nCSeq: 314159 INVITE\nContent-Length: 0"}]},"example":{"message":"INVITE sip:bob@biloxi.example.com SIP/2.0\nVia: SIP/2.0/UDP 192.168.1.10:5060;branch=z9hG4bK776asdhds\nMax-Forwards: 70\nFrom: Alice <sip:alice@atlanta.example.com>;tag=1928301774\nTo: Bob <sip:bob@biloxi.example.com>\nCall-ID: a84b4c76e66710@pc33.atlanta.example.com\nCSeq: 314159 INVITE\nContact: <sip:alice@192.168.1.10>\nContent-Type: application/sdp\nContent-Length: 213\n\nv=0\no=alice 2890844526 2890844526 IN IP4 192.168.1.10\ns=-\nc=IN IP4 192.168.1.10\nt=0 0\nm=audio 49170 RTP/AVP 0 8 101\na=rtpmap:0 PCMU/8000\na=rtpmap:8 PCMA/8000\na=rtpmap:101 telephone-event/8000\na=sendrecv\n"}}}},"responses":{"200":{"description":"The tool's result.","content":{"application/json":{"schema":{"type":"object","required":["tool","result","summary"],"properties":{"tool":{"type":"string","const":"sip_message_parse"},"result":{"type":"object","description":"The structured result.","additionalProperties":true},"summary":{"type":"string","description":"One or two sentences describing the result."}}}}}},"400":{"description":"The body is not valid JSON.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"The body is over the size limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"The Content-Type is not application/json.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The input does not match the schema, or the tool rejected it (the message says why).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit: 60 requests a minute per IP address.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/sip_trace_ladder":{"post":{"operationId":"sip_trace_ladder","summary":"SIP call flow ladder","description":"Reads a pasted SIP trace (several messages from a log, sngrep or ngrep text output; address lines such as 'U 2026/12/02 10:00:00.123 192.0.2.1:5060 -> 198.51.100.2:5060' give source, destination and time) and returns the messages in order with their Call-ID, From/To, CSeq and lint errors (RFC 3261), the calls grouped by Call-ID with the final response to the first request, the ladder (columns are the addresses when known, otherwise the top Via host and 'other side') and, per call, where the SDP offer and answer are and what differs between them (RFC 3264). Message splitting honours Content-Length for message/sipfrag and multipart bodies.\n\nSame logic as https://telcobench.com/tools/sip-message-parser/. Request body limit: 256 KB.","tags":["telecom"],"externalDocs":{"url":"https://telcobench.com/tools/sip-message-parser/"},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"trace":{"description":"The SIP messages as text: a call flow from a log, sngrep or ngrep.","type":"string","minLength":1,"maxLength":200000}},"required":["trace"],"additionalProperties":false,"examples":[{"trace":"INVITE sip:bob@biloxi.example.com SIP/2.0\nVia: SIP/2.0/UDP pc33.atlanta.example.com;branch=z9hG4bK776asdhds\nMax-Forwards: 70\nFrom: Alice <sip:alice@atlanta.example.com>;tag=1928301774\nTo: Bob <sip:bob@biloxi.example.com>\nCall-ID: a84b4c76e66710@pc33.atlanta.example.com\nCSeq: 314159 INVITE\nContact: <sip:alice@pc33.atlanta.example.com>\nContent-Type: application/sdp\nContent-Length: 213\n\nv=0\no=alice 2890844526 2890844526 IN IP4 192.168.1.10\ns=-\nc=IN IP4 192.168.1.10\nt=0 0\nm=audio 49170 RTP/AVP 0 8 101\na=rtpmap:0 PCMU/8000\na=rtpmap:8 PCMA/8000\na=rtpmap:101 telephone-event/8000\na=sendrecv\n\nSIP/2.0 100 Trying\nVia: SIP/2.0/UDP pc33.atlanta.example.com;branch=z9hG4bK776asdhds;received=203.0.113.9\nFrom: Alice <sip:alice@atlanta.example.com>;tag=1928301774\nTo: Bob <sip:bob@biloxi.example.com>\nCall-ID: a84b4c76e66710@pc33.atlanta.example.com\nCSeq: 314159 INVITE\nContent-Length: 0\n\nSIP/2.0 180 Ringing\nVia: SIP/2.0/UDP pc33.atlanta.example.com;branch=z9hG4bK776asdhds;received=203.0.113.9\nFrom: Alice <sip:alice@atlanta.example.com>;tag=1928301774\nTo: Bob <sip:bob@biloxi.example.com>;tag=a6c85cf\nCall-ID: a84b4c76e66710@pc33.atlanta.example.com\nCSeq: 314159 INVITE\nContact: <sip:bob@198.51.100.20>\nContent-Length: 0\n\nSIP/2.0 200 OK\nVia: SIP/2.0/UDP pc33.atlanta.example.com;branch=z9hG4bK776asdhds;received=203.0.113.9\nFrom: Alice <sip:alice@atlanta.example.com>;tag=1928301774\nTo: Bob <sip:bob@biloxi.example.com>;tag=a6c85cf\nCall-ID: a84b4c76e66710@pc33.atlanta.example.com\nCSeq: 314159 INVITE\nContact: <sip:bob@198.51.100.20>\nContent-Type: application/sdp\nContent-Length: 188\n\nv=0\no=bob 2808844564 2808844564 IN IP4 198.51.100.20\ns=-\nc=IN IP4 198.51.100.20\nt=0 0\nm=audio 3456 RTP/AVP 8 101\na=rtpmap:8 PCMA/8000\na=rtpmap:101 telephone-event/8000\na=sendrecv\n"}]},"example":{"trace":"INVITE sip:bob@biloxi.example.com SIP/2.0\nVia: SIP/2.0/UDP pc33.atlanta.example.com;branch=z9hG4bK776asdhds\nMax-Forwards: 70\nFrom: Alice <sip:alice@atlanta.example.com>;tag=1928301774\nTo: Bob <sip:bob@biloxi.example.com>\nCall-ID: a84b4c76e66710@pc33.atlanta.example.com\nCSeq: 314159 INVITE\nContact: <sip:alice@pc33.atlanta.example.com>\nContent-Type: application/sdp\nContent-Length: 213\n\nv=0\no=alice 2890844526 2890844526 IN IP4 192.168.1.10\ns=-\nc=IN IP4 192.168.1.10\nt=0 0\nm=audio 49170 RTP/AVP 0 8 101\na=rtpmap:0 PCMU/8000\na=rtpmap:8 PCMA/8000\na=rtpmap:101 telephone-event/8000\na=sendrecv\n\nSIP/2.0 100 Trying\nVia: SIP/2.0/UDP pc33.atlanta.example.com;branch=z9hG4bK776asdhds;received=203.0.113.9\nFrom: Alice <sip:alice@atlanta.example.com>;tag=1928301774\nTo: Bob <sip:bob@biloxi.example.com>\nCall-ID: a84b4c76e66710@pc33.atlanta.example.com\nCSeq: 314159 INVITE\nContent-Length: 0\n\nSIP/2.0 180 Ringing\nVia: SIP/2.0/UDP pc33.atlanta.example.com;branch=z9hG4bK776asdhds;received=203.0.113.9\nFrom: Alice <sip:alice@atlanta.example.com>;tag=1928301774\nTo: Bob <sip:bob@biloxi.example.com>;tag=a6c85cf\nCall-ID: a84b4c76e66710@pc33.atlanta.example.com\nCSeq: 314159 INVITE\nContact: <sip:bob@198.51.100.20>\nContent-Length: 0\n\nSIP/2.0 200 OK\nVia: SIP/2.0/UDP pc33.atlanta.example.com;branch=z9hG4bK776asdhds;received=203.0.113.9\nFrom: Alice <sip:alice@atlanta.example.com>;tag=1928301774\nTo: Bob <sip:bob@biloxi.example.com>;tag=a6c85cf\nCall-ID: a84b4c76e66710@pc33.atlanta.example.com\nCSeq: 314159 INVITE\nContact: <sip:bob@198.51.100.20>\nContent-Type: application/sdp\nContent-Length: 188\n\nv=0\no=bob 2808844564 2808844564 IN IP4 198.51.100.20\ns=-\nc=IN IP4 198.51.100.20\nt=0 0\nm=audio 3456 RTP/AVP 8 101\na=rtpmap:8 PCMA/8000\na=rtpmap:101 telephone-event/8000\na=sendrecv\n"}}}},"responses":{"200":{"description":"The tool's result.","content":{"application/json":{"schema":{"type":"object","required":["tool","result","summary"],"properties":{"tool":{"type":"string","const":"sip_trace_ladder"},"result":{"type":"object","description":"The structured result.","additionalProperties":true},"summary":{"type":"string","description":"One or two sentences describing the result."}}}}}},"400":{"description":"The body is not valid JSON.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"The body is over the size limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"The Content-Type is not application/json.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The input does not match the schema, or the tool rejected it (the message says why).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit: 60 requests a minute per IP address.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/sip_pcap_ladder":{"post":{"operationId":"sip_pcap_ladder","summary":"SIP capture (pcap/pcapng) to call ladder","description":"Reads a packet capture in pcap (either byte order, micro- or nanosecond timestamps) or pcapng format (SHB, IDB, EPB, SPB, several interfaces) and finds SIP over UDP and TCP on any port by its start line (RFC 3261 §7). Link types: Ethernet with 802.1Q/802.1ad VLAN tags and MPLS, Linux cooked capture (SLL, SLL2), raw IPv4/IPv6 and BSD loopback; IPv4 and IPv6 fragments are reassembled, TCP streams are put back in sequence and split on Content-Length. Returns the capture statistics and notes, the messages with source, destination and time, the calls grouped by Call-ID, the ladder with time deltas and the offer/answer per call. Not read: SIP over TLS, WebSocket and SCTP. The capture is sent base64-encoded, at most 2 MB decoded; it is processed in memory and not stored. Set include_text to get the SIP messages as text (sngrep layout) for sip_message_parse or sip_trace_anonymize.\n\nSame logic as https://telcobench.com/tools/sip-message-parser/. Request body limit: 3072 KB.","tags":["telecom"],"externalDocs":{"url":"https://telcobench.com/tools/sip-message-parser/"},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"capture":{"description":"The capture file (.pcap or .pcapng). Base64, at most 2 MB decoded.","type":"string","maxLength":2796211,"pattern":"^[A-Za-z0-9+/=\\s_-]*$"},"include_text":{"description":"Also return the SIP messages as text, each after its address line (up to 1,000,000 characters).","default":false,"type":"boolean"}},"required":["capture"],"additionalProperties":false,"examples":[{"capture":"1MOyoQIABAAAAAAAAAAAAP//AAABAAAAIOwPawAAAAAmAQAAJgEAAABmd4iZqgARIjNEVQgARQABGAABAABAEQAAwAACCsYzZBQTxBPEAQQAAElOVklURSBzaXA6Ym9iQGJpbG94aS5leGFtcGxlLmNvbSBTSVAvMi4wDQpWaWE6IFNJUC8yLjAvVURQIDE5Mi4wLjIuMTA6NTA2MDticmFuY2g9ejloRzRiS2MxMQ0KTWF4LUZvcndhcmRzOiA3MA0KRnJvbTogIkFsaWNlIiA8c2lwOmFsaWNlQGF0bGFudGEuZXhhbXBsZS5jb20+O3RhZz1mYzENClRvOiA8c2lwOmJvYkBiaWxveGkuZXhhbXBsZS5jb20+DQpDYWxsLUlEOiBjMQ0KQ1NlcTogMSBJTlZJVEUNCkNvbnRlbnQtTGVuZ3RoOiAwDQoNCiDsD2vA1AEABgEAAAYBAAAAZneImaoAESIzRFUIAEUAAPgAAQAAQBEAAMYzZBTAAAIKE8QTxADkAABTSVAvMi4wIDE4MCBSaW5naW5nDQpWaWE6IFNJUC8yLjAvVURQIDE5Mi4wLjIuMTA6NTA2MDticmFuY2g9ejloRzRiS2MxMQ0KRnJvbTogIkFsaWNlIiA8c2lwOmFsaWNlQGF0bGFudGEuZXhhbXBsZS5jb20+O3RhZz1mYzENClRvOiA8c2lwOmJvYkBiaWxveGkuZXhhbXBsZS5jb20+O3RhZz10YzENCkNhbGwtSUQ6IGMxDQpDU2VxOiAxIElOVklURQ0KQ29udGVudC1MZW5ndGg6IDANCg0KIuwPayChBwAIAQAACAEAAABmd4iZqgARIjNEVQgARQAA+gABAABAEQAAxjNkFMAAAgoTxBPEAOYAAFNJUC8yLjAgNDg2IEJ1c3kgSGVyZQ0KVmlhOiBTSVAvMi4wL1VEUCAxOTIuMC4yLjEwOjUwNjA7YnJhbmNoPXo5aEc0YktjMTENCkZyb206ICJBbGljZSIgPHNpcDphbGljZUBhdGxhbnRhLmV4YW1wbGUuY29tPjt0YWc9ZmMxDQpUbzogPHNpcDpib2JAYmlsb3hpLmV4YW1wbGUuY29tPjt0YWc9dGMxDQpDYWxsLUlEOiBjMQ0KQ1NlcTogMSBJTlZJVEUNCkNvbnRlbnQtTGVuZ3RoOiAwDQoNCg=="}]},"example":{"capture":"1MOyoQIABAAAAAAAAAAAAP//AAABAAAAIOwPawAAAAAmAQAAJgEAAABmd4iZqgARIjNEVQgARQABGAABAABAEQAAwAACCsYzZBQTxBPEAQQAAElOVklURSBzaXA6Ym9iQGJpbG94aS5leGFtcGxlLmNvbSBTSVAvMi4wDQpWaWE6IFNJUC8yLjAvVURQIDE5Mi4wLjIuMTA6NTA2MDticmFuY2g9ejloRzRiS2MxMQ0KTWF4LUZvcndhcmRzOiA3MA0KRnJvbTogIkFsaWNlIiA8c2lwOmFsaWNlQGF0bGFudGEuZXhhbXBsZS5jb20+O3RhZz1mYzENClRvOiA8c2lwOmJvYkBiaWxveGkuZXhhbXBsZS5jb20+DQpDYWxsLUlEOiBjMQ0KQ1NlcTogMSBJTlZJVEUNCkNvbnRlbnQtTGVuZ3RoOiAwDQoNCiDsD2vA1AEABgEAAAYBAAAAZneImaoAESIzRFUIAEUAAPgAAQAAQBEAAMYzZBTAAAIKE8QTxADkAABTSVAvMi4wIDE4MCBSaW5naW5nDQpWaWE6IFNJUC8yLjAvVURQIDE5Mi4wLjIuMTA6NTA2MDticmFuY2g9ejloRzRiS2MxMQ0KRnJvbTogIkFsaWNlIiA8c2lwOmFsaWNlQGF0bGFudGEuZXhhbXBsZS5jb20+O3RhZz1mYzENClRvOiA8c2lwOmJvYkBiaWxveGkuZXhhbXBsZS5jb20+O3RhZz10YzENCkNhbGwtSUQ6IGMxDQpDU2VxOiAxIElOVklURQ0KQ29udGVudC1MZW5ndGg6IDANCg0KIuwPayChBwAIAQAACAEAAABmd4iZqgARIjNEVQgARQAA+gABAABAEQAAxjNkFMAAAgoTxBPEAOYAAFNJUC8yLjAgNDg2IEJ1c3kgSGVyZQ0KVmlhOiBTSVAvMi4wL1VEUCAxOTIuMC4yLjEwOjUwNjA7YnJhbmNoPXo5aEc0YktjMTENCkZyb206ICJBbGljZSIgPHNpcDphbGljZUBhdGxhbnRhLmV4YW1wbGUuY29tPjt0YWc9ZmMxDQpUbzogPHNpcDpib2JAYmlsb3hpLmV4YW1wbGUuY29tPjt0YWc9dGMxDQpDYWxsLUlEOiBjMQ0KQ1NlcTogMSBJTlZJVEUNCkNvbnRlbnQtTGVuZ3RoOiAwDQoNCg=="}}}},"responses":{"200":{"description":"The tool's result.","content":{"application/json":{"schema":{"type":"object","required":["tool","result","summary"],"properties":{"tool":{"type":"string","const":"sip_pcap_ladder"},"result":{"type":"object","description":"The structured result.","additionalProperties":true},"summary":{"type":"string","description":"One or two sentences describing the result."}}}}}},"400":{"description":"The body is not valid JSON.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"The body is over the size limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"The Content-Type is not application/json.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The input does not match the schema, or the tool rejected it (the message says why).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit: 60 requests a minute per IP address.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/sip_trace_anonymize":{"post":{"operationId":"sip_trace_anonymize","summary":"SIP trace anonymizer","description":"Rewrites a SIP trace (messages, log lines, sngrep or ngrep output) so it can be shared: IPv4 and IPv6 addresses become documentation addresses (RFC 5737, RFC 3849; private ones keep a separate range), telephone numbers, SIP user parts, display names and host names become placeholders, and Call-ID, tags, Via branches (keeping the z9hG4bK magic cookie), urn:uuid values and digest auth parameters (username, realm, nonce, cnonce, response, opaque) are replaced. The same original value always gets the same replacement, so the call flow still reads correctly. Loopback, unspecified and broadcast addresses are kept. Unlike the browser tool on telcobench.com, this anonymization runs on the server: the trace is sent to the API, processed in memory and not stored. To keep a trace on your machine, use the browser tool.\n\nSame logic as https://telcobench.com/tools/sip-trace-anonymizer/. Request body limit: 256 KB.","tags":["telecom"],"externalDocs":{"url":"https://telcobench.com/tools/sip-trace-anonymizer/"},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"trace":{"description":"The SIP trace to anonymize.","type":"string","minLength":1,"maxLength":200000}},"required":["trace"],"additionalProperties":false,"examples":[{"trace":"INVITE sip:bob@biloxi.example.com SIP/2.0\nVia: SIP/2.0/UDP pc33.atlanta.example.com;branch=z9hG4bK776asdhds\nMax-Forwards: 70\nFrom: Alice <sip:alice@atlanta.example.com>;tag=1928301774\nTo: Bob <sip:bob@biloxi.example.com>\nCall-ID: a84b4c76e66710@pc33.atlanta.example.com\nCSeq: 314159 INVITE\nContact: <sip:alice@pc33.atlanta.example.com>\nContent-Type: application/sdp\nContent-Length: 213\n\nv=0\no=alice 2890844526 2890844526 IN IP4 192.168.1.10\ns=-\nc=IN IP4 192.168.1.10\nt=0 0\nm=audio 49170 RTP/AVP 0 8 101\na=rtpmap:0 PCMU/8000\na=rtpmap:8 PCMA/8000\na=rtpmap:101 telephone-event/8000\na=sendrecv\n\nSIP/2.0 100 Trying\nVia: SIP/2.0/UDP pc33.atlanta.example.com;branch=z9hG4bK776asdhds;received=203.0.113.9\nFrom: Alice <sip:alice@atlanta.example.com>;tag=1928301774\nTo: Bob <sip:bob@biloxi.example.com>\nCall-ID: a84b4c76e66710@pc33.atlanta.example.com\nCSeq: 314159 INVITE\nContent-Length: 0\n\nSIP/2.0 180 Ringing\nVia: SIP/2.0/UDP pc33.atlanta.example.com;branch=z9hG4bK776asdhds;received=203.0.113.9\nFrom: Alice <sip:alice@atlanta.example.com>;tag=1928301774\nTo: Bob <sip:bob@biloxi.example.com>;tag=a6c85cf\nCall-ID: a84b4c76e66710@pc33.atlanta.example.com\nCSeq: 314159 INVITE\nContact: <sip:bob@198.51.100.20>\nContent-Length: 0\n\nSIP/2.0 200 OK\nVia: SIP/2.0/UDP pc33.atlanta.example.com;branch=z9hG4bK776asdhds;received=203.0.113.9\nFrom: Alice <sip:alice@atlanta.example.com>;tag=1928301774\nTo: Bob <sip:bob@biloxi.example.com>;tag=a6c85cf\nCall-ID: a84b4c76e66710@pc33.atlanta.example.com\nCSeq: 314159 INVITE\nContact: <sip:bob@198.51.100.20>\nContent-Type: application/sdp\nContent-Length: 188\n\nv=0\no=bob 2808844564 2808844564 IN IP4 198.51.100.20\ns=-\nc=IN IP4 198.51.100.20\nt=0 0\nm=audio 3456 RTP/AVP 8 101\na=rtpmap:8 PCMA/8000\na=rtpmap:101 telephone-event/8000\na=sendrecv\n"}]},"example":{"trace":"INVITE sip:bob@biloxi.example.com SIP/2.0\nVia: SIP/2.0/UDP pc33.atlanta.example.com;branch=z9hG4bK776asdhds\nMax-Forwards: 70\nFrom: Alice <sip:alice@atlanta.example.com>;tag=1928301774\nTo: Bob <sip:bob@biloxi.example.com>\nCall-ID: a84b4c76e66710@pc33.atlanta.example.com\nCSeq: 314159 INVITE\nContact: <sip:alice@pc33.atlanta.example.com>\nContent-Type: application/sdp\nContent-Length: 213\n\nv=0\no=alice 2890844526 2890844526 IN IP4 192.168.1.10\ns=-\nc=IN IP4 192.168.1.10\nt=0 0\nm=audio 49170 RTP/AVP 0 8 101\na=rtpmap:0 PCMU/8000\na=rtpmap:8 PCMA/8000\na=rtpmap:101 telephone-event/8000\na=sendrecv\n\nSIP/2.0 100 Trying\nVia: SIP/2.0/UDP pc33.atlanta.example.com;branch=z9hG4bK776asdhds;received=203.0.113.9\nFrom: Alice <sip:alice@atlanta.example.com>;tag=1928301774\nTo: Bob <sip:bob@biloxi.example.com>\nCall-ID: a84b4c76e66710@pc33.atlanta.example.com\nCSeq: 314159 INVITE\nContent-Length: 0\n\nSIP/2.0 180 Ringing\nVia: SIP/2.0/UDP pc33.atlanta.example.com;branch=z9hG4bK776asdhds;received=203.0.113.9\nFrom: Alice <sip:alice@atlanta.example.com>;tag=1928301774\nTo: Bob <sip:bob@biloxi.example.com>;tag=a6c85cf\nCall-ID: a84b4c76e66710@pc33.atlanta.example.com\nCSeq: 314159 INVITE\nContact: <sip:bob@198.51.100.20>\nContent-Length: 0\n\nSIP/2.0 200 OK\nVia: SIP/2.0/UDP pc33.atlanta.example.com;branch=z9hG4bK776asdhds;received=203.0.113.9\nFrom: Alice <sip:alice@atlanta.example.com>;tag=1928301774\nTo: Bob <sip:bob@biloxi.example.com>;tag=a6c85cf\nCall-ID: a84b4c76e66710@pc33.atlanta.example.com\nCSeq: 314159 INVITE\nContact: <sip:bob@198.51.100.20>\nContent-Type: application/sdp\nContent-Length: 188\n\nv=0\no=bob 2808844564 2808844564 IN IP4 198.51.100.20\ns=-\nc=IN IP4 198.51.100.20\nt=0 0\nm=audio 3456 RTP/AVP 8 101\na=rtpmap:8 PCMA/8000\na=rtpmap:101 telephone-event/8000\na=sendrecv\n"}}}},"responses":{"200":{"description":"The tool's result.","content":{"application/json":{"schema":{"type":"object","required":["tool","result","summary"],"properties":{"tool":{"type":"string","const":"sip_trace_anonymize"},"result":{"type":"object","description":"The structured result.","additionalProperties":true},"summary":{"type":"string","description":"One or two sentences describing the result."}}}}}},"400":{"description":"The body is not valid JSON.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"The body is over the size limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"The Content-Type is not application/json.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The input does not match the schema, or the tool rejected it (the message says why).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit: 60 requests a minute per IP address.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/sip_digest_check":{"post":{"operationId":"sip_digest_check","summary":"SIP digest authentication checker","description":"Recomputes a SIP digest authentication response (RFC 3261 §22.4 with RFC 2617 and RFC 7616; RFC 8760 algorithms MD5, MD5-sess, SHA-256, SHA-256-sess, SHA-512-256, SHA-512-256-sess; qop auth and auth-int; userhash) from the challenge (WWW-Authenticate or Proxy-Authenticate), the credentials (Authorization or Proxy-Authorization), the request method and Request-URI, and the password. Returns each step (HA1, HA2, H(body) for auth-int, response) with the hashed string, the password shown as a placeholder; whether the sent response matches; and findings such as a uri parameter that differs from the Request-URI, a realm, nonce or algorithm that does not match the challenge, or the variation that would have matched. Paste the 401/407 and the request answering it as whole messages, a call flow, or just the two header lines. The password is used for this computation only and is not returned or stored. Use test keys and test data only.\n\nSame logic as https://telcobench.com/tools/sip-digest-auth/. Request body limit: 256 KB.","tags":["telecom"],"externalDocs":{"url":"https://telcobench.com/tools/sip-digest-auth/"},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"description":"The 401/407 challenge and the request that answers it: whole SIP messages, a call flow, or just the two auth header lines.","type":"string","minLength":1,"maxLength":200000},"password":{"description":"The SIP password (a test password).","type":"string","maxLength":512},"method":{"description":"Request method, when the paste holds only the headers (e.g. REGISTER). Defaults to the method of the pasted request.","type":"string","maxLength":32},"uri":{"description":"Request-URI, when the paste holds only the headers. Defaults to the pasted request's Request-URI.","type":"string","maxLength":2048},"username":{"description":"The real user name, needed only when the credentials carry userhash=true.","type":"string","maxLength":256}},"required":["messages","password"],"additionalProperties":false,"examples":[{"messages":"SIP/2.0 401 Unauthorized\nVia: SIP/2.0/UDP 198.51.100.7:5060;branch=z9hG4bKnashds7;received=198.51.100.7\nFrom: <sip:alice@sip.example.com>;tag=a73kszlfl\nTo: <sip:alice@sip.example.com>;tag=1410948204\nCall-ID: 1j9FpLxk3uxtm8tn@198.51.100.7\nCSeq: 1 REGISTER\nWWW-Authenticate: Digest realm=\"sip.example.com\", nonce=\"b7c9036dbf357f7683f054aea940e5a3\", algorithm=MD5, qop=\"auth\"\nContent-Length: 0\n\nREGISTER sip:sip.example.com SIP/2.0\nVia: SIP/2.0/UDP 198.51.100.7:5060;branch=z9hG4bKnashds8\nMax-Forwards: 70\nFrom: <sip:alice@sip.example.com>;tag=a73kszlfl\nTo: <sip:alice@sip.example.com>\nCall-ID: 1j9FpLxk3uxtm8tn@198.51.100.7\nCSeq: 2 REGISTER\nContact: <sip:alice@198.51.100.7:5060>\nAuthorization: Digest username=\"alice\", realm=\"sip.example.com\", nonce=\"b7c9036dbf357f7683f054aea940e5a3\", uri=\"sip:sip.example.com\", response=\"94ab28fb287ce5aa52b322ed6200f564\", algorithm=MD5, cnonce=\"0a4f113b9c2e\", qop=auth, nc=00000001\nExpires: 3600\nContent-Length: 0\n","password":"alice-test-pw"}]},"example":{"messages":"SIP/2.0 401 Unauthorized\nVia: SIP/2.0/UDP 198.51.100.7:5060;branch=z9hG4bKnashds7;received=198.51.100.7\nFrom: <sip:alice@sip.example.com>;tag=a73kszlfl\nTo: <sip:alice@sip.example.com>;tag=1410948204\nCall-ID: 1j9FpLxk3uxtm8tn@198.51.100.7\nCSeq: 1 REGISTER\nWWW-Authenticate: Digest realm=\"sip.example.com\", nonce=\"b7c9036dbf357f7683f054aea940e5a3\", algorithm=MD5, qop=\"auth\"\nContent-Length: 0\n\nREGISTER sip:sip.example.com SIP/2.0\nVia: SIP/2.0/UDP 198.51.100.7:5060;branch=z9hG4bKnashds8\nMax-Forwards: 70\nFrom: <sip:alice@sip.example.com>;tag=a73kszlfl\nTo: <sip:alice@sip.example.com>\nCall-ID: 1j9FpLxk3uxtm8tn@198.51.100.7\nCSeq: 2 REGISTER\nContact: <sip:alice@198.51.100.7:5060>\nAuthorization: Digest username=\"alice\", realm=\"sip.example.com\", nonce=\"b7c9036dbf357f7683f054aea940e5a3\", uri=\"sip:sip.example.com\", response=\"94ab28fb287ce5aa52b322ed6200f564\", algorithm=MD5, cnonce=\"0a4f113b9c2e\", qop=auth, nc=00000001\nExpires: 3600\nContent-Length: 0\n","password":"alice-test-pw"}}}},"responses":{"200":{"description":"The tool's result.","content":{"application/json":{"schema":{"type":"object","required":["tool","result","summary"],"properties":{"tool":{"type":"string","const":"sip_digest_check"},"result":{"type":"object","description":"The structured result.","additionalProperties":true},"summary":{"type":"string","description":"One or two sentences describing the result."}}}}}},"400":{"description":"The body is not valid JSON.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"The body is over the size limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"The Content-Type is not application/json.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The input does not match the schema, or the tool rejected it (the message says why).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit: 60 requests a minute per IP address.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/sdp_offer_answer_check":{"post":{"operationId":"sdp_offer_answer_check","summary":"SDP offer/answer checker","description":"Checks an SDP answer against its offer under the offer/answer model (RFC 3264, SDP per RFC 8866, examples of RFC 4317): for each m-line, whether it was accepted or rejected (port 0), the codecs both sides list with their payload types on each side (renumbered dynamic types are fine), codecs left out or added by the answer, the direction each way and whether it is a valid answer to the offered one (§6.1), which codec each side will send, and problems such as a different m-line count or order, no common codec, a private or unspecified connection address, ICE or DTLS on one side only. Paste bare SDP, or whole SIP messages carrying SDP; with the answer left empty, a call flow in `offer` is paired as in the SIP parser.\n\nSame logic as https://telcobench.com/tools/sdp-offer-answer/. Request body limit: 256 KB.","tags":["telecom"],"externalDocs":{"url":"https://telcobench.com/tools/sdp-offer-answer/"},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"offer":{"description":"The SDP offer, a SIP message carrying it, or a whole call flow (then leave `answer` empty).","type":"string","minLength":1,"maxLength":100000},"answer":{"description":"The SDP answer or the SIP message carrying it. Empty: take offer and answer from the call flow in `offer`.","default":"","type":"string","maxLength":100000}},"required":["offer"],"additionalProperties":false,"examples":[{"offer":"v=0\no=alice 2890844526 2890844526 IN IP4 host.atlanta.example.com\ns=\nc=IN IP4 host.atlanta.example.com\nt=0 0\nm=audio 49170 RTP/AVP 0 8 97\na=rtpmap:0 PCMU/8000\na=rtpmap:8 PCMA/8000\na=rtpmap:97 iLBC/8000\nm=video 51372 RTP/AVP 31 32\na=rtpmap:31 H261/90000\na=rtpmap:32 MPV/90000\n","answer":"v=0\no=bob 2808844564 2808844564 IN IP4 host.biloxi.example.com\ns=\nc=IN IP4 host.biloxi.example.com\nt=0 0\nm=audio 49172 RTP/AVP 0 8\na=rtpmap:0 PCMU/8000\na=rtpmap:8 PCMA/8000\nm=video 0 RTP/AVP 31\na=rtpmap:31 H261/90000\n"},{"offer":"v=0\no=- 4711 1 IN IP4 198.51.100.10\ns=-\nc=IN IP4 198.51.100.10\nt=0 0\nm=audio 30000 RTP/AVP 18 101\na=rtpmap:18 G729/8000\na=fmtp:18 annexb=no\na=rtpmap:101 telephone-event/8000\na=fmtp:101 0-16\n","answer":"v=0\no=- 8812 1 IN IP4 203.0.113.50\ns=-\nc=IN IP4 203.0.113.50\nt=0 0\nm=audio 40000 RTP/AVP 8 101\na=rtpmap:8 PCMA/8000\na=rtpmap:101 telephone-event/8000\na=fmtp:101 0-16\n"}]},"example":{"offer":"v=0\no=alice 2890844526 2890844526 IN IP4 host.atlanta.example.com\ns=\nc=IN IP4 host.atlanta.example.com\nt=0 0\nm=audio 49170 RTP/AVP 0 8 97\na=rtpmap:0 PCMU/8000\na=rtpmap:8 PCMA/8000\na=rtpmap:97 iLBC/8000\nm=video 51372 RTP/AVP 31 32\na=rtpmap:31 H261/90000\na=rtpmap:32 MPV/90000\n","answer":"v=0\no=bob 2808844564 2808844564 IN IP4 host.biloxi.example.com\ns=\nc=IN IP4 host.biloxi.example.com\nt=0 0\nm=audio 49172 RTP/AVP 0 8\na=rtpmap:0 PCMU/8000\na=rtpmap:8 PCMA/8000\nm=video 0 RTP/AVP 31\na=rtpmap:31 H261/90000\n"}}}},"responses":{"200":{"description":"The tool's result.","content":{"application/json":{"schema":{"type":"object","required":["tool","result","summary"],"properties":{"tool":{"type":"string","const":"sdp_offer_answer_check"},"result":{"type":"object","description":"The structured result.","additionalProperties":true},"summary":{"type":"string","description":"One or two sentences describing the result."}}}}}},"400":{"description":"The body is not valid JSON.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"The body is over the size limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"The Content-Type is not application/json.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The input does not match the schema, or the tool rejected it (the message says why).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit: 60 requests a minute per IP address.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/sip_response_lookup":{"post":{"operationId":"sip_response_lookup","summary":"SIP response code lookup","description":"Looks up one SIP status code (100-699) in the IANA 'Session Initiation Protocol (SIP) Parameters' Response Codes registry: the registered reason phrase, the defining RFC and section (RFC 3261 §21 and later RFCs), a one-sentence meaning and, for common failures (401, 403, 404, 407, 408, 480, 486, 488, 491, 500, 503, 603), IDNTEQ's notes on usual causes. An unregistered code in range gets its class meaning. With type 'warning' it looks up a Warning header warn-code (RFC 3261 §20.43 and the IANA warn-codes registry). One code per call.\n\nSame logic as https://telcobench.com/reference/sip-response-codes/. Request body limit: 256 KB.","tags":["telecom"],"externalDocs":{"url":"https://telcobench.com/reference/sip-response-codes/"},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"description":"The status code, e.g. 486, or the warn-code, e.g. 305.","type":"integer","minimum":100,"maximum":699},"type":{"description":"'response' for a status code, 'warning' for a Warning header warn-code.","default":"response","type":"string","enum":["response","warning"]}},"required":["code"],"additionalProperties":false,"examples":[{"code":488},{"code":305,"type":"warning"}]},"example":{"code":488}}}},"responses":{"200":{"description":"The tool's result.","content":{"application/json":{"schema":{"type":"object","required":["tool","result","summary"],"properties":{"tool":{"type":"string","const":"sip_response_lookup"},"result":{"type":"object","description":"The structured result.","additionalProperties":true},"summary":{"type":"string","description":"One or two sentences describing the result."}}}}}},"400":{"description":"The body is not valid JSON.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"The body is over the size limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"The Content-Type is not application/json.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The input does not match the schema, or the tool rejected it (the message says why).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit: 60 requests a minute per IP address.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/e164_number_parse":{"post":{"operationId":"e164_number_parse","summary":"E.164 number formatter","description":"Validates a telephone number and formats it as E.164 (+CC followed by the national significant number, at most 15 digits, ITU-T E.164 §6). Accepts international form (+, 00 or 011), a tel: URI (RFC 3966, with ;ext=), and national form when `country` gives the ISO 3166 code of a supported national plan (the trunk prefix is removed). The country code is the longest matching prefix in the ITU-T E.164 list of assigned country codes (shared codes such as +1 and global services such as +800 are named). '(0)' after the country code is dropped except for Italy, San Marino and Vatican City. Valid means well-formed with an assigned country code; it does not mean the number is in service. After number portability, a number's prefix does not identify its operator.\n\nSame logic as https://telcobench.com/tools/e164-number-tools/. Request body limit: 256 KB.","tags":["telecom"],"externalDocs":{"url":"https://telcobench.com/tools/e164-number-tools/"},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"number":{"description":"The number: +55 11 98888-7777, 0044 20 7946 0000, tel:+1-201-555-0123;ext=7, or national form with `country`.","type":"string","minLength":1,"maxLength":100},"country":{"description":"ISO 3166 alpha-2 code of the country a national-format number belongs to (e.g. GB, BR, US). Ignored for international form.","type":"string","enum":["AL","AS","AI","AG","AR","AU","AT","BS","BH","BD","BB","BE","BM","BA","BR","VG","BG","CA","KY","CN","HR","CY","CZ","DK","DM","DO","EG","EE","FI","FR","DE","GH","GR","GD","GU","HK","HU","IS","IN","ID","IR","IE","IL","IT","JM","JP","JO","KZ","KE","KW","LV","LU","MO","MY","MT","MX","MS","MA","NL","NZ","NG","MK","MP","NO","PK","PE","PH","PL","PT","PR","QA","RO","RU","KN","LC","VC","SM","SA","RS","SG","SX","SK","SI","ZA","KR","ES","LK","SE","CH","TW","TH","TT","TR","TC","UA","AE","GB","US","VI","VN"]}},"required":["number"],"additionalProperties":false,"examples":[{"number":"+55 11 98888-7777"},{"number":"020 7946 0000","country":"GB"}]},"example":{"number":"+55 11 98888-7777"}}}},"responses":{"200":{"description":"The tool's result.","content":{"application/json":{"schema":{"type":"object","required":["tool","result","summary"],"properties":{"tool":{"type":"string","const":"e164_number_parse"},"result":{"type":"object","description":"The structured result.","additionalProperties":true},"summary":{"type":"string","description":"One or two sentences describing the result."}}}}}},"400":{"description":"The body is not valid JSON.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"The body is over the size limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"The Content-Type is not application/json.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The input does not match the schema, or the tool rejected it (the message says why).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit: 60 requests a minute per IP address.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/e164_imsi_global_title":{"post":{"operationId":"e164_imsi_global_title","summary":"IMSI to E.214 global title","description":"Splits an IMSI (ITU-T E.212, 3GPP TS 23.003 §2.2) into MCC, MNC (2 or 3 digits) and MSIN, and shows how it maps to an E.214 Mobile Global Title: the MCC is replaced by the E.164 country code and the MNC by the operator's network code (NC), followed by the MSIN. The NC is operator data that cannot be derived from the MNC, so the result is the structure with 'NC' in place, never a made-up number. The MNC length is certain only when the MCC+MNC is in the bundled sample set; otherwise both readings are returned. A matched network is returned with its source; there is no list output. For the network name from the full E.212 list and EF_IMSI decoding, use sim_imsi_parse.\n\nSame logic as https://telcobench.com/tools/e164-number-tools/. Request body limit: 256 KB.","tags":["telecom"],"externalDocs":{"url":"https://telcobench.com/tools/e164-number-tools/"},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"imsi":{"description":"The IMSI, up to 15 digits, e.g. 724069876543210.","type":"string","minLength":1,"maxLength":40}},"required":["imsi"],"additionalProperties":false,"examples":[{"imsi":"724069876543210"}]},"example":{"imsi":"724069876543210"}}}},"responses":{"200":{"description":"The tool's result.","content":{"application/json":{"schema":{"type":"object","required":["tool","result","summary"],"properties":{"tool":{"type":"string","const":"e164_imsi_global_title"},"result":{"type":"object","description":"The structured result.","additionalProperties":true},"summary":{"type":"string","description":"One or two sentences describing the result."}}}}}},"400":{"description":"The body is not valid JSON.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"The body is over the size limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"The Content-Type is not application/json.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The input does not match the schema, or the tool rejected it (the message says why).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit: 60 requests a minute per IP address.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/ussd_string_code":{"post":{"operationId":"ussd_string_code","summary":"USSD string coding","description":"Codes a USSD string as carried in the MAP ussd-String parameter (3GPP TS 29.002): GSM 7-bit default alphabet packed 8 characters to 7 octets (3GPP TS 23.038 §6.1.2.3) with the USSD <CR> padding rule of §6.1.2.3.1, and DCS 0x0F; or UCS-2 with DCS 0x48 when a character is outside the GSM 7-bit alphabet (DCS per TS 23.038 §5). Reports septets, padding, octets and whether the string fits the 160-octet limit. Decode takes the ussd-String hex and the DCS (0x0F or 0x48) and returns the text, dropping the padding <CR>.\n\nSame logic as https://telcobench.com/tools/ussd-simulator/. Request body limit: 256 KB.","tags":["telecom"],"externalDocs":{"url":"https://telcobench.com/tools/ussd-simulator/"},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"direction":{"description":"'encode' text to a ussd-String, or 'decode' a ussd-String to text.","type":"string","enum":["encode","decode"]},"text":{"description":"For encode: the USSD text, e.g. '*100#' or a menu.","type":"string","maxLength":1000},"ussd_string":{"description":"For decode: the ussd-String octets as hex.","type":"string","maxLength":4000},"dcs":{"description":"For decode: the USSD data coding scheme, 0x0F (GSM 7-bit) or 0x48 (UCS-2).","default":"0x0F","type":"string","enum":["0x0F","0x48"]}},"required":["direction"],"additionalProperties":false,"examples":[{"direction":"encode","text":"*100#"},{"direction":"decode","ussd_string":"AA180C3602","dcs":"0x0F"}]},"example":{"direction":"encode","text":"*100#"}}}},"responses":{"200":{"description":"The tool's result.","content":{"application/json":{"schema":{"type":"object","required":["tool","result","summary"],"properties":{"tool":{"type":"string","const":"ussd_string_code"},"result":{"type":"object","description":"The structured result.","additionalProperties":true},"summary":{"type":"string","description":"One or two sentences describing the result."}}}}}},"400":{"description":"The body is not valid JSON.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"The body is over the size limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"The Content-Type is not application/json.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The input does not match the schema, or the tool rejected it (the message says why).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit: 60 requests a minute per IP address.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"schemas":{"emv_tlv_build____schema0":{"type":"object","properties":{"tag":{"description":"Tag, hex, e.g. 9F02 or 70.","type":"string","pattern":"^[0-9A-Fa-f]{2,6}$"},"value":{"description":"Value as hex, for a primitive tag.","type":"string","maxLength":65536},"children":{"description":"Child objects, for a constructed tag (bit 6 of the first tag byte set, e.g. 6F, 70, 77, A5, E0).","maxItems":500,"type":"array","items":{"$ref":"#/components/schemas/emv_tlv_build____schema0"}}},"required":["tag"],"additionalProperties":false},"Error":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Stable error code, e.g. invalid_input, rate_limited."},"message":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}}}}}}}}}}}