API reference / JSON:API
get
/v3/countries/{iso3}One country, in JSON:API
- Operation
v3GetCountry- Authentication
- API key
Request
Parameters
iso3pathrequiredstringResponses
200A JSON:API single-resource document.
metaobjectrequireddataJsonApiCountryResourcerequired400A malformed parameter, or a filter/include/language this endpoint cannot honour. Refused rather than ignored: an ignored filter returns a full answer that looks filtered.
errorsobject[]required401No key, an unknown key, a revoked key, or an inactive tenant.
errorsobject[]required403The key is valid but does not hold `reference:read`.
errorsobject[]required404No such resource.
errorsobject[]requiredExample
curl -X GET https://api.haavisa.com/v3/countries/<iso3> \
-H "Authorization: Bearer $HAAVISA_API_KEY"More in JSON:API
Something unclear? The eligibility guide explains the model behind the answers; the errors guide covers the envelope.