Quick Start
Get started with the HOLE Foundation API in under 5 minutes.
Prerequisites
- Node.js 18+ (for TypeScript) or Python 3.8+ (for Python)
- Auth0 credentials (contact api@theholefoundation.org)
- Basic knowledge of REST APIs
Step 1: Install SDK
Step 2: Get Access Token
For this quickstart, weβll use the Machine-to-Machine flow:
Save the access_token from the response.
Step 3: Initialize Client
Step 4: Make Your First API Call
Letβs search for information about FOIA exemptions:
Step 5: Explore Transparency Data
List all US jurisdictions with transparency laws:
Step 6: Chat with AI Assistant
Get answers to legal questions:
Complete Example
Hereβs a complete working example that ties everything together:
Next Steps
Now that youβve made your first API calls, explore more:
Learn About Authentication
- Authentication Guide - OAuth, M2M, token management
- Security Best Practices - Keep your credentials safe
Explore API Features
- Vector Search Guide - Advanced search techniques
- Transparency Data Guide - Working with laws and statutes
- FOIA Dashboard Guide - Managing FOIA requests
- AI Chat Guide - Using the legal research assistant
SDK Documentation
- TypeScript SDK Reference - Complete TypeScript guide
- Python SDK Reference - Complete Python guide
API Reference
- API Reference - Complete endpoint documentation
Need Help?
- π§ Email: api@theholefoundation.org
- π¬ Discord: Join our community
- π Issues: GitHub Issues
- π Documentation: Full docs
Code Examples
Browse complete example projects: