Reference

Changelog

Changes to the public API, newest first. The API is pre-1.0, so a breaking change can ship in /v1; those are flagged here. The OpenAPI spec (version 0.2.0) is the full contract.

  1. Breaking

    Spend cap and per-organization webhook secrets

    • Paid plans can set a monthly overage cap under Billing. Once it is reached, calls return 402 spend_cap_reached until the next period or until the cap is raised.
    • Webhooks are now signed with your organization's own secret (whsec_..., Settings → Webhooks) instead of a shared one. The X-Posty-Signature format is unchanged, but your receiver must switch to your organization's secret.
    • batch.failed is now actually sent when a job fails; before, only batch.completed was.
  2. Batch limits

    • An organization can have at most 5 batch jobs queued or processing; a further submit gets 429 rate_limit_exceeded with Retry-After.
    • A CSV row over 64 KiB or an address field over 256 characters fails the job with invalid_csv_format; a file server that stalls for 30 seconds fails it with file_fetch_failed.
  3. OpenStreetMap as a second data source

    • OpenStreetMap is a per-organization setting (on by default) with a per-request override: osm on autocomplete, options.osm on verify and batch.
    • Every result says where it came from via source (gov or osm); batch CSVs get a trailing source column. X-Data-Attribution adds the ODbL text only when a result came from OSM.
  4. Breaking

    Scopes, allowlists, closed bodies, idempotency and new endpoints

    • Key scopes are enforced: a key without the route's scope gets 403 insufficient_scope. Allowed origins and IPs are enforced too (403 origin_not_allowed, 403 ip_not_allowed).
    • Request bodies are closed: unknown fields and data after the JSON value return 400 invalid_body instead of being ignored.
    • POST /v1/addresses/batch accepts Idempotency-Key (24 hours; a replay returns the original job, a different body is 422 idempotency_key_reused).
    • New: GET /v1/addresses/batch (job list, cursor pagination), GET /v1/counties and GET /v1/localities/{siruta} (billed like lookups, with ETag and 304). Batch file_url is validated at submit (400 invalid_parameter).
  5. v0.2.0Breaking

    API contract cleanup

    • A batch submit with exhausted quota returns 402 quota_exceeded. Usage reads and batch polling no longer count toward quota.
    • An out-of-range limit returns 400 invalid_parameter instead of being clamped (autocomplete 1-25, postal-code search 1-500).
    • Error codes renamed (unauthorized → missing_credentials or invalid_api_key; invalid_request on postal search → invalid_body, missing_locality and others). Error.code is now a closed enum.
    • New X-Data-Attribution header (with Link: rel="license"); X-Cache: MISS now appears on cache misses. house_number on postal-code search is a string; the geolocation field was removed from the verify response (it was never returned).

© 2026 posty.ro. Posty is operated by Gurulabs SRL, Str. Emile Zola nr. 1, et. III, ap. 6, 400112 Cluj-Napoca, Cluj county, Romania. Trade Register no. J2017005457128, tax ID RO38156938, EUID ROONRC.J2017005457128. Contact: support@posty.ro. Terms of Service · Privacy Policy · Cookies