Get current IP
GET
/api/user/current-ip
const url = 'https://hitkeep.com/api/user/current-ip';const options = {method: 'GET', headers: {cookie: 'hk_token=<hk_token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://hitkeep.com/api/user/current-ip \ --cookie hk_token=<hk_token>Returns the resolved client IP and single-host CIDR for quick exclusion setup.
Authorizations
Section titled “Authorizations ”Responses
Section titled “ Responses ”Current IP
Media type application/json
object
cidr
required
string
ip
required
string
Example generated
{ "cidr": "example", "ip": "example"}