Sending integration examples

cURL, PHP, Python and JavaScript snippets for the Mailiqo sending API with placeholder values and the expected response.

19 B / 1.00 MiB

Keep the API key in an environment variable; the examples read MAILIQO_API_KEY.

Snippet

curl -X POST https://api.mailiqo.com/v1/mailing/send \
  -H "Content-Type: application/json" \
  -H "X-API-KEY: YOUR_API_KEY" \
  -d '{"from":"[email protected]","to":["[email protected]"],"subject":"Your access code","body_txt":"Your code is 123456"}'
Expected response
{
  "status": "success",
  "data": {
    "uuid": "0c4ab8dc-2f1e-4b9a-8c3d-5e6f7a8b9c0d",
    "sent_to": [{"email": "[email protected]", "name": null}],
    "rejected_recipients": []
  }
}

Full request and response contracts, webhooks and SMTP settings: Developer documentation

Scope and limits

  • Static examples with placeholders; no request is executed and no API key is requested.
  • The documentation is the reference for the full contract.

Related tools and resources

Format or minify JSON (webhook events, API responses) with the exact line and column of any parsing error.

Developer utilities

SHA-256/384/512 (and SHA-1 for legacy comparisons) digests of a text, or an HMAC with a secret you provide, in hex or Base64.

Developer utilities

Reproducible synthetic rows (names, example.com addresses, amounts, dates, message IDs) as JSON or CSV for tests.

Developer utilities
Mailiqo

Integrating email in your code?

The Mailiqo developer documentation covers the sending API, SMTP settings, webhooks and DNS setup.

Read the documentation