Documentation version: Latest (v1)

API endpoint

Send template test email

Queues a safe test email for account health checks.

POST/api/v1/templates/send-test

Auth: Bearer API key with mail_api scope

Required headers

HeaderRequiredValueDescription
AuthorizationYesBearer <token>API key, server OTP key, or public OTP token depending on endpoint.
Content-TypeYesapplication/jsonAll POST requests expect JSON payloads.

Request body

FieldTypeRequiredDescription
tostring | string[]YesTest recipient(s).
priority'URGENT' | 'NORMAL'NoQueue priority.
senderEmailIdstringNoVerified sender override.

Code examples (all supported languages)

Snippets use placeholder tokens. Replace them with real credentials from your dashboard.

curl -X POST "https://risumail.risu.in/api/v1/templates/send-test" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"to":["ops@example.com"]}'

Response schema

Canonical schema inferred from the documented success payload. Copy this block when generating typed clients.

{
  "type": "object",
  "required": [
    "success",
    "data"
  ],
  "properties": {
    "success": {
      "type": "boolean"
    },
    "data": {
      "type": "object",
      "required": [
        "id",
        "status"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "status": {
          "type": "string"
        }
      }
    }
  }
}

Success response example

{
  "success": true,
  "data": {
    "id": "mail_01J...",
    "status": "QUEUED"
  }
}

Common error cases

StatusCodeWhen
400INVALID_INPUTMissing recipient.
403SENDER_NOT_VERIFIEDsenderEmailId is not usable.
429RATE_LIMITEDRate limit reached.

Implementation notes

  • This endpoint does not require a templateId; payload is intentionally minimal for smoke tests.