Authentication
SLAAAD uses API keys to authenticate requests. Depending on where you are calling the API, you must use the appropriate key type to ensure security.
Key Types
Public Key
pk_test_...
Designed for frontend environments. Use this in your SDK initialization and client-side fetch calls. Only has read-access to public terrain data.
Secret Key
sk_test_...
Admin access. Use only on your backend servers. Allows modifying terrain settings, approving acquisitions, and managing projects.
Implementation
All API requests must include the x-api-key header.
cURL Example
curl -X GET https://api.slaaad.com/v1/public/terrains/8 \ -H "x-api-key: pk_test_your_public_key"
Never check your Secret Keys into version control. Use environment variables (.env) to manage keys in your production environment.
Last updated: April 2026