# LetterStream API Integration

## Credentials
- API_ID: rzv56x1v
- API_KEY: 5ezy56k2ny7a8vx14u
- Account email: info@itpropartner.com
- Mode: Automation (generate PDF + CSV → certified mail with tracking + delivery confirmation)

## API Access Process
- API is NOT visible by default in the account dashboard
- Must email support@letterstream.com requesting Automation mode
- Include: company overview, use case, confirmation of dev resources
- Once approved, API documentation appears under "My Account" in the dashboard

## Cost
- Single certified letter: ~$8.34 (varies by page count + postage type)
- Pay-as-you-go, no monthly minimum

## Integration (DRE Portal)
- DRE generates demand letter as PDF in the case management system
- LetterStream API sends the letter with tracking + return receipt
- Delivery confirmation webhook updates case status automatically

## Pitfalls
- API credentials do NOT work against generic API endpoints before approval
- The documentation is account-dashboard-gated — no public URL
- All 404 responses before account approval is normal
