fix: update to AhaSend API v1 key
- Switch from API v2 to API v1 key - Simplify payload format for v1 API - Update documentation with domain verification requirement - API Key v1: pxZ2d30PIqTl6Uj7p6g3o0uez2AacMaOstKCTcj9MTIrNEBvhikgvyAARUTvXAcA Note: Domain beachlitter.ie likely needs verification in AhaSend dashboard
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
# AhaSend Email Integration Status
|
||||
|
||||
## Current Status: ⚠️ Configuration Issue
|
||||
## Current Status: ⚠️ Domain Verification Required
|
||||
|
||||
The notification system has been successfully implemented with AhaSend integration, but the API is currently returning "invalid credentials" errors.
|
||||
The notification system has been successfully implemented with AhaSend integration, but the API is returning "invalid credentials" errors. This is likely because the sending domain needs to be verified.
|
||||
|
||||
## Configuration
|
||||
|
||||
### Credentials (Configured)
|
||||
- **Account ID**: `8a14f9a5-6e6d-47c9-b5d6-a687265b36a3`
|
||||
- **Secret Key**: `aha-sk-A0c9WOA8cs3RpvkAGwHOP9o6pHx-gLTUki1gSWVeC_6kd86-Npn077zta-rvg9oo`
|
||||
- **API Endpoint**: `https://api.ahasend.com/v1/email`
|
||||
- **API Key v1**: `pxZ2d30PIqTl6Uj7p6g3o0uez2AacMaOstKCTcj9MTIrNEBvhikgvyAARUTvXAcA`
|
||||
- **API Endpoint**: `https://api.ahasend.com/v1/messages`
|
||||
|
||||
### Environment Variables (`.env`)
|
||||
```env
|
||||
@@ -37,12 +37,31 @@ HTTP Status: `403 Forbidden`
|
||||
4. ✅ Verified payload format matches API expectations
|
||||
5. ✅ Tested different endpoint paths
|
||||
|
||||
## Possible Causes
|
||||
## Most Likely Cause: Domain Verification
|
||||
|
||||
1. **API Key Not Activated**: The secret key may need to be activated in the AhaSend dashboard
|
||||
2. **Domain Verification Required**: The sending domain (`beachlitter.ie`) may need to be verified
|
||||
3. **Account Status**: The account may need additional setup or verification
|
||||
4. **API Documentation**: The API format may differ from what we're using
|
||||
**The sending domain `beachlitter.ie` needs to be verified in AhaSend before emails can be sent.**
|
||||
|
||||
### How to Verify Domain
|
||||
|
||||
1. Go to https://dash.ahasend.com/
|
||||
2. Navigate to **Domains** section
|
||||
3. Click **"Add Domain"**
|
||||
4. Enter `beachlitter.ie`
|
||||
5. Add the required DNS records (SPF, DKIM, etc.)
|
||||
6. Wait for verification (usually a few minutes)
|
||||
|
||||
### Alternative: Use a Verified Domain
|
||||
|
||||
If you don't own `beachlitter.ie`, you can:
|
||||
1. Use a domain you own and have access to DNS
|
||||
2. Or use a test email like `noreply@yourdomain.com`
|
||||
3. Update `FROM_EMAIL` in `.env` to match
|
||||
|
||||
## Other Possible Causes
|
||||
|
||||
1. **API Key Not Activated**: The API key may need time to activate
|
||||
2. **Account Status**: The account may need additional setup
|
||||
3. **API Format**: The payload format may need adjustment
|
||||
|
||||
## Next Steps
|
||||
|
||||
|
||||
Reference in New Issue
Block a user