Skip to main content

Wave Compose

Generate a personalized outreach message (Wave) calibrated to a contact’s behavioral profile and communication preferences. Costs 1 credit per composition.

Endpoint

POST /compose-wave

Request Body

FieldTypeRequiredDescription
contact_idstringYesUUID of the target contact
goalstringNoPurpose of the outreach (e.g., “schedule a demo”)
tonestringNoDesired tone: professional, casual, warm, direct
contextstringNoAdditional context for the message
channelstringNoTarget channel: email, linkedin, sms (default: email)

Example Request

curl -X POST \
  https://yeoffsnpsacsnxphsokr.supabase.co/functions/v1/compose-wave \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "contact_id": "550e8400-e29b-41d4-a716-446655440000",
    "goal": "Schedule a product demo",
    "tone": "professional",
    "channel": "email"
  }'

Response

{
  "wave": {
    "subject": "Quick look at how we're helping teams like yours",
    "body": "Hi Jane,\n\nI noticed your team recently expanded into enterprise accounts...",
    "reasoning": "Jane is Achievement-First with a Dealmaker operating style. Leading with a peer reference and quantified results aligns with her decision drivers."
  },
  "credits_used": 1,
  "credits_remaining": 149
}