Record residency attestation
Attest whether the user is a citizen or resident of their current IP-derived jurisdiction.
Header Params
-
user-idstring requiredUser id of the user making the request.
Body Params
object
-
countrystring requiredISO 3166-1 alpha-3 code of the jurisdiction the user is attesting for. Must match the request's IP-derived country. -
subdivisionstringBare ISO 3166-2 subdivision code (e.g.NY) of the jurisdiction the user is attesting for. Must match the request's IP-derived subdivision; omit only for country-level jurisdictions. -
isRestrictedIndividualboolean requiredThe user's answer to the "Restricted Individual" question for the jurisdiction.
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
409
Conflict
Response Body
object
-
errorNamestring required -
errorstring required -
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.
-
422
Unprocessable Entity
Response Body
object
-
errorNamestring required -
errorstring required
500
Internal Server Error
Response Body
object
-
errorNamestring required -
errorstring required