email-serverr-cli
Go client library for the Email Server API.
Install
Quick Start
Management Client (ServiceAuth)
Mail Sending Client (AppAuth)
Authentication
| Mode |
Constructor |
Header |
Use Case |
| ServiceAuth |
NewServiceClient |
Authorization: Bearer <token> |
Management APIs |
| AppAuth |
NewAppClient |
X-App-Key + X-App-Secret |
Mail sending |
API Reference
Mail (AppAuth)
| Method |
Description |
SendMail |
Send an email |
Accounts (ServiceAuth)
| Method |
Description |
CreateAccount |
Create mail account |
ListAccounts |
List accounts with filters |
GetAccount |
Get account details |
UpdateAccount |
Update account |
DeleteAccount |
Delete account |
ResetAccountSecret |
Reset app secret |
Signatures (ServiceAuth)
| Method |
Description |
CreateSignature |
Create signature |
ListSignatures |
List signatures with filters |
GetSignature |
Get signature details |
UpdateSignature |
Update signature |
DeleteSignature |
Delete signature |
AuditSignature |
Approve or reject signature |
Mail Logs (ServiceAuth)
| Method |
Description |
ListMailLogs |
List mail logs with filters |
GetMailLog |
Get mail log detail with body |
GetMailStats |
Get status statistics |
Quotas (ServiceAuth)
| Method |
Description |
CreateQuota |
Create quota |
ListQuotas |
List quotas with filters |
GetQuotaSummary |
Get quota summary for account |
UpdateQuota |
Update quota |
DeleteQuota |
Delete quota |
Channels (ServiceAuth)
| Method |
Description |
CreateChannel |
Create channel |
ListChannels |
List channels with filters |
UpdateChannel |
Update channel |
DeleteChannel |
Delete channel |
Sender Accounts (ServiceAuth)
| Method |
Description |
CreateSender |
Create sender under channel |
ListSendersByChannel |
List senders for channel |
UpdateSender |
Update sender |
DeleteSender |
Delete sender |
Audits (ServiceAuth)
| Method |
Description |
ListAuditPending |
List pending audit items |
GetAuditPendingDetail |
Get pending item detail |
ApproveAudit |
Approve single item |
RejectAudit |
Reject single item |
BatchApproveAudit |
Batch approve |
BatchRejectAudit |
Batch reject |
ListAuditLogs |
List audit history |
GetAuditStats |
Get audit statistics |
Audit Rules (ServiceAuth)
| Method |
Description |
CreateAuditRule |
Create rule |
ListAuditRules |
List all rules |
GetAuditRule |
Get rule details |
UpdateAuditRule |
Update rule |
DeleteAuditRule |
Delete rule |
UpdateAuditRuleStatus |
Toggle rule status |
TestAuditRule |
Test rules against sample |
Queue (ServiceAuth)
| Method |
Description |
GetQueueStatus |
Get queue lengths |
ListQueuePending |
List pending queue items |
CancelQueueItem |
Cancel queued mail |
RetryQueueItem |
Retry failed mail |
Health Checks (ServiceAuth)
| Method |
Description |
ListCheckLogs |
List check logs |
GetCheckSummary |
Get sender health summary |
TriggerCheck |
Trigger health check |
Error Handling
Options