Skip to main content

Official SDKs

Posta provides official client libraries for three languages. All SDKs offer the same core functionality:

MethodDescription
SendEmailSend a single email with HTML/text, attachments, and headers
SendTemplateEmailSend an email using a pre-defined template
SendBatchSend batch emails to multiple recipients
GetEmailStatusCheck delivery status by email UUID

Available SDKs

LanguagePackageMin Version
Gogithub.com/goposta/posta-goGo 1.25+
PHPgoposta/posta-phpPHP 8.1+
Javacom.github.goposta:posta-javaJava 11+

Error Handling

All SDKs provide typed API errors that include:

  • HTTP status code — The response status (e.g., 400, 401, 429)
  • Error info — Structured error details with code and message fields

Response Envelope

All API responses use a standard envelope:

{
"success": true,
"data": { ... }
}

Error responses:

{
"success": false,
"error": {
"code": "validation_error",
"message": "Invalid email address",
"error": "to[0]: invalid format"
}
}