PAY HERO DOCS
  • Introduction-Pay Hero Developer APIs
  • Creating Account
  • Authorization
  • GET: Service Wallet Balance
  • GET: Payments Wallet Balance
  • POST: Service Wallet Top Up
  • POST: Initiate MPESA STK Push Request
  • Payment Button
  • Lipwa Link
  • POST: Pay Hero Wallet- Withdraw To Mobile
  • GET: Account Transactions
  • GET: Transaction Status
  • WooCommerce Plugin
    • Plugin Installation
  • Shopify
  • Videos
  • Other Integrations
  • Email API Reference
    • Register SMTP
    • Send Email
    • Mail status
  • WhatsApp API Reference
    • Introduction
    • Getting Started
    • Send API Whats App Text
    • Bulk WhatsApp API Messaging
    • Bulk WhatsApp Using UI/CSV File
Powered by GitBook
On this page

Was this helpful?

  1. Email API Reference

Register SMTP

Register your SMTP credentials

PreviousEmail API ReferenceNextSend Email

Was this helpful?

Register Credentials

post

Register Mailer

This endpoint allows you to register a mailer with the provided SMTP configuration.

Request Body

  • api_username (string): Your Pay Hero API username for authentication.

  • smtp_host (string): The SMTP host for the mailer configuration.

  • smtp_username (string): The SMTP username for authentication.

  • smtp_password (string): The SMTP password for authentication.

  • smtp_port (string): The SMTP port for the mailer configuration.

Response

  • id (string): The ID of the registered mailer.

  • message (string): A message indicating the status of the registration process.

Example:

{
  "id": "",
  "message": ""
}

Body
objectOptionalExample: {"api_username":"cQRGoMOqwBv94WB","smtp_host":"host.com","smtp_username":"send@host.com","smtp_password":"&!password^Frx1","smtp_port":"465"}
Responses
200
OK
application/json
Responseobject
403
Forbidden
application/json
post
POST /mailer/register HTTP/1.1
Host: applet.payherokenya.com
Content-Type: application/json
Accept: */*
Content-Length: 141

{
  "api_username": "cQRGoMOqwBv94WB",
  "smtp_host": "host.com",
  "smtp_username": "send@host.com",
  "smtp_password": "&!password^Frx1",
  "smtp_port": "465"
}
{
  "id": "2",
  "message": "Credentials registered successfully"
}