Authentication
Learn how to authenticate with the Lattice API.
Lattice uses API keys for authentication. Each key is scoped to a workspace and has specific permissions.
Creating API Keys
Generate API keys from your dashboard under Settings → API Keys.
Using API Keys
javascript
// In your code
const client = new LatticeClient({
apiKey: process.env.LATTICE_API_KEY
});
// Or in HTTP headers
// Authorization: Bearer sk_live_xxxxxKey Types
- Live Keys (sk_live_) - For production use
- Test Keys (sk_test_) - For development, no billing
- Restricted Keys - Limited permissions for specific use cases
Keep your API keys secure. Rotate them immediately if compromised.