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#
/api-keysBearer token| Body field | Rules |
|---|---|
name | Required string, 2-80 characters; no additional body properties. |
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#
/api-keysBearer tokencurl --request GET 'https://api.lookupnest.com/api/v1/api-keys' \
--header "Authorization: Bearer $LOOKUPNEST_ACCESS_TOKEN" \
--fail-with-bodyThe documented metadata includes configured domain allowlists and latest caller IP/origin information. It is not a secret-recovery endpoint.
Rotate a key#
/api-keys/{id}/rotateBearer tokenUse 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.
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-bodyTreat rotation as a state-changing operation. Do not automatically replay it after an ambiguous timeout.
Activate or deactivate#
/api-keys/{id}/statusBearer tokencurl --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#
- Give each integration a meaningful name and an appropriate restriction set.
- Store secrets server-side and exclude them from logs and repositories.
- Record which deployment uses each key.
- Coordinate rotation and deactivation with those deployments.
- Review account usage after a change.