Environments & Headers
Seamlessly switch between Live and Sandbox testing environments.
Updated: July 20261 min read
Live vs Sandbox Modes
AddressValid provides isolated environment execution modes to support testing and staging deployments without modifying target URLs:
- Live Environment: Access with live keys (
sk_live_...). Interacts directly with spatial PostgreSQL clusters, PostGIS, and OpenSearch. - Sandbox Environment: Pass header
x-environment: sandboxor use a sandbox key (sk_test_...). Uses ultra-fast memory stubs and returns mock data instantly.
1234GET /v1/address/autocomplete?query=Allen+Avenue HTTP/1.1 Host: api.addressvalid.io Authorization: Bearer sk_live_key x-environment: sandbox
Was this documentation page helpful?
Your feedback helps us continuously improve our developer docs.