Understand what is being restricted#
Domain rules refer to browser-origin domains. IP rules refer to caller IP addresses. These are access restrictions on a key; adding a domain is not a DNS ownership-verification procedure.
Set allowed domains#
/api-keys/{id}/domainsBearer token| Field | Rules |
|---|---|
domains | Required array; schema maximum 50 entries. Account-plan limits can be lower. |
| Each domain | String up to 300 characters. Hostname only, optionally prefixed by http:// or https://; no port or path. |
curl --request PUT 'https://api.lookupnest.com/api/v1/api-keys/00000000-0000-4000-8000-000000000001/domains' \
--header "Authorization: Bearer $LOOKUPNEST_ACCESS_TOKEN" \
--header 'Content-Type: application/json' \
--data '{"domains":["app.example.com","admin.example.com"]}'Wildcard matching, subdomain inheritance and empty-list semantics are not defined by the published schema. Do not assume them without verification.
Set allowed caller IPs#
/api-keys/{id}/ipsBearer tokencurl --request PUT 'https://api.lookupnest.com/api/v1/api-keys/00000000-0000-4000-8000-000000000001/ips' \
--header "Authorization: Bearer $LOOKUPNEST_ACCESS_TOKEN" \
--header 'Content-Type: application/json' \
--data '{"ips":["192.0.2.10","2001:db8::10"]}'The intended schema, recovered from a misplaced definition in the source contract, is an ips array of IPv4/IPv6 address strings with a schema maximum of 50. CIDR ranges are not declared. See contract notes for the normalization recorded in the downloadable snapshot.
Investigate origin denials#
- Check the exact configured hostname rather than an application URL containing a path.
- Check whether the lookup request carries the expected Origin header.
- Check caller egress addresses when IP restrictions are involved.
- Distinguish a restriction denial from an invalid or inactive credential.
- Do not move production keys into browser code to bypass a server integration problem.