API Reference

The SDKs wrap the public PING8 Send API routes.

Base URL

Default:

https://mail.gitdate.ink

Accepted:

https://mail.gitdate.ink
https://mail.gitdate.ink/api

Both resolve to /api/batch_mail/api/....

Single Send

POST /api/batch_mail/api/send
X-API-Key: YOUR_API_KEY
Content-Type: application/json

Request:

{
  "recipient": "user@example.com",
  "addresser": "noreply@example.com",
  "attribs": {
    "first_name": "Ada"
  }
}

addresser and attribs are optional.

Batch Send

POST /api/batch_mail/api/batch_send
X-API-Key: YOUR_API_KEY
Content-Type: application/json

Request:

{
  "recipients": ["ada@example.com", "grace@example.com"],
  "addresser": "noreply@example.com",
  "attribs": {
    "campaign": "launch"
  }
}

Envelope

PING8 responses use the standard server envelope:

{
  "success": true,
  "code": 0,
  "msg": "success",
  "data": {}
}

SDK result models tolerate missing or nullable response fields and convert them into safe defaults.

Send Result Fields

FieldMeaning
acceptedRequest was accepted for queueing
statusSDK/API status text
api_log_idAPI log row identifier
message_idEngine/provider message identifier when available
engineSelected delivery engine
injection_statusInjection lifecycle state
delivery_statusDelivery lifecycle state

Batch sends return accepted, status, message_ids, engine, injection_status, and delivery_status.