Get residency attestation
Get user's current resolved geo-attestation for the jurisdiction derived from the request's IP geolocation.
Header Params
-
user-idstring requiredUser id of the user making the request.
Responses
200
OK
Response Body
object
-
geoAttestationobject requiredThe user's resolved geo-attestation for the jurisdiction derived from their request IP.
countryis the ISO 3166-1 alpha-3 code resolved from the request's geolocation and is always present;subdivisionis the bare ISO 3166-2 subdivision code (e.g.NY) and is omitted for country-level jurisdictions.not_attestedcovers both a user who has never attested for the jurisdiction and one whose latest attestation has expired — in both casesattestedAtandexpiresAtare omitted, since no attestation is currently in force.geoAttestation object
-
countrystring requiredISO 3166-1 alpha-3 code of the request's IP-derived jurisdiction. -
subdivisionstringBare ISO 3166-2 subdivision code (e.g.NY); omitted for country-level jurisdictions. -
attestationStatusstring enum requiredThe resolved attestation state for the jurisdiction.not_attestedattested_unrestrictedattested_restricted -
attestedAtstring date-timeWhen the winning attestation was recorded; omitted whilenot_attested. -
expiresAtstring date-timeWhen the winning attestation stops being valid; omitted whilenot_attested.
-
401
Unauthorized
Response Body
object
-
errorNamestring required -
errorstring required
403
Forbidden
Response Body
object
-
errorNamestring required -
errorstring required
422
Unprocessable Entity
Response Body
object
-
errorNamestring required -
errorstring required
500
Internal Server Error
Response Body
object
-
errorNamestring required -
errorstring required