Quickstart
Three steps: grab an API key, make a call, parse the response. Everything else is detail.
1. Get an API key
Create a free account. The key is shown exactly once at creation, so store it in a secret manager.
Create account2. Make your first call
Every endpoint expects an Authorization: Bearer YOUR_API_KEY header. There is no separate sandbox: the Free plan is enough for testing.
curl https://api.posty.ro/v1/addresses/verify \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"address": {
"locality": "Cluj-Napoca",
"county_code": "CJ",
"postal_code": "400114",
"street": "str. Memorandumului",
"house_number": "28"
}
}'Prefer the browser? The Playground in the dashboard sends real requests with a key you paste. Those calls count toward your organization's usage like any other.
3. Understand the response
A successful call returns JSON that matches the endpoint's schema; the sample below is a Verify response. Every response, success or error, carries an X-Posty-Request-Id header, and error bodies repeat it as error.request_id. Quote it whenever you open a ticket.
{
"verdict": "verified",
"confidence": 1,
"input": {
"locality": "Cluj-Napoca",
"county_code": "CJ",
"postal_code": "400114",
"street": "str. Memorandumului",
"house_number": "28"
},
"normalized": {
"locality": "Cluj-Napoca",
"county": "Cluj",
"county_code": "CJ",
"postal_code": "400114",
"street": "str. Memorandumului",
"house_number": "28"
},
"corrections": [],
"unmatched": [],
"source": "gov",
"metadata": {
"source_versions": {
"baseline": "infocod-2016-05"
}
}
}4. Next steps
Verify, autocomplete, look up postal codes. The rest of the docs cover each endpoint in detail.