Skip to documentation
Developer documentationAPI v1.0.0OpenAPI ↓
DocsIntegration controls

Integration controls

API-key lifecycle

Create, list, rotate and deactivate keys without confusing key secrets with account tokens.

API 1.0.0Contract reviewed 9 Nov 2026

Account-scoped management#

All key-management operations require an account Bearer token. Use the portal for interactive key administration. A lookup API key cannot administer other keys.

Create a key#

POST/api-keysBearer token
Body fieldRules
nameRequired string, 2-80 characters; no additional body properties.
Create key
curl --request POST 'https://api.lookupnest.com/api/v1/api-keys' \
  --header "Authorization: Bearer $LOOKUPNEST_ACCESS_TOKEN" \
  --header 'Content-Type: application/json' \
  --data '{"name":"production-signup-service"}'

List key metadata#

GET/api-keysBearer token
List keys
curl --request GET 'https://api.lookupnest.com/api/v1/api-keys' \
  --header "Authorization: Bearer $LOOKUPNEST_ACCESS_TOKEN" \
  --fail-with-body

The documented metadata includes configured domain allowlists and latest caller IP/origin information. It is not a secret-recovery endpoint.

Rotate a key#

POST/api-keys/{id}/rotateBearer token

Use the UUID of a key owned by the authenticated account. The portal warns that rotation stops the current key immediately. Update every deployment that uses the key and verify the intended callers after rotating.

Rotate key
curl --request POST 'https://api.lookupnest.com/api/v1/api-keys/00000000-0000-4000-8000-000000000001/rotate' \
  --header "Authorization: Bearer $LOOKUPNEST_ACCESS_TOKEN" \
  --fail-with-body

Treat rotation as a state-changing operation. Do not automatically replay it after an ambiguous timeout.

Activate or deactivate#

PATCH/api-keys/{id}/statusBearer token
Deactivate key
curl --request PATCH 'https://api.lookupnest.com/api/v1/api-keys/00000000-0000-4000-8000-000000000001/status' \
  --header "Authorization: Bearer $LOOKUPNEST_ACCESS_TOKEN" \
  --header 'Content-Type: application/json' \
  --data '{"active":false}'

The body requires a boolean active. A 404 means the key was not found for that account; do not assume ownership across accounts.

Deployment checklist#

  1. Give each integration a meaningful name and an appropriate restriction set.
  2. Store secrets server-side and exclude them from logs and repositories.
  3. Record which deployment uses each key.
  4. Coordinate rotation and deactivation with those deployments.
  5. Review account usage after a change.

Need help with this integration?

Contact developer support ↗