Skip to content
LookupNest

API-Key Security: Rotation, Domain Rules & IP Restrictions

An API key represents access to your account and its usage allowance. Treat key handling as part of your integration design: decide where credentials are stored, which environments can use them and what your team will do if a key is exposed.

Keep credentials out of public code

Store integration credentials on the server or in an appropriate secret-management system. Do not paste production keys into a landing page, a public repository, browser analytics or a support ticket.

Separate credentials by integration where your plan allows it. A meaningful key name helps you identify the service or environment that uses it when reviewing usage or responding to an incident.

Use restrictions as an additional control

LookupNest API configuration provides allowed-domain and allowed-IP controls per key. Plan limits determine how many entries and keys you can configure.

Review these restrictions against your deployment before enabling them. A domain rule is not a substitute for credential secrecy, and its enforcement should be checked against the request context expected by the API. Do not assume that adding a domain proves DNS ownership.

Plan rotation before an incident

The portal supports API-key rotation. Its confirmation states that the current key stops working immediately. This means rotation is an operational change, not just a new value to copy later.

  • Identify every deployment that uses the key.
  • Choose an update window that matches your integration requirements.
  • Update the stored credential and verify a request from the intended environment.
  • Inspect logs for authentication failures after the change.
  • Remove exposed copies from files, notes and deployment history where possible.

Make failures visible

Do not retry every failed request in the same way. Authentication problems, input errors, usage limits and temporary service failures need different handling. Follow the documented contract for your integration rather than assuming all non-success responses are retryable.

Use your account activity to correlate request status, credit charges and timing. Keep credentials out of the logs you share with support.

Review limits when your deployment changes

New server addresses, additional domains and separate staging environments can change the restrictions your integration needs. Check key limits and allowed entries before moving traffic.

Use the Features page for the platform overview and read the developer documentation for authentication, endpoint references and operational guidance.