TR Try tools

One key.
Every endpoint.

A growing catalogue of small, precise APIs behind a single key and a single response envelope. Integrate once — every new capability is one more path, not another vendor to negotiate with.

In the catalogue today: Turkish severance, notice and leave against the dated 2026 ceiling and minimum-wage tables; VAT and withholding; dated EU VAT rates and the Union OSS threshold; checksums (BIC, VIN, TIN, ISIN, LEI, container) plus GLEIF LEI lookup (unknown when the register is silent); sanctions screening across six official lists; IBAN, email, phone, EU VAT numbers and Turkish tax/ID numbers; address and e-invoice parsing; business-day maths; and dated archives — FX, Turkish fuel prices back to 2009, LLM prices and lifecycle, and a daily index of MCP tool surfaces.

  • No account needed to try any endpoint on this page.
  • Deterministic endpoints answer from cache in single-digit milliseconds.
  • Every response carries a receipt: credits charged, cache status, duration.

Free try on this page → when you need a key, Proceed to pay · API access.

POST/v1/tr/labor
Request
{
  "startDate": "2025-08-01",
  "endDate": "2026-08-01",
  "monthlyGross": 33030
}
no request sent yet
Response
Press Run to try free — no key needed.
68endpoints
data points banked
time series
median response

Why this exists

Built for hostile input

A Turkish address arrives as "Cd." or "Cad." or "Caddesi", with the flat number glued to the building number. Generic parsers drop half of it silently. This one tells you what it could not place.

Every number carries its provenance

Each archived point stores the source URL and a content hash of the page it came from, and the archive is committed to a Merkle root anchored in Bitcoin. Every commitment — with its cutoff, leaf count and anchors — is published at /proof, so you can check for yourself how current the latest one is. The bulletins themselves are public and anyone can read them; what this adds is that a number you quote can be shown to be the number we held on that date, and that it has not been edited since.

You only pay for work

Repeated inputs come from cache and cost zero credits. If a response ever fails its own schema, the call is refunded automatically.

Endpointsexpand any row to see the parameters and call it live

Validation18

/v1/finance/bic SWIFT/BIC Validation deterministic 1 credit

Checks a SWIFT/BIC against ISO 9362 structure (8 or 11 characters), splits bank/country/location/branch, and names well-known institutions.

Payment files reject a BIC that is the wrong length or uses a forbidden character in the location code long before they care which bank it is. This checks the ISO 9362 pattern, flags test BICs (a 0 in the location code), and treats XXX as the primary office. A handful of well-known 8-character bank codes resolve to a name; anything else returns bankName null rather than a guess. This is not a lookup in the SWIFT directory. A structurally valid BIC can still be unissued, deactivated or mistyped by one letter that still fits the pattern.

Parameters

bic* string SWIFT/BIC, 8 or 11 characters, with or without spaces.
POST/v1/finance/bic
Request
{
  "bic": "DEUTDEFF"
}
no request sent yet
Response
Press Run to try free — no key needed.
/v1/shipping/container ISO 6346 Container Number deterministic 1 credit

Validates an ISO 6346 freight-container number: owner code, category letter, serial and check digit.

Bills of lading and terminal scans mistype container numbers constantly; the check digit (ISO 6346) catches almost all of those before a customs filing. The fourth letter is the category (U freight, J equipment, Z chassis, R reefer). Owner codes are not resolved to a company — BIC's owner-code register is a separate paid product. A valid number is arithmetically self-consistent, not proof the box exists.

Parameters

code* string ISO 6346 container number, e.g. CSQU3054383.
POST/v1/shipping/container
Request
{
  "code": "CSQU3054383"
}
no request sent yet
Response
Press Run to try free — no key needed.
/v1/id/gtin GTIN / EAN Check Digit deterministic 1 credit

Validates GTIN-8, UPC-A (12), EAN-13 and GTIN-14 check digits for retail barcodes.

Retail GTINs share one GS1 check-digit algorithm with length-dependent packing (8 / 12 / 13 / 14). This endpoint stays on that retail identity: it does not guess shipping carriers. For 13-digit codes the leading three digits are returned as a GS1 company-prefix hint; 868/869 mark Türkiye. A matching check digit is arithmetic consistency, not proof the SKU is listed in a brand catalogue.

Parameters

code* string GTIN-8, UPC-A (12), EAN-13 or GTIN-14.
POST/v1/id/gtin
Request
{
  "code": "8690504015154"
}
no request sent yet
Response
Press Run to try free — no key needed.
/v1/email/verify E-mail Verification 1 credit

Checks an e-mail address: syntax, whether the domain can actually receive mail, disposable and role-account detection, and typo correction.

No SMTP probing. Most competitors connect to the target server and try RCPT TO, which sounds thorough but produces a confident-looking number you cannot trust: most servers are catch-all, the big providers refuse to answer, and doing it in bulk gets the probing IP blacklisted. We report only what is provable — whether the domain has a mail exchanger, whether it is a known disposable service, whether the mailbox belongs to a role rather than a person, and whether the domain looks like a typo of a common one (gmial.com → gmail.com). Addresses are also normalised, so Gmail dots and +tags stop creating duplicate signups.

Parameters

email* string E-mail address to check.
rejectFreeProviders boolean default false
rejectRoleAccounts boolean default false
POST/v1/email/verify
Request
{
  "email": "[email protected]"
}
no request sent yet
Response
Press Run to try free — no key needed.
/v1/eu/vat/rates EU VAT Rates deterministic 1 credit

Dated EU-27 VAT rates (standard, reduced, super-reduced, parking) plus the Union OSS threshold. Not a goods classification.

Invoice software that hard-codes “Germany is 19%” breaks the day a member state moves a rate, and it never knew the reduced list. This is a point-in-time schedule of published rates for the EU VAT area, keyed by country and asOf. It is a schedule of rates, not which goods fall in which reduced band — there is no HS or NACE mapping. Great Britain, Northern Ireland, Switzerland, Norway and Türkiye are recognised and returned with null rates. If the table has no row for that date the rates are null; the last known line is not reused.

Parameters

country* string ISO 3166-1 alpha-2 country (EL accepted as Greece).
asOf string ISO date YYYY-MM-DD. Defaults to today UTC.
POST/v1/eu/vat/rates
Request
{
  "country": "DE",
  "asOf": "2026-01-15"
}
no request sent yet
Response
Press Run to try free — no key needed.
/v1/eu/vat/validate EU VAT Number Validation 2 credits

Validates an EU VAT number against the official VIES register, with per-country format checks and honest handling of upstream outages.

VIES is free but unreliable: member-state services drop out individually and a failed lookup can easily be mistaken for a rejection. Treating an outage as "invalid" means charging VAT to a customer who should have been exempt — an error with a price tag. So this endpoint never returns `invalid` when the service could not answer; it returns `unknown` and names the reason, and reports whether that country's service is currently up. Format is checked locally first, so an obvious typo never becomes an upstream call. Results are cached for 24 hours. Note that most member states do not publish the company name; when they do, it is returned.

Parameters

vatNumber* string VAT number with or without the country prefix, e.g. "DE811907980".
countryCode string Country code, when the number is given without a prefix.
POST/v1/eu/vat/validate
Request
{
  "vatNumber": "DE811907980"
}
no request sent yet
Response
Press Run to try free — no key needed.
/v1/iban/validate IBAN Validation deterministic 1 credit

Validates an IBAN from any of 70+ countries: checksum, country length and in-country account structure, and resolves the bank and branch codes.

Most free libraries stop at the mod-97 checksum. That only says the digits are self-consistent — not that the number could exist in that country. This checks the country's BBAN structure too, so a wrong-length or wrong-shaped account is rejected before your payment file reaches the bank. When only the two check digits are wrong, the correct ones are computed and returned as a suggestion, because that is what people actually mistype. Turkish, Dutch and Belgian IBANs additionally resolve to a bank name when the national code is in our table; otherwise bankName is null. This is not a SWIFT directory.

Parameters

iban* string IBAN, with or without spaces.
expectCountry string Expected country code (ISO 3166-1 alpha-2).
POST/v1/iban/validate
Request
{
  "iban": "DE89 3704 0044 0532 0130 00"
}
no request sent yet
Response
Press Run to try free — no key needed.
/v1/id/mrz MRZ Check Digits deterministic 1 credit

Parses ICAO 9303 TD1/TD3 MRZ and verifies check digits — format check, not identity proof.

Machine-readable zones on passports and ID cards carry ICAO 9303 check digits (weights 7,3,1). This parses TD3 (2×44, typical passport) and TD1 (3×30, typical ID card) and reports each field check. A mismatched check digit is HTTP 200 with valid:false — the string is still an MRZ, just inconsistent. This is a format check, not identity proof: it does not confirm the document was issued or that the holder is who they claim.

Parameters

mrz* string ICAO 9303 MRZ text: TD3 two lines of 44, or TD1 three lines of 30.
POST/v1/id/mrz
Request
{
  "mrz": "P<UTODOE<<JANE<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\nL000000007UTO9001011F3001019AA0000000<<<<<02"
}
no request sent yet
Response
Press Run to try free — no key needed.
/v1/id/isbn ISBN Validate & Convert deterministic 1 credit

Validates ISBN-10 and ISBN-13 check digits and converts between them when the 978 prefix allows it.

Catalogue and retail systems still mix ISBN-10 and ISBN-13. This checks the ISBN-10 weighted mod-11 digit (X allowed) and the ISBN-13 / EAN-13 alternating 1–3 check digit. When an ISBN-10 is valid it returns the ISBN-13 form (978 + body + new check). ISBN-13 values starting with 978 convert back to ISBN-10; 979 prefixes have no ISBN-10 equivalent and isbn10 stays null. Hyphens and spaces are stripped. A valid checksum is not proof the title exists in a national bibliography.

Parameters

isbn* string ISBN-10 or ISBN-13, with or without hyphens.
POST/v1/id/isbn
Request
{
  "isbn": "978-0-306-40615-7"
}
no request sent yet
Response
Press Run to try free — no key needed.
/v1/finance/isin ISIN Validation deterministic 1 credit

Validates an ISIN (ISO 6166): country code, national identifier and the letter-aware check digit.

Portfolio imports and corporate-action files fail on a single mistyped ISIN. The check digit is a Luhn variant that first expands letters to two digits (A=10…Z=35), so a swapped letter is caught, not just a swapped digit. XS (international), EU and other reserved prefixes are accepted as country codes even though they are not ISO 3166 territories. A valid ISIN is self-consistent. It is not proof the security exists, is listed, or is the one you meant.

Parameters

isin* string ISIN, 12 characters, e.g. US0378331005.
POST/v1/finance/isin
Request
{
  "isin": "US0378331005"
}
no request sent yet
Response
Press Run to try free — no key needed.
/v1/id/lei/lookup LEI Lookup 2 credits

Looks up a Legal Entity Identifier in the GLEIF register: legal name, registration status, country, and BIC.

Checksum-valid is not the same as currently registered — a LAPSED or MERGED LEI still passes ISO 7064. This endpoint checks the digits locally first (a typo never becomes an upstream call) then GET the GLEIF lei-records API. Results are cached for 24 hours. GLEIF allows 60 requests per minute; above that, or on timeout/5xx, we return `unknown` rather than invent a registration. HTTP 404 means the service answered and the LEI is not in the index (`invalid`). This is not a replacement for GLEIF’s own API for bulk. `status` is registration.status (ISSUED/LAPSED/MERGED/…), not entity.status (ACTIVE).

Parameters

lei* string Legal Entity Identifier, 20 characters.
POST/v1/id/lei/lookup
Request
{
  "lei": "5493001KJTIIGC8Y1R00"
}
no request sent yet
Response
Press Run to try free — no key needed.
/v1/id/lei LEI Validation deterministic 1 credit

Validates a 20-character Legal Entity Identifier (ISO 17442) with the ISO 7064 mod-97 check digits.

KYC and MiFID reporting reject an LEI that fails the check digits before anyone looks the entity up. The algorithm is the same family as IBAN (ISO 7064 mod 97-10) over all 20 characters; the remainder must be 1. The first 4 characters are the issuing LOU prefix, the next 14 the entity, the last 2 the check digits. This does not call GLEIF. A checksum-valid LEI can be lapsed, merged, or never issued. Use GLEIF's free API if you need "this legal entity is currently registered".

Parameters

lei* string Legal Entity Identifier, 20 characters.
POST/v1/id/lei
Request
{
  "lei": "5493001KJTIIGC8Y1R12"
}
no request sent yet
Response
Press Run to try free — no key needed.
/v1/phone/validate Phone Number Validation deterministic 1 credit

Validates and normalises a phone number to E.164, classifies the line type, and resolves the province for Turkish landlines.

For signup and checkout flows that need to store one canonical form and reject typos early. Turkish numbers are handled in depth: landline area codes resolve to a province, mobile and special ranges (toll-free 0800, fixed-rate 0850, premium 0900) are classified, and every accepted input comes back in both E.164 and national notation. One thing this endpoint deliberately does not claim: the current mobile operator. Turkey has had number portability since 2008, so a 0532 number may well be on another network today. Competing APIs report the prefix owner as "the operator" and customers pick SMS routes on that basis. We return it as `originallyAllocatedTo` with the caveat attached, because a confident wrong answer costs more than an honest gap.

Parameters

phone* string Phone number in any common format.
defaultCountry string ISO 3166-1 alpha-2 country to assume when the number has no international prefix. Defaults to TR.
POST/v1/phone/validate
Request
{
  "phone": "0532 123 45 67"
}
no request sent yet
Response
Press Run to try free — no key needed.
/v1/id/tin Tax Identifier Validation deterministic 1 credit

Validates a tax identifier for 25+ countries: checksum where the algorithm is public, format-only where it is not. Country is required.

Onboarding forms collect a tax number from whatever country the customer is in and then store garbage because they only checked the length. This applies the published checksum (SIREN/SIRET Luhn, ABN mod-89, CPF/CNPJ, NIP, BSN 11-proef, NIF/NIE, OIB, IČO, AFM, TCKN/VKN, …) and refuses to guess the country: the same 9 digits are a well-formed identifier in more than one place. Where the checksum is not published (US EIN, UK UTR, DE Steuernummer, IN PAN) the answer is format + `checksum: not-verified`, not a fake pass. This does not ask any tax authority whether the number is issued.

Parameters

tin* string Tax identifier as written, with or without spaces and punctuation.
country* string ISO 3166-1 alpha-2 country that issued the identifier. Required.
POST/v1/id/tin
Request
{
  "tin": "73282932000074",
  "country": "FR"
}
no request sent yet
Response
Press Run to try free — no key needed.
/v1/tr/postal-code Turkish Postal Code deterministic 1 credit

Validates a 5-digit Turkish postal code and resolves the province from the first two digits (plate map).

PTT postal codes are five digits; the leading pair matches the province plate code for the 81 provinces. This endpoint checks the shape, maps 01–81 to the province name, and returns null with confidence none when the prefix is outside that range — it does not invent a district. District-level resolution needs the full PTT directory and is out of scope here.

Parameters

postalCode* string Turkish 5-digit postal code, with or without spaces.
POST/v1/tr/postal-code
Request
{
  "postalCode": "34710"
}
no request sent yet
Response
Press Run to try free — no key needed.
/v1/tr/validate Turkish ID & Number Validation deterministic 1 credit

Validates Turkish national ID, tax number, IBAN, licence plate, IMEI, barcodes, KEP, MERSİS, postal code and ISBN from one endpoint, with type auto-detection.

Goes past a yes/no: resolves the bank behind an IBAN, the province behind a licence plate and the GS1 country prefix behind a barcode. Pure local computation — no upstream service is called, so latency is microseconds and the answer never changes for the same input.

Parameters

value* string Value to validate.
type "auto" | "tckn" | "vkn" | "iban" | "plate" | "imei" | "gtin" | "kep" | "mersis" | "postal" | "isbn" Omitted → inferred from the format. default "auto"
POST/v1/tr/validate
Request
{
  "value": "TR33 0006 1005 1978 6457 8413 26"
}
no request sent yet
Response
Press Run to try free — no key needed.
/v1/id/uuid UUID Validate deterministic 1 credit

Validates UUID structure and reports version (1–5, 7) and RFC 4122 variant bits. Deterministic.

Accepts dashed or 32-hex compact form. Reports the version nibble, variant (NCS / RFC 4122 / Microsoft / future), and whether the layout matches a known UUID version used in practice (v1–v5 and Unix-epoch v7). A valid structure is not proof the UUID was issued by a particular system.

Parameters

uuid* string UUID string, with or without hyphens.
POST/v1/id/uuid
Request
{
  "uuid": "550e8400-e29b-41d4-a716-446655440000"
}
no request sent yet
Response
Press Run to try free — no key needed.
/v1/id/vin VIN Validation deterministic 1 credit

Validates a 17-character VIN: forbidden letters, ISO 3779 check digit, WMI region/manufacturer, model year and plant.

Typos in a VIN are usually a forbidden letter (I, O, Q — they look like 1 and 0) or a shifted character. This rejects those, splits WMI/VDS/VIS, and names the manufacturer when the WMI is in a conservative built-in table. The 9th-character check digit is computed and compared, but a mismatch does not fail the VIN: it is mandatory under FMVSS 115 in North America and routinely ignored in Europe. `checkDigitMatch` tells you; `valid` stays true if the 17-character form is legal. This does not decode the full vehicle (engine, body, options) and does not prove the VIN was issued.

Parameters

vin* string Vehicle identification number, 17 characters.
POST/v1/id/vin
Request
{
  "vin": "1M8GDM9AXKP042788"
}
no request sent yet
Response
Press Run to try free — no key needed.

Finance7

/v1/finance/creditor-ref RF Creditor Reference deterministic 1 credit

Validates or generates an ISO 11649 RF creditor reference (mod-97 check digits).

SEPA credit transfers carry an RF creditor reference so remittance data survives the payment chain. The check digits are the same ISO 7064 mod-97 used for IBAN: RF and the two digits move to the end, letters become 10–35, remainder must be 1. If the input already starts with RF and two digits it is validated; otherwise a 1–21 character alphanumeric payload is encoded. A bad checksum is rejected with 400 — a self-inconsistent reference must not enter a payment file.

Parameters

reference* string ISO 11649 RF creditor reference, or a 1–21 character payload to encode.
POST/v1/finance/creditor-ref
Request
{
  "reference": "RF18 5390 0754 7034"
}
no request sent yet
Response
Press Run to try free — no key needed.
/v1/pay/epc-qr EPC QR Payload deterministic 1 credit

Builds an EPC069-12 v3.1 V2 (002) SCT payload. Does not send money; returns text only, no PNG.

European payments often start from a QR that encodes an EPC069-12 credit-transfer payload. This endpoint builds that text in version 002 (V2): BCD, UTF-8, SCT, optional BIC, name, electronic IBAN, EUR amount. Purpose and structured remittance are left empty; unstructured remittance is copied if given. Lines are LF, not CRLF. IBAN spaces are stripped and letters uppercased; mod-97 is not required here. TRY, USD and any non-EUR currency are rejected. This does not send money and does not render a QR image.

Parameters

name* string Beneficiary name (SCT Name).
iban* string Beneficiary IBAN, with or without spaces.
amountEur* number Transfer amount in EUR (positive).
remittance string Unstructured remittance (e.g. invoice number).
bic string Beneficiary BIC; optional in V2 (002).
currency string Must be EUR if provided. Other currencies are rejected.
POST/v1/pay/epc-qr
Request
{
  "name": "Franz Mustermänn",
  "iban": "DE71110220330123456789",
  "amountEur": 12.3,
  "remittance": "RF18539007547034"
}
no request sent yet
Response
Press Run to try free — no key needed.
/v1/tr/iban/build Build Turkish IBAN deterministic 1 credit

Builds a Turkish IBAN from a 5-digit bank code and account number, computing ISO 7064 check digits.

A Turkish IBAN is TR + 2 check digits + 5-digit bank code + 1 reserved digit + 16-character account. This pads the account on the left, defaults the reserved digit to 0, computes the mod-97 check digits, and resolves the bank name from the same national table used by IBAN validation when the code is known. Unknown bank codes still produce a structurally valid IBAN with bankName null — existence at the bank is not claimed.

Parameters

bankCode* string 5-digit Turkish national bank / EFT code (e.g. 00062).
accountNumber* string Account number, up to 16 alphanumeric characters (padded left with zeros).
reserved string Reserved BBAN digit after the bank code. Defaults to 0.
POST/v1/tr/iban/build
Request
{
  "bankCode": "00062",
  "accountNumber": "0000005197864578"
}
no request sent yet
Response
Press Run to try free — no key needed.
/v1/tr/invoice/build Turkish e-Invoice Builder 3 credits

Builds a UBL-TR e-Invoice or e-Archive XML document from plain JSON, computing every total and validating the parties.

Selling into Türkiye means issuing a UBL-TR document whose element order is fixed by schema and whose totals must agree to the kuruş, or the integrator rejects it. This endpoint takes the invoice as ordinary JSON and returns the XML. Totals you send are ignored on purpose — line amounts, per-rate VAT subtotals and the payable amount are all recomputed here, because a rounding difference of one kuruş is the most common rejection. VKN and TCKN checksums are verified, and the amount is written out in Turkish words as invoices require. It does not sign the document and does not transmit it: the financial seal and the submission to the tax authority belong to your certificate and your integrator. What comes back is a document ready to enter that step.

Parameters

profile "TEMELFATURA" | "TICARIFATURA" | "EARSIVFATURA" TEMELFATURA: no formal objection flow. TICARIFATURA: buyer may accept/reject. EARSIVFATURA: buyer is not an e-Invoice user. default "TEMELFATURA"
invoiceTypeCode "SATIS" | "IADE" default "SATIS"
id string Invoice number. Omit and supply `series` to have it built from the series and sequence.
series string Three-letter series code, used with `sequence`.
sequence integer Sequence number within the series and year.
uuid string Document UUID (ETTN). Generated when omitted.
issueDate* string
issueTime string
currency string ISO 4217. Anything other than TRY requires `exchangeRate`. default "TRY"
exchangeRate number Units of TRY per one unit of `currency`.
supplier* object
customer* object
lines* object[]
notes string[] default []
amountInWords boolean Adds the payable amount written out in Turkish words as a note, the way invoices require. default true
despatchDocumentId string Delivery note number, if the goods shipped separately.
orderReferenceId string
POST/v1/tr/invoice/build
Request
{
  "series": "ABC",
  "sequence": 123,
  "issueDate": "2026-07-26",
  "supplier": {
    "name": "Örnek Yazılım A.Ş.",
    "taxNumber": "4840847211",
    "taxOffice": "Kadıköy",
    "street": "Moda Cad.",
    "buildingNumber": "12",
    "district": "Kadıköy",
    "city": "İstanbul"
  },
  "customer": {
    "name": "Alıcı Ticaret Ltd. Şti.",
    "taxNumber": "3250566341",
    "taxOffice": "Beşiktaş",
    "city": "İstanbul"
  },
  "lines": [
    {
      "name": "Yazılım geliştirme hizmeti",
      "quantity": 10,
      "unitCode": "HUR",
      "unitPrice": 1500,
      "vatRate": 20
    }
  ]
}
no request sent yet
Response
Press Run to try free — no key needed.
/v1/tr/invoice/parse Turkish e-Invoice (UBL-TR) Parser deterministic 3 credits

Turns a UBL-TR e-Invoice or e-Archive XML document into clean JSON: parties, line items, taxes and totals.

Works regardless of the namespace prefix the sender used (cbc:, cac:, ns0:), normalises single-line documents into arrays, and reports amount mismatches in `warnings` instead of returning quietly wrong totals. The job that costs accounting and expense software the most engineering time.

Parameters

xml* string UBL-TR e-Invoice / e-Archive (e-Arsiv) XML body.
POST/v1/tr/invoice/parse
Request
{
  "xml": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Invoice xmlns=\"urn:oasis:names:specification:ubl:schema:xsd:Invoice-2\"\n         xmlns:cbc=\"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2\"\n         xmlns:cac=\"urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2\">\n  <cbc:UBLVersionID>2.1</cbc:UBLVersionID>\n  <cbc:ProfileID>TEMELFATURA</cbc:ProfileID>\n  <cbc:ID>ABC2026000000123</cbc:ID>\n  <cbc:UUID>3f2504e0-4f89-11d3-9a0c-0305e82c3301</cbc:UUID>\n  <cbc:IssueDate>2026-07-20</cbc:IssueDate>\n  <cbc:InvoiceTypeCode>SATIS</cbc:InvoiceTypeCode>\n  <cbc:DocumentCurrencyCode>TRY</cbc:DocumentCurrencyCode>\n  <cac:AccountingSupplierParty><cac:Party>\n    <cac:PartyIdentification><cbc:ID schemeID=\"VKN\">1234567890</cbc:ID></cac:PartyIdentification>\n    <cac:PartyName><cbc:Name>Örnek Yazılım A.Ş.</cbc:Name></cac:PartyName>\n    <cac:PostalAddress><cbc:StreetName>Moda Cad.</cbc:StreetName><cbc:BuildingNumber>12</cbc:BuildingNumber>\n      <cbc:CitySubdivisionName>Kadıköy</cbc:CitySubdivisionName><cbc:CityName>İstanbul</cbc:CityName></cac:PostalAddress>\n    <cac:PartyTaxScheme><cac:TaxScheme><cbc:Name>Kadıköy</cbc:Name></cac:TaxScheme></cac:PartyTaxScheme>\n  </cac:Party></cac:AccountingSupplierParty>\n  <cac:AccountingCustomerParty><cac:Party>\n    <cac:PartyIdentification><cbc:ID schemeID=\"VKN\">9876543210</cbc:ID></cac:PartyIdentification>\n    <cac:PartyName><cbc:Name>Alıcı Ticaret Ltd. Şti.</cbc:Name></cac:PartyName>\n  </cac:Party></cac:AccountingCustomerParty>\n  <cac:TaxTotal><cbc:TaxAmount currencyID=\"TRY\">200.00</cbc:TaxAmount>\n    <cac:TaxSubtotal><cbc:TaxableAmount currencyID=\"TRY\">1000.00</cbc:TaxableAmount>\n      <cbc:TaxAmount currencyID=\"TRY\">200.00</cbc:TaxAmount><cbc:Percent>20</cbc:Percent>\n      <cac:TaxCategory><cac:TaxScheme><cbc:Name>KDV</cbc:Name><cbc:TaxTypeCode>0015</cbc:TaxTypeCode></cac:TaxScheme></cac:TaxCategory>\n    </cac:TaxSubtotal></cac:TaxTotal>\n  <cac:LegalMonetaryTotal>\n    <cbc:LineExtensionAmount currencyID=\"TRY\">1000.00</cbc:LineExtensionAmount>\n    <cbc:TaxExclusiveAmount currencyID=\"TRY\">1000.00</cbc:TaxExclusiveAmount>\n    <cbc:TaxInclusiveAmount currencyID=\"TRY\">1200.00</cbc:TaxInclusiveAmount>\n    <cbc:PayableAmount currencyID=\"TRY\">1200.00</cbc:PayableAmount>\n  </cac:LegalMonetaryTotal>\n  <cac:InvoiceLine>\n    <cbc:ID>1</cbc:ID>\n    <cbc:InvoicedQuantity unitCode=\"C62\">10</cbc:InvoicedQuantity>\n    <cbc:LineExtensionAmount currencyID=\"TRY\">1000.00</cbc:LineExtensionAmount>\n    <cac:TaxTotal><cbc:TaxAmount currencyID=\"TRY\">200.00</cbc:TaxAmount>\n      <cac:TaxSubtotal><cbc:TaxableAmount currencyID=\"TRY\">1000.00</cbc:TaxableAmount>\n        <cbc:TaxAmount currencyID=\"TRY\">200.00</cbc:TaxAmount><cbc:Percent>20</cbc:Percent>\n        <cac:TaxCategory><cac:TaxScheme><cbc:Name>KDV</cbc:Name><cbc:TaxTypeCode>0015</cbc:TaxTypeCode></cac:TaxScheme></cac:TaxCategory>\n      </cac:TaxSubtotal></cac:TaxTotal>\n    <cac:Item><cbc:Name>Yıllık Lisans</cbc:Name></cac:Item>\n    <cac:Price><cbc:PriceAmount currencyID=\"TRY\">100.00</cbc:PriceAmount></cac:Price>\n  </cac:InvoiceLine>\n</Invoice>"
}
no request sent yet
Response
Press Run to try free — no key needed.
/v1/tr/money/to-words Amount to Turkish Words deterministic 1 credit

Writes a monetary amount out in Turkish words, the way invoices, cheques and promissory notes require.

Applies the rules that trip up generic libraries: Turkish says "bin", never "bir bin"; the kuruş part is read separately; and both "1.234,56" and "1,234.56" are accepted and told apart automatically. A mandatory field on Turkish e-invoices, cheques and notes — with no off-the-shelf API until now.

Parameters

amount* string | number Amount. Accepts both "1.234,56" and 1234.56.
currency "TRY" | "USD" | "EUR" | "GBP" default "TRY"
style "lower" | "title" | "upper" Output letter case. default "lower"
wrapHash boolean default false
POST/v1/tr/money/to-words
Request
{
  "amount": "1.234,56"
}
no request sent yet
Response
Press Run to try free — no key needed.
/v1/tr/pay/qr Turkish FAST / TR Karekod Payload deterministic 1 credit

Builds a person-to-person TR Karekod (FAST) payment payload from IBAN, name and optional TRY amount. Text only — no PNG.

Turkish instant payments (FAST) can start from a TR Karekod that encodes the payee IBAN and name in EMV-style TLV. This builds the person-to-person organisation (payload format indicator 750210): application template with IBAN, payee name, optional 12-digit kuruş amount, optional free-text explanation, and a CRC-16/CCITT-FALSE trailer. The Turkish IBAN is normalised and checked with ISO 7064 mod-97; non-TR IBANs and non-TRY currencies are rejected. This does not send money and does not render a QR image.

Parameters

iban* string Beneficiary Turkish IBAN (with or without spaces).
name* string Payee name shown to the payer (2–26 chars after trim).
amount number TRY amount; omitted → static QR (payer enters amount).
explanation string Optional remittance note (application free field 10).
currency string Must be TRY if provided.
generatorCode string QR generator / EFT code (4 digits). Defaults to last 4 of the IBAN bank code.
POST/v1/tr/pay/qr
Request
{
  "iban": "TR33 0006 1005 1978 6457 8413 26",
  "name": "Ali Yilmaz"
}
no request sent yet
Response
Press Run to try free — no key needed.

AI Infrastructure3

/v1/mcp/index MCP Tool Surface Index 1 credit

Searchable, dated archive of what every public MCP server actually exposes — tool definitions, daily change feed, and rug-pull detection.

The official MCP registry publishes a server’s name and address but not its tool surface; the only way to learn what a server exposes is to connect and call `tools/list`. This endpoint does that daily across every public remote server and keeps the result. Three things become answerable that the source cannot answer: tool-level search (the registry has none), uptime, and — the one that matters for security — what a tool’s description said yesterday. In MCP a tool description is part of the context handed to the model, so it is prompt text; if it changes after the user approved the server, the server has silently injected new instructions. Each indexed tool also carries a review score with the matched evidence, so the claim can be checked rather than trusted. Measurement boundary: only `initialize` and `tools/list` are ever called — never `tools/call`.

Parameters

view "search" | "changes" | "server" | "tool" | "stats" `search`: search tool name/description · `changes`: change feed (the actual product) · `server`: per-day measurement history for one server · `tool`: definition history for one tool · `stats`: index-level totals. default "search"
q string Search term (only `search`), e.g. `invoice`, `calendar`, `sql`.
server string Registry server name, e.g. `com.temsor/api`. Required for `server`/`tool` views.
tool string Tool name (only `tool` view).
minRisk integer Only tools whose review score is at or above this (only `search`).
severity "high" | "medium" | "low" | "info" Only `changes`.
type string Event type filter (only `changes`), e.g. `tool_description_changed`.
days integer Window in days (`changes` and `server`). default 30
limit integer default 50
POST/v1/mcp/index
Request
{
  "view": "search",
  "q": "invoice"
}
no request sent yet
Response
Press Run to try free — no key needed.
/v1/model/archive LLM Price & Lifecycle Archive 1 credit

Dated archive of LLM prices, context windows, announced retirement dates and quiet delistings across 400+ models and 50+ providers.

Providers overwrite their pricing pages and drop models from their catalogs without publishing what changed. This endpoint keeps a daily record, so three otherwise unanswerable questions become answerable: what a model cost on a given date (a contract and budget question), which models were quietly removed (a dependency-audit question), and when a retirement date was first announced and whether it later moved (a migration-planning question). Price points land in the shared time series, so a full range query is available through `series/history` under `model.price.<provider>/<model>.<input|output|cache_read>`. The archive can only accumulate forward — it cannot be reconstructed after the fact.

Parameters

view "catalog" | "expiring" | "delisted" | "events" | "stats" `catalog`: tracked models · `expiring`: retirement announced · `delisted`: dropped from the catalogue · `events`: lifecycle events · `stats`: archive totals. default "catalog"
provider string Provider prefix, e.g. `anthropic`, `openai`, `google`.
slug string Full model id, e.g. `anthropic/claude-opus-5` (only `events`).
q string Search in model id/name (only `catalog`).
type "listed" | "delisted" | "relisted" | "price_up" | "price_down" | "context_changed" | "expiration_announced" | "expiration_changed" Event type (only `events`).
severity "high" | "medium" | "low" | "info"
withinDays integer `expiring`: retire within this many days. default 180
days integer `events`: window in days. default 90
includeDelisted boolean `catalog`: include delisted models. default false
limit integer default 100
POST/v1/model/archive
Request
{
  "view": "expiring",
  "withinDays": 180
}
no request sent yet
Response
Press Run to try free — no key needed.
/v1/model/drift LLM Endpoint Drift 1 credit

Independent daily record of what changed behind a provider endpoint: which alias resolved to which model, and when behaviour shifted.

Providers update models behind stable endpoint names. This endpoint publishes an independent measurement: a fixed probe suite is sent daily at temperature 0, three repeats per probe, and the identity a provider declares in its own response (`modelVersion`, `system_fingerprint`, region) is recorded alongside. A change is only reported as drift when the repeats agree with each other and disagree with the previous run — same-day disagreement is noise, not drift. `aliases` answers "what was actually behind `gemini-flash-latest` on that day"; a question that cannot be answered retroactively.

Parameters

view "aliases" | "events" | "probes" `aliases`: alias → the real model behind it · `events`: drift events · `probes`: probe status from the last run. default "aliases"
provider string Filter by provider (gemini, groq, cerebras, mistral).
severity "high" | "medium" | "low" | "info" Only for the `events` view.
days integer History window in days (only `events`). default 90
limit integer default 100
POST/v1/model/drift
Request
{
  "view": "aliases"
}
no request sent yet
Response
Press Run to try free — no key needed.

PBX Search31

/v1/pbx/audio/chunk PBX Audio Chunk 1 credit

Notify an optional audio chunk / customer URI for a live or archived call (idle $0).

Prefer customer storage URI. Temsor keeps a pointer; STT only while a call is active.

Parameters

call_id* string
pbx_id string
uri string Customer-side media URI (preferred).
bytes_b64 string Optional small demo chunk; production prefers URI.
t_ms integer
POST/v1/pbx/audio/chunk
Request
{
  "call_id": "call_msp_001",
  "pbx_id": "pbx_otel_msp_demo",
  "uri": "https://customer.example/rec/call_msp_001.wav",
  "t_ms": 12000
}
no request sent yet
Response
Press Run to try free — no key needed.
/v1/pbx/bridge/multi-agent PBX Multi-Agent Bridge 1 credit

Record virtual multi-agent bridge intent + shared memory hint (open promises). Idle $0, no live Asterisk.

POST /v1/pbx/bridge/multi-agent {call_id, agents:[{role,label}]}. Records a virtual RTP agent bridge intent in the PBX index (no live Asterisk/ExternalMedia). Returns shared_memory linking open promises on the call for co-agents. No Telnyx/DID/LLM.

Parameters

call_id* string Call id to attach the multi-agent bridge intent to.
agents* object[] Virtual RTP agents to bridge (intent only — no live Asterisk).
pbx_id string Optional PBX scope; falls back to x-temsor-pbx-key or demo PBX.
POST/v1/pbx/bridge/multi-agent
Request
{
  "call_id": "call_msp_001",
  "agents": [
    {
      "role": "primary",
      "label": "Ön büro Ayşe"
    },
    {
      "role": "specialist",
      "label": "Teknik 101"
    }
  ]
}
no request sent yet
Response
Press Run to try free — no key needed.
/v1/pbx/calls PBX Recent Calls 1 credit

List recent calls with transfer path crumbs — site + customer archive browser.

GET /v1/pbx/calls?limit=20. Scoped by x-temsor-pbx-key when set. Idle $0. No DID sales.

Parameters

limit integer Max recent calls to return (1–100). default 20
POST/v1/pbx/calls
Request
{
  "limit": 20
}
no request sent yet
Response
Press Run to try free — no key needed.
/v1/pbx/calls/get PBX Get Call 1 credit

Get one call by id with transfer graph — customer detail drawer.

GET /v1/pbx/calls/get?call_id=…. Scoped by x-temsor-pbx-key. found=false if missing. Idle $0.

Parameters

call_id* string Call id (e.g. call_msp_002).
POST/v1/pbx/calls/get
Request
{
  "call_id": "call_msp_002"
}
no request sent yet
Response
Press Run to try free — no key needed.
/v1/pbx/calls/graph PBX Call Graph / Transfers 1 credit

GET call graph + transfer edges for a call — who→whom→where the promise stuck (moat).

GET /v1/pbx/calls/graph?call_id=…&stuck_at=310. Returns path, path_tr (plain Turkish), edges, and raw transfers. Compounding asset: Transfer edges, not a bot transcript. Idle $0. No DID sales.

Parameters

call_id* string Call id whose transfer graph to return.
stuck_at string Optional override for where the promise stuck (extension).
POST/v1/pbx/calls/graph
Request
{
  "call_id": "call_msp_002"
}
no request sent yet
Response
Press Run to try free — no key needed.
/v1/pbx/dictionary PBX Domain Dictionary 1 credit

Domain dictionary v1 (hotel: room type, AC, check-out; PBX providers: tariff, IMEI, refund) — boosts search + Fact extract; includes pilot aliases.

GET /v1/pbx/dictionary?domain=otel|santral_firmasi|msp|all (msp = legacy alias for santral_firmasi). Idle $0, no LLM. Synonyms feed archive search (match crumbs) and transcript Fact extraction. Write path: POST /v1/pbx/dictionary/add.

Parameters

domain "otel" | "santral_firmasi" | "msp" | "all" Domain slice: otel | santral_firmasi (legacy alias: msp) | all default "all"
POST/v1/pbx/dictionary
Request
{
  "domain": "otel"
}
no request sent yet
Response
Press Run to try free — no key needed.
/v1/pbx/dictionary/add PBX Dictionary Add Alias 1 credit

Add a synonym/alias to the domain dictionary (pbx-scoped or global demo) — compounds search boost + Fact extract. ≤60/hour/key → 429. Idle $0.

POST /v1/pbx/dictionary/add {term, alias, domain:otel|santral_firmasi, scope?:pbx|global}. Persists to pbx-index. Search returns match crumbs. Idle $0, no LLM. Legacy domain=msp → santral_firmasi.

Parameters

term* string Canonical term (e.g. AC, tariff). Plain Turkish preferred.
alias* string Synonym / alias to add (e.g. cooling, line package).
domain "otel" | "santral_firmasi" | "msp" Domain: otel | santral_firmasi (legacy msp accepted). default "otel"
kind "imei" | "tarife" | "oda" | "oda_tipi" | "klima" | "check_out" | "iade" | "sku" | "other" Fact kind; inferred from seed term when omitted.
boost number Search boost weight (default 2).
scope "pbx" | "global" pbx = scoped to x-temsor-pbx-key; global = demo-wide. Default: pbx if registered key, else global.
hint_tr string
hint_en string
POST/v1/pbx/dictionary/add
Request
{
  "term": "klima",
  "alias": "cooling",
  "domain": "otel",
  "scope": "global"
}
no request sent yet
Response
Press Run to try free — no key needed.
/v1/pbx/events PBX Events 1 credit

Ingest Asterisk programming-interface (ARI) / Stasis (call-app channel) events. Optional x-temsor-pbx-key or HMAC-SHA256 request signature. Body ≤256 KiB → 429. Idle $0 when no calls.

Demo stores events in memory/file. Auth: omit, x-temsor-pbx-key, or x-temsor-signature = hex(HMAC-SHA256(api_key, body)); bad signature rejected when header present. BridgeEnter → transfer crumbs. Utterance/text → open Promise docs via heuristic (no LLM).

Parameters

pbx_id string PBX id that emitted the ARI batch.
events* object[] ARI / Stasis event batch. Utterance/text fields trigger heuristic promise extract.
POST/v1/pbx/events
Request
{
  "pbx_id": "pbx_otel_msp_demo",
  "events": [
    {
      "type": "StasisStart",
      "channel": "PJSIP/101-0001",
      "application": "temsor"
    }
  ]
}
no request sent yet
Response
Press Run to try free — no key needed.
/v1/pbx/facts PBX Facts List 1 credit

List extracted facts (IMEI, room, tariff…) from the durable index — filter by call_id, kind, domain, q.

GET /v1/pbx/facts?call_id=&kind=&domain=otel|santral_firmasi|all&q=&limit=50. Facts come from transcript extract + domain dictionary; persist in pbx-index. Scoped by x-temsor-pbx-key. Idle $0. No DID sales; Asterisk on customer; KVKK forget ready.

Parameters

call_id string Filter by call id (e.g. call_msp_001).
kind string Fact kind key (imei, oda, tarife, ...) or all.
domain "otel" | "santral_firmasi" | "msp" | "all" Domain slice: otel | santral_firmasi (legacy msp) | all.
q string Free-text filter over kind + value + call_id.
limit integer Max facts to return (1–200). default 50
POST/v1/pbx/facts
Request
{
  "limit": 20
}
no request sent yet
Response
Press Run to try free — no key needed.
/v1/pbx/facts/get PBX Get Fact 1 credit

Get one extracted fact by id — detail drawer for site + customer.

GET /v1/pbx/facts/get?id=…. Scoped by x-temsor-pbx-key. found=false if missing. Idle $0. No DID sales.

Parameters

id* string Fact id (e.g. fact_001).
POST/v1/pbx/facts/get
Request
{
  "id": "fact_001"
}
no request sent yet
Response
Press Run to try free — no key needed.
/v1/pbx/index/partial PBX In-Call Partial Index Upsert 1 credit

Upsert mid-call partial index (utterances → fact/promise hints). Path to ≤400ms whisper; ≤600/hour/key → 429; idle $0.

POST /v1/pbx/index/partial {call_id, text?, speaker?, t_ms?, is_final?, live?, end_call?, promote?}. Streams partial STT queue into accumulating Fact/Promise hints while the call is live. No Temsor STT/LLM — customer posts text. Asterisk on customer; no DID sales. Idle $0.

Parameters

call_id* string Live call id to upsert partial index for.
text string Partial utterance / snippet (customer STT or demo). Empty = metadata-only.
speaker string | null
t_ms integer | null
is_final boolean Finalized utterance span (vs interim).
live boolean Default true while call is live.
end_call boolean Mark live=false; idle $0 for this call.
promote boolean Promote heuristic hints into durable Promise/Fact docs.
pbx_id string
POST/v1/pbx/index/partial
Request
{
  "call_id": "call_live_demo",
  "text": "Temsilci: Oda 412 klimasını yarın onaracağız, söz veriyorum.",
  "speaker": "temsilci",
  "t_ms": 12000,
  "is_final": true,
  "live": true
}
no request sent yet
Response
Press Run to try free — no key needed.
/v1/pbx/index/partial/get PBX In-Call Partial Index Read 1 credit

GET mid-call partial index — accumulating facts/promises/snippets while live.

GET /v1/pbx/index/partial/get?call_id=…. Returns live partial state for whisper ≤400ms path. Idle $0 when no live call. Asterisk on customer; no DID sales.

Parameters

call_id* string Call id whose live partial index to read.
POST/v1/pbx/index/partial/get
Request
{
  "call_id": "call_live_demo"
}
no request sent yet
Response
Press Run to try free — no key needed.
/v1/pbx/ingest/transcript PBX Ingest Transcript 1 credit

Heuristic TR promise extractor from transcript text — creates open Promise docs (idle $0, no LLM).

Detects promise-like sentences (söz, vaat, edeceğiz, iade, iptal, yarın…). Optional persist_promises=false for extract without writing. Also wired via utterance text on POST /v1/pbx/events.

Parameters

transcript* string TR utterance / transcript text to scan for promises.
call_id string
pbx_id string
who string
ext string
persist_promises boolean When false, extract only (dry-run, no write). When true, create Promise docs status=open. default true
POST/v1/pbx/ingest/transcript
Request
{
  "transcript": "Temsilci Ayşe: Oda 412 kliması yarın 10:00'da onarılacak, söz veriyorum.",
  "persist_promises": true
}
no request sent yet
Response
Press Run to try free — no key needed.
/v1/pbx/night-twin/last PBX Night Twin Last Report 1 credit

GET last gece-ikizi report persisted on forge volume (null if never run). Idle $0.

GET /v1/pbx/night-twin/last — last report from POST /v1/pbx/night-twin/run. No LLM/Telnyx.

Parameters

POST/v1/pbx/night-twin/last
Request
{}
no request sent yet
Response
Press Run to try free — no key needed.
/v1/pbx/night-twin/run PBX Night Twin Run 1 credit

Night scan: open promises older than N hours → unresolved candidates (iptal/iade/söz). ≤20/hour/key → 429. Idle $0, no LLM.

POST /v1/pbx/night-twin/run {pbx_id?, older_than_hours?}. Heuristic night twin — still-open promises older than N hours whose text matches iptal/iade/söz. Persists last report on forge volume. No Telnyx/LLM.

Parameters

pbx_id string Optional PBX scope; falls back to x-temsor-pbx-key scope.
older_than_hours number Scan open promises whose call is older than this many hours. default 24
POST/v1/pbx/night-twin/run
Request
{
  "older_than_hours": 24
}
no request sent yet
Response
Press Run to try free — no key needed.
/v1/pbx/orchestra/act PBX ARI Orchestra Act 1 credit

Query→act: whisper / hold / transfer / pci_stop / snoop. Records intent; optional customer Stasis webhook. ≤120/hour/key → 429. No DID sales.

POST /v1/pbx/orchestra/act {call_id, action, params?, stasis_webhook_url?}. Turns search/suggest hits into ARI acts on THE CUSTOMER Asterisk (intent + optional webhook forward). No live Temsor RTP; stubs OK without Asterisk. Idle $0. Not a receptionist bot.

Parameters

call_id* string Live or indexed call id to act on.
action* "whisper" | "hold" | "transfer" | "pci_stop" | "snoop" whisper | hold | transfer | pci_stop | snoop
params object Action params (to_ext required for transfer).
pbx_id string
stasis_webhook_url string Optional customer Stasis webhook — forge POSTs the act intent there.
skip_forward boolean Record only; do not POST webhook.
POST/v1/pbx/orchestra/act
Request
{
  "call_id": "call_msp_001",
  "action": "whisper",
  "params": {
    "text": "Açık klima vaadi — dün 412",
    "agent_ext": "101",
    "source_type": "promise"
  }
}
no request sent yet
Response
Press Run to try free — no key needed.
/v1/pbx/persons PBX Persons List 1 credit

Light CRM from call graph / facts — caller phones+names and extension identities seen on transfers.

GET /v1/pbx/persons?call_id=&kind=caller|extension|all&q=&limit=50. Durable Person rows from pbx-index plus derived extension identities (ext_NNN) from Transfer edges / promise.ext. Scoped by x-temsor-pbx-key. Idle $0. No DID sales; Asterisk on customer; KVKK forget ready.

Parameters

call_id string Filter persons seen on this call id.
kind "caller" | "extension" | "all" caller = durable Person; extension = derived from call-graph hops; all = both.
q string Free-text over names, phones, org, extensions, facts.
include_extensions boolean Include derived extension identities (default true).
limit integer Max persons to return (1–200). default 50
POST/v1/pbx/persons
Request
{
  "limit": 20
}
no request sent yet
Response
Press Run to try free — no key needed.
/v1/pbx/persons/get PBX Get Person 1 credit

Get one light-CRM identity by id — caller Person or derived extension.

GET /v1/pbx/persons/get?id=per_001|ext_101. Scoped by x-temsor-pbx-key. found=false if missing. Idle $0. No DID sales.

Parameters

id* string Person id (e.g. per_001) or extension id (e.g. ext_101).
POST/v1/pbx/persons/get
Request
{
  "id": "per_001"
}
no request sent yet
Response
Press Run to try free — no key needed.
/v1/pbx/promises PBX Open Promises 1 credit

List broken/open promises from the call graph — the hotel / PBX-provider sales demo list.

GET /v1/pbx/promises?status=open returns open/unclosed promises with transfer path. Scoped by x-temsor-pbx-key when set.

Parameters

status "open" | "kept" | "broken" | "unknown" | "all" | "closed" Promise status filter; closed = kept|broken. Sales demo uses open. default "open"
POST/v1/pbx/promises
Request
{
  "status": "open"
}
no request sent yet
Response
Press Run to try free — no key needed.
/v1/pbx/promises/close PBX Close Promise 1 credit

Mark an open promise kept or broken with an optional KVKK-safe note — makes the sales demo writable, not read-only. ≤60/hour/key → 429.

POST /v1/pbx/promises/close {promise_id, status:kept|broken, note?}. Phones/emails in note are scrubbed. Scoped by x-temsor-pbx-key when set. Idle $0 — no LLM/PSTN.

Parameters

promise_id* string Promise id (prm_*). Sales demo marks open promises kept|broken.
status* "kept" | "broken" Close outcome: kept (honoured) or broken (not kept).
note string Optional short operator note. Phones/emails stripped (KVKK-safe).
POST/v1/pbx/promises/close
Request
{
  "promise_id": "prm_001",
  "status": "kept",
  "note": "Mühendis geldi, klima OK"
}
no request sent yet
Response
Press Run to try free — no key needed.
/v1/pbx/promises/export PBX Promises Export 1 credit

Export open/broken promises as CSV or JSON — hotel / PBX-provider unclosed-promise sales list.

GET /v1/pbx/promises/export?status=open|closed&format=csv|json. CSV/JSON include closed_at, close_note, path crumbs. Scoped by x-temsor-pbx-key when set. Idle $0.

Parameters

status "open" | "kept" | "broken" | "unknown" | "all" | "closed" Promise status filter; closed = kept|broken. Sales demo uses open. default "open"
format "csv" | "json" Export format. default "csv"
POST/v1/pbx/promises/export
Request
{
  "status": "open",
  "format": "csv"
}
no request sent yet
Response
Press Run to try free — no key needed.
/v1/pbx/promises/reopen PBX Reopen Promise 1 credit

Undo a kept/broken close — restore an open promise so the sales demo can reverse a mis-click. ≤60/hour/key → 429.

POST /v1/pbx/promises/reopen {promise_id}. Only kept|broken → open; clears closed_at/close_note. Scoped by x-temsor-pbx-key when set. Idle $0.

Parameters

promise_id* string Promise id (prm_*). Undo a kept|broken close — restore open.
POST/v1/pbx/promises/reopen
Request
{
  "promise_id": "prm_005"
}
no request sent yet
Response
Press Run to try free — no key needed.
/v1/pbx/redact PBX Redact 1 credit

One-command KVKK forget: clear derived index (promises/facts/partial/audio pointers) by id or phone; durable audit (who/what/when + scope). ≤30/hour/key → 429. Raw audio URI stays on customer PBX.

Hardened redaction. mode=anonymize|delete. Lookup by target_id or phone. Clears Person/Promise/Fact/partial index + Temsor audio pointers for the target. Returns durable audit entry. Media files remain customer-side (URI-only). List via GET /v1/pbx/redact/audit.

Parameters

target_type "promise" | "call" | "person" | "fact" | "utterance" Index document type. Optional when `phone` is set.
target_id string Document id (prm_*, per_*, call_*, fact_*).
phone string Caller phone — finds Person phones (+ linked derived index).
reason string KVKK (personal-data) / forget reason.
mode "anonymize" | "delete" anonymize (default) scrubs fields; delete removes docs.
who string Actor label for durable audit (defaults to pbx scope / demo-operator).
POST/v1/pbx/redact
Request
{
  "target_type": "promise",
  "target_id": "prm_001",
  "reason": "KVKK talep",
  "mode": "anonymize"
}
no request sent yet
Response
Press Run to try free — no key needed.
/v1/pbx/redact/audit PBX Redact Audit 1 credit

List recent KVKK forget actions — who/what/when + scope (call_id|pbx_id|promise_id). Raw audio stays on customer PBX.

GET /v1/pbx/redact/audit?limit=20. Durable audit trail from POST /v1/pbx/redact. Derived index is cleared; customer WAV/URI is not deleted by Temsor. No DID sales; Asterisk on customer.

Parameters

limit integer Max recent forget actions to return (default 20).
POST/v1/pbx/redact/audit
Request
{
  "limit": 20
}
no request sent yet
Response
Press Run to try free — no key needed.
/v1/pbx/register PBX Register 1 credit

Register a pilot PBX; returns pbx_id + API key once (hashed at rest). ≤5/hour/IP → 429. Idle $0.

Control-plane register. API key shown once; stored hashed at rest. Send x-temsor-pbx-key to scope GET /v1/pbx/promises to this pbx_id. No speech recognition while idle.

Parameters

pbx_id string Pilot PBX id; auto-minted if omitted.
label string Human label, e.g. hotel or PBX/IT provider site.
ari_webhook_secret string ARI webhook signing secret (stored as hint only).
name string Pilot contact name (waitlist / register).
email string Pilot contact email.
webhook_url string Optional outbound webhook URL — Temsor POSTs promise/fact/orchestra/redact events.
webhook_secret string Optional HMAC secret for outbound webhook signatures (x-temsor-signature).
webhook_events string[] | string Event list or comma string: promise.opened|closed, fact.extracted, orchestra.act, redact, or *.
POST/v1/pbx/register
Request
{
  "pbx_id": "pbx_otel_msp_demo",
  "label": "Demo otel + santral firması"
}
no request sent yet
Response
Press Run to try free — no key needed.
/v1/pbx/status PBX Status 1 credit

Control-plane status for a registered PBX — counts + idle. No DID sales.

GET /v1/pbx/status. Scoped by x-temsor-pbx-key when set. Asterisk on customer; derived index on Temsor. Idle $0.

Parameters

POST/v1/pbx/status
Request
{}
no request sent yet
Response
Press Run to try free — no key needed.
/v1/pbx/synthetic/run PBX Synthetic Caller Run 1 credit

Load demo: sample call utterances → promise extractor → stats (calls, promises_open). ≤10/hour/key → 429. Idle $0, no LLM/PSTN.

POST /v1/pbx/synthetic/run {scenario:ivr_menu|promise_heavy, count:10..500}. Generates deterministic fake utterances, runs heuristic ingest/transcript extract, returns calls + promises_open. No Telnyx/DID/LLM.

Parameters

scenario "ivr_menu" | "promise_heavy" ivr_menu = DTMF/menu stress; promise_heavy = dense commitment lexicon. default "promise_heavy"
count integer Fake call count, capped 10..500. default 50
pbx_id string Optional PBX scope; falls back to x-temsor-pbx-key or demo PBX.
POST/v1/pbx/synthetic/run
Request
{
  "scenario": "promise_heavy",
  "count": 50
}
no request sent yet
Response
Press Run to try free — no key needed.
/v1/pbx/webhooks PBX Outbound Webhooks 1 credit

Register or list outbound webhooks — customer URL receives promise/fact/orchestra/redact events (HMAC if secret). POST write ≤30/hour/key → 429.

POST /v1/pbx/webhooks {url, secret?, events?, ping?} registers. GET lists. ping:true sends a test delivery. Events: promise.opened, promise.closed, fact.extracted, orchestra.act, redact. Signed with x-temsor-signature when secret set. Idle $0. No DID sales; Asterisk on customer; KVKK.

Parameters

url string Outbound webhook URL (http/https). Present → register; omit on GET → list.
secret string Optional HMAC-SHA256 secret → x-temsor-signature: sha256=<hex>.
events string[] | string Events: promise.opened|closed, fact.extracted, orchestra.act, redact, or *.
ping boolean If true with url → register then ping; if true without url → ping existing.
webhook_id string For ping: target webhook id.
limit integer List limit (default 50).
POST/v1/pbx/webhooks
Request
{
  "url": "https://example.com/temsor-hook",
  "secret": "whsec_demo",
  "events": [
    "promise.closed",
    "fact.extracted",
    "orchestra.act",
    "redact"
  ],
  "ping": true
}
no request sent yet
Response
Press Run to try free — no key needed.
/v1/pbx/webhooks/deliveries PBX Webhook Deliveries 1 credit

List last N outbound webhook deliveries (stub or live) — promise/fact/orchestra/redact/ping.

GET /v1/pbx/webhooks/deliveries?limit=20&webhook_id=. Durable log of Temsor→customer POSTs. HMAC when secret set. Idle $0. No DID sales; Asterisk on customer; KVKK.

Parameters

webhook_id string Filter by webhook id.
limit integer Max deliveries (default 20).
POST/v1/pbx/webhooks/deliveries
Request
{
  "limit": 20
}
no request sent yet
Response
Press Run to try free — no key needed.
/v1/pbx/whisper/suggest PBX Live Whisper Suggest 1 credit

Demo: ≤3 context cards; prefers in-call partial index when present — mock <400ms; idle $0.

POST /v1/pbx/whisper/suggest {call_id, partial_text}. Returns open promises and facts as whisper cards. Mock latency always under 400ms. No Telnyx/DID, no live provider — CTA API only.

Parameters

call_id* string Active call id for agent UI context.
partial_text string Partial transcript / utterance text (no live speech recognition). default ""
POST/v1/pbx/whisper/suggest
Request
{
  "call_id": "call_msp_001",
  "partial_text": "klima yarın"
}
no request sent yet
Response
Press Run to try free — no key needed.

Compliance1

/v1/sanctions/screen Sanctions Screening 5 credits

Screens a name against six official sanctions lists — US OFAC, UN, EU, UK OFSI, Switzerland SECO and Canada — with transliteration-aware fuzzy matching.

Six official lists are reduced to one schema, so a name is checked everywhere at once instead of six integrations. Cyrillic and Arabic names are transliterated, titles and corporate suffixes are stripped, and known spelling families are unified — "Abd al-Rahman", "Abdul Rahman" and "Abdulrahman" reach the same record. Every hit explains itself: which name matched, whether it was an alias the source flags as weak, and how the birth year and country compared. Supply `birthYear` whenever you have it; it removes most false positives. `asOf` screens against the lists as they stood on a past date, which is the question auditors actually ask — note that this is bounded by when our archive begins, reported in `coverage`.

Parameters

name* string Name to screen — person or organisation.
type "any" | "individual" | "entity" | "vessel" | "aircraft" Restrict to one subject type. Narrowing this removes most false positives. default "any"
birthYear integer Known birth year. The single strongest false-positive filter available.
country string Known country or nationality.
sources "OFAC_SDN" | "UN" | "EU"[] Defaults to all lists.
minScore number Score floor. 0.92+ reads as a match, 0.80+ as possible. default 0.75
limit integer default 10
asOf string Screen against the lists as they stood on this date. Limited by when our archive begins.
POST/v1/sanctions/screen
Request
{
  "name": "Saddam Hussein"
}
no request sent yet
Response
Press Run to try free — no key needed.

Time Series2

/v1/series/history Time Series History 2 credits

Returns the accumulated history of public data series with change statistics and a source receipt for every point.

Currently ingesting the Turkish Central Bank daily FX bulletin (`tcmb.usd`, `tcmb.eur`, …), normalised to one unit so JPY-style 100-unit quotes stop biting. Leave `seriesId` empty to list the catalogue. `fillGaps` carries the last value across weekends and holidays; `includeEvidence` attaches the source URL and content hash for every point, so a value can still be defended years later.

Parameters

seriesId string Series id, e.g. `tcmb.usd`. Omit to list the catalogue.
from string Start date (inclusive).
to string End date (inclusive).
limit integer default 365
fillGaps boolean default false
includeEvidence boolean Include source URL and content excerpt for each point. default false
POST/v1/series/history
Request
{}
no request sent yet
Response
Press Run to try free — no key needed.
/v1/tr/fuel/prices Turkey Fuel Prices 2 credits

Petrol, diesel and heating-oil pump prices for all 81 Turkish provinces, including the price in force on any past date.

The distributor publishes today's pump price and a per-district history query, one district and one range at a time. This endpoint answers the question that actually costs money, in a single call: what was diesel in Ankara on 12 March? Pass `asOf` for the price in force on that day — if the distributor did not change prices that day, the previous price is carried forward and `effectiveFrom` says when it started, with `carriedForward: true`. Pass `from`/`to` to get the change events in a window, each with the percentage move. Every figure carries the source URL and a content hash of the page it was read from, so the number can still be defended in an audit years later. Leave `province` empty to list coverage.

Parameters

province string | number Province name or plate code — "Ankara", "istanbul" or 34. Leave empty to list covered provinces.
product "benzin" | "motorin" | "motorin_ekstra" | "gazyagi" | "kalorifer" | "fueloil" | "fueloil_yk" Fuel product. Omitted → every product available for that province.
asOf string Price in force on this date (YYYY-MM-DD). Omitted → latest known price.
from string With `to`: return the price changes in this window.
to string
includeDistricts boolean Adds districts whose pump price differs from the province reference price. default false
POST/v1/tr/fuel/prices
Request
{}
no request sent yet
Response
Press Run to try free — no key needed.

Shipping1

/v1/shipping/identify Tracking Number Identification deterministic 1 credit

Identifies which carrier a tracking number belongs to, validates it where a checksum exists, and returns the canonical tracking link.

Built for order systems that receive numbers from many carriers and have to route the customer to the right tracking page. Turkish carriers mostly use plain numeric ranges that overlap, so a single confident answer is often impossible — this returns a ranked candidate list instead of inventing certainty, because sending a customer to the wrong carrier's page makes them think the parcel is lost. Universal Postal Union (S10) numbers are fully verified: the mod-11 check digit is computed, the service type and origin country are decoded. For formats whose checksum we have not verified against the standard, the result says `not-verified` rather than guessing — a wrong rejection is worse than an honest unknown. Delivery status is deliberately out of scope: Turkish carriers require merchant credentials for that, and scraping their sites would be fragile and against their terms.

Parameters

trackingNumber* string Tracking number, with or without spaces and dashes.
country string Destination or origin country hint, e.g. "TR". Narrows the candidates.
POST/v1/shipping/identify
Request
{
  "trackingNumber": "RR123456785TR"
}
no request sent yet
Response
Press Run to try free — no key needed.

Address1

/v1/tr/address/parse Turkish Address Parser deterministic 1 credit

Splits a free-form Turkish address into neighbourhood, street, building, floor, flat, district, province and postcode.

Handles the abbreviation chaos (Mah./Mh., Cd./Cad., Sk./Sok., No:12/5, K:3 D:7), cross-checks the province against the postcode, repairs misspelled district names against a dictionary, and returns a confidence score. Anything it could not place is listed in `unparsed` — nothing is dropped silently. Built for shipping, checkout and CRM systems that receive Turkish addresses typed by humans.

Parameters

address* string Free-text address.
defaultProvince string Province to assume when the address has none.
POST/v1/tr/address/parse
Request
{
  "address": "Caferağa Mah. Moda Cd. No:12/5 K:3 34710 Kadıköy/İstanbul"
}
no request sent yet
Response
Press Run to try free — no key needed.

Calendar1

/v1/tr/business-days Turkish Business Days deterministic 1 credit

Adds business days or counts them between two dates, accounting for Turkish public and religious holidays including half-day eves.

Ramadan and Sacrifice feasts follow the Hijri calendar and cannot be derived reliably by formula, so announced dates are read from a table; years without an official announcement are returned with `confirmed:false` rather than guessed silently. For delivery promises, SLA clocks, payment terms and shipping estimates.

Parameters

start* string Start date (YYYY-MM-DD).
addDays integer Add/subtract this many business days (not calendar days).
end string If set, count business days between start and this date.
countHalfDaysAsWork boolean Count Arife half-days as working days? default true
POST/v1/tr/business-days
Request
{
  "start": "2026-03-16",
  "addDays": 10
}
no request sent yet
Response
Press Run to try free — no key needed.

Turkey3

/v1/tr/labor Turkish Severance, Notice & Leave deterministic 1 credit

Computes Turkish severance (kıdem), notice (ihbar) and annual-leave entitlement from service dates and the gross wage, using the official ceiling and minimum-wage tables for the given day.

Payroll and HR tools in Turkey chase a parameter that changes every January and July: the severance ceiling, the SGK cap, the minimum wage. This endpoint applies the statutory formulae (Labour Law 4857 arts. 17 and 53, former 1475 art. 14) to those tables. The ceiling is applied to the monthly wage, not the total. Stamp tax (0.759%) is deducted from severance; income tax is not — kıdem is exempt. Notice pay IS taxable; we return the gross and say so, because the actual withholding depends on the employee's cumulative tax base. What this will not tell you: whether the employee is entitled to severance at all. That depends on the reason for termination (retirement, just cause, marriage, military service…). Treating the number as "what is owed" is how you lose at trial.

Parameters

startDate* string Employment start date (YYYY-MM-DD).
endDate* string Termination date (YYYY-MM-DD). Inclusive of this day.
monthlyGross* number Gross monthly wage the severance is based on (giydirilmiş brüt).
asOf string Rate table date. Defaults to endDate.
age integer Employee age at termination — affects annual-leave entitlement (under 18 or 50+).
unusedLeaveDays number Unused annual-leave days, if you also want the unused-leave gross.
POST/v1/tr/labor
Request
{
  "startDate": "2025-08-01",
  "endDate": "2026-08-01",
  "monthlyGross": 33030
}
no request sent yet
Response
Press Run to try free — no key needed.
/v1/tr/tebligat-clock Turkish Service-of-Process Clock deterministic 1 credit

Computes the deemed-received date and the HMK deadline (with holiday shifting) for a Turkish notification, from the date the underlying event actually happened.

Turkish notification law (7201) ties the deadline clock to an event that is not "the date on the letter" — for electronic notification the UETS platform reports send, read AND reached dates, and only the reached date starts the clock (art. 7/a: deemed received 5 calendar days after reaching the address, whether or not it was opened). HMK adds two more rules on top: the day of notification itself does not count (art. 92 — the period starts the next day) and if the computed last day lands on a weekend or a full public/religious holiday, it moves to the next business day (art. 93); a half-day eve (arife) does not shift it. What this will not tell you: whether the notification was itself valid, or what a specific `periodType` (itiraz, temyiz, cevap…) is in days for your case — that number differs by statute and we do not guess it; supply `periodDays` yourself. Only the "hmk" law family is covered so far.

Parameters

type* "electronic" | "physical" | "vekil" | "ilanen" | "last_known_address" Notification method. Determines which event `basisDate` refers to and whether the deemed-received date is same-day or shifted.
lawFamily* "hmk" Body of procedural law the period is computed under. Only "hmk" (Code of Civil Procedure) is supported so far.
basisDate* string The date `basisLabel` describes for this type — for "electronic" this is the date UETS reports the message as reached, not sent or read.
periodDays* integer Length of the statutory or judicial period, in days, counted from `periodStart`.
periodType string Free-text label for the period (e.g. "itiraz", "temyiz"), echoed back only — not mapped to a day count.
ilanenDeemedDays integer Only valid with type "ilanen": number of days the competent authority set for the notice to become deemed received (TK 31), 7-15, default 7. Not the number of days for the underlying period.
hasAttorney boolean Whether the addressee has a registered attorney of record. When true and `type` is not "vekil", a TK 11 warning is added noting that service should have gone to the attorney.
subjectToJudicialRecess boolean Whether this matter is subject to the judicial recess (adli tatil, HMK 104) instead of being exempt. Only affects the result when `lawFamily` is "hmk" and the computed last day falls in the 20 July - 31 August window.
POST/v1/tr/tebligat-clock
Request
{
  "type": "electronic",
  "lawFamily": "hmk",
  "basisDate": "2026-03-16",
  "periodDays": 7,
  "periodType": "itiraz"
}
no request sent yet
Response
Press Run to try free — no key needed.
/v1/tr/vat Turkish VAT & Withholding deterministic 1 credit

Splits a Turkish amount into net, VAT and (optionally) withholding: who pays the seller, who remits the withheld VAT.

For invoice lines and checkout totals that have to show KDV dahil / hariç and, when the parties are in a withholding (tevkifat) situation, the split between what the buyer pays the seller and what the buyer remits to the tax office. Rates are 0, 1, 10 and 20 percent. Withholding is a fraction of the VAT (2/10 through 10/10), or a named code from the GİB partial-withholding list. The 2026 threshold (TRY 12,000 gross) is reported and compared with the amount, but `applies` is always null: whether withholding actually applies depends on the taxpayer status of both parties, which this endpoint does not know. Feeding it a fraction is not a legal opinion.

Parameters

amount* number The amount to tax. See amountIncludesVat.
amountIncludesVat boolean If true, `amount` is the gross (KDV dahil); if false, it is the net/matrah. default false
rate number | number | number | number VAT rate in percent. 0, 1, 10 or 20. default 20
withholding string Withholding fraction such as "5/10", or a code from the list (reklam, tasima, hurda, isgucu…).
POST/v1/tr/vat
Request
{
  "amount": 1000,
  "rate": 20
}
no request sent yet
Response
Press Run to try free — no key needed.

ProductsPackaged endpoint sets for marketplace listing and checkout.

Pricingone key covers every endpoint

Free try on this page → when you need a key, Proceed to pay · API access.

Credits are consumed per call and cache hits are free. Requests without a key run on a narrow per-IP demo quota so you can evaluate before signing up.

The API key is e-mailed the moment payment clears. Upgrades keep the same key, so your integration is never broken.

Want to finish the integration before paying?

Use it from an AI assistantthe same catalogue, exposed as MCP tools

Every endpoint is also published over the Model Context Protocol, so Claude, ChatGPT or your own agent can call it directly — no glue code, no wrapper functions. The assistant sees the same input schemas and the same metering.

Currently 68 tools. New endpoints appear automatically; nothing to update on your side.

claude_desktop_config.json

{
  "mcpServers": {
    "temsor": {
      "url": "https://api.temsor.com/mcp",
      "headers": { "x-api-key": "fk_live_…" }
    }
  }
}

Quickstart

Official client: npm install temsor-api · npmjs.com/package/temsor-api

Node.js

import Client from "temsor-api";

const api = new Client({ apiKey: KEY });
const r = await api.${(() => {
  const first = apis[0];
  return first.slug.split(/[/-]/).map((p, i) => (i === 0 ? p : p[0].toUpperCase() + p.slice(1))).join('');
})()}(${esc(JSON.stringify(apis[0].examples[0]?.input ?? {}))});
console.log(r, r.$meta);

cURL

curl -s https://api.temsor.com/v1/tr/labor \
  -H "content-type: application/json" \
  -H "x-api-key: fk_live_…" \
  -d '{"startDate":"2025-08-01","endDate":"2026-08-01","monthlyGross":33030}'

JavaScript

const res = await fetch("https://api.temsor.com/v1/tr/labor", {
  method: "POST",
  headers: { "content-type": "application/json", "x-api-key": KEY },
  body: JSON.stringify({"startDate":"2025-08-01","endDate":"2026-08-01","monthlyGross":33030})
});
const { data } = await res.json();

Python

import httpx
r = httpx.post("https://api.temsor.com/v1/tr/labor",
    headers={"x-api-key": KEY},
    json={"startDate":"2025-08-01","endDate":"2026-08-01","monthlyGross":33030})
data = r.json()["data"]
temsor API

Small, precise APIs behind one key and one response envelope. New endpoints ship on the same key.

References OpenAPI 3.1MCP manifestService health
Response contract

{ ok, data, meta }

{ ok:false, error }

Tell us what broke

Wrong answer, missing field, an endpoint you wish existed — it reaches a person, not a queue.