Keys / IPinfo
IPINFO_TOKEN
The IPinfo access token your app looks up IP address data with. The free IPinfo Lite plan has no request limit for country and ASN data.
- Expires
- the docs don't say
- API
- none; dashboard only
Get it
Create one on ipinfo.io/dashboard/token. The steps aren't recorded yet.
Set it
IPINFO_TOKEN=...
IPinfo's official libraries take the token from your app; their examples pass IPINFO_TOKEN in. Over HTTP, send it as token, a Bearer token or the basic-auth username. Or keep it out of .env with keypin: keypin run -- npm run dev
Replace it
- IPinfo's docs don't say how to replace a token. Your token is on the API token page of the dashboard.
- If you get a new token, set the same allowed domains and IP addresses on it, then deploy it everywhere that reads
IPINFO_TOKEN. - Check that requests succeed with the new token.
Set rotate_every on the key in keypin.toml and a rotated date on its vault item, and keypin status shows when it's due.