Documentation Index
Fetch the complete documentation index at: https://tonic-ai.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Overview
CreditNexus uses SentinelHub to access satellite imagery for verification workflows, including NDVI analysis, land use classification, and green finance assessments. Code Reference:app/agents/verifier.pyConfiguration:
app/core/config.py (SENTINELHUB_KEY, SENTINELHUB_SECRET)
Prerequisites
- SentinelHub Account: Sign up at https://www.sentinel-hub.com/
- OAuth Credentials: Generate OAuth client ID and secret
- API Access: Enable API access in your account
Step 1: Create SentinelHub Account
- Visit: https://www.sentinel-hub.com/
- Sign up for a free account
- Verify your email address
Step 2: Generate OAuth Credentials
- Log in to SentinelHub: https://www.sentinel-hub.com/
- Navigate to: User Settings → OAuth clients
- Create a new OAuth client:
- Name: CreditNexus (or your preferred name)
- Redirect URI: Leave empty (not needed for API access)
- Copy credentials:
- Client ID (this is your
SENTINELHUB_KEY) - Client Secret (this is your
SENTINELHUB_SECRET)
- Client ID (this is your
Step 3: Configure Environment Variables
Add to your.env file:
SENTINELHUB_SECRET to version control!
Step 4: Verify Configuration
Test the configuration by running a verification workflow:- Upload a credit agreement with a collateral address
- Trigger verification in the Verification Demo
- Check logs for SentinelHub API calls
- Verify satellite imagery is fetched successfully
API Usage
SentinelHub is used automatically by the verification workflow:app/agents/verifier.py
Satellite Data Sources
CreditNexus uses SentinelHub to access:- Sentinel-2: High-resolution multispectral imagery for NDVI analysis
- Sentinel-5P: Coarse-resolution data for methane detection
- Land Use Classification: TorchGeo ResNet-50 for land use analysis
Rate Limits
SentinelHub has rate limits based on your account tier:- Free Tier: Limited requests per month
- Paid Tiers: Higher rate limits
- Cache satellite imagery when possible
- Use appropriate image resolution (lower for faster processing)
- Monitor usage in SentinelHub dashboard
Troubleshooting
Issue: “Authentication failed”
Solutions:- Verify
SENTINELHUB_KEYandSENTINELHUB_SECRETare correct - Check credentials haven’t expired
- Verify OAuth client is active in SentinelHub dashboard
Issue: “No imagery available”
Solutions:- Check date range (imagery may not be available for all dates)
- Verify location coordinates are correct
- Try a different date range
- Check cloud coverage (high cloud coverage may prevent imagery)
Issue: “Rate limit exceeded”
Solutions:- Implement caching for frequently accessed locations
- Reduce image resolution
- Upgrade SentinelHub account tier
- Implement request throttling
Cost Considerations
SentinelHub pricing:- Free Tier: Limited requests per month
- Paid Tiers: Pay-per-use or subscription models
- Use free tier for development and testing
- Cache imagery to reduce API calls
- Use appropriate resolution (lower = cheaper)
Additional Resources
Last Updated: 2026-01-14
Code Reference:
app/agents/verifier.py, app/core/config.py