Secret Keys
Secret keys authenticate your project from server-side environments (Node.js, Python, Ruby, etc.). Each key you create in your dashboard is assigned to a project.
- 1
Have an Account
Create your Ip2Geo account or login to your existing account if you haven’t already. You can do that by visiting the Ip2Geo Dashboard. Once logged in, select the project you want to generate a secret key for from your dashboard.
- 2
Create a Secret Key
Navigate to the Keys section within your project. Click on “Create Key”, provide a name for your key, and click “Generate Key” to create your secret key. From a terminal,
ip2geo keys create “My key”does the same with the CLI. The owner and admins of a project can create keys; see Team Members. - 3
Authenticate Your Project
Use the secret key to authenticate your project when using the SDK or making direct API calls from your server.