RevKeen Docs
Api reference

Send a message

Send a direct message to a customer via email, SMS, or WhatsApp


Related endpoints

  • GET /comms/threads — List conversation threads
  • GET /comms/threads/{threadId}/messages — List messages in a thread

Common errors

  • 400 invalid_request — malformed payload or failed validation.

Idempotency

Pass an Idempotency-Key header (UUID v4 recommended) to make retries safe. Keys are valid for 24 hours; see the idempotency guide.

POST
/comms/send
x-api-key<token>

Your RevKeen API key (powered by Unkey). Get it from Dashboard > Settings > API Keys. Use rk_sandbox_* for test mode and rk_live_* for production.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://api.revkeen.com/v2/comms/send" \  -H "x-api-key: $REVKEEN_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "channel": "email",    "body": "string"  }'
{
  "success": true,
  "conversationId": "ee6e55e8-45fe-4a3e-9bc8-4669f9fdf77a",
  "messageId": "8540d774-4863-4d2b-b788-4ecb19412e85",
  "notificationId": "2d591c23-85b1-4e8c-a6bd-74d89f8955c5",
  "customerId": "87d8e330-2878-4742-a86f-dbbb3bf522ac"
}
{
  "error": "string"
}