## Send `client.messages.send(MessageSendParamsbody, RequestOptionsoptions?): MessageResponse` **post** `/api/send-message` Send an iMessage, SMS, or MMS to a single recipient ### Parameters - `body: MessageSendParams` - `content: string` Message text content - `from_number: string` **REQUIRED** - The phone number to send from. Must be one of your registered Sendblue phone numbers in E.164 format. Without this parameter, the message will fail to send. - `number: string` Recipient phone number in E.164 format - `media_url?: string` URL of media file to send (images, videos, etc.) - `send_style?: "celebration" | "shooting_star" | "fireworks" | 10 more` The iMessage expressive message style - `"celebration"` - `"shooting_star"` - `"fireworks"` - `"lasers"` - `"love"` - `"confetti"` - `"balloons"` - `"spotlight"` - `"echo"` - `"invisible"` - `"gentle"` - `"loud"` - `"slam"` - `status_callback?: string` Webhook URL for message status updates ### Returns - `MessageResponse` - `account_email?: string` Email of the account that sent the message - `content?: string` Message content - `date_created?: string` When the message was created - `date_updated?: string` When the message was last updated - `error_code?: number` Numeric error code if message failed - `error_message?: string` Error message if message failed - `from_number?: string` Sending phone number - `is_outbound?: boolean` Whether this is an outbound message - `media_url?: string` URL of attached media - `message_handle?: string` Unique identifier for tracking the message - `number?: string` Recipient phone number - `send_style?: "celebration" | "shooting_star" | "fireworks" | 10 more` The iMessage expressive message style - `"celebration"` - `"shooting_star"` - `"fireworks"` - `"lasers"` - `"love"` - `"confetti"` - `"balloons"` - `"spotlight"` - `"echo"` - `"invisible"` - `"gentle"` - `"loud"` - `"slam"` - `status?: "QUEUED" | "SENT" | "DELIVERED" | 2 more` - `"QUEUED"` - `"SENT"` - `"DELIVERED"` - `"READ"` - `"ERROR"` ### Example ```typescript import SendblueAPI from 'sendblue'; const client = new SendblueAPI({ apiKey: process.env['SENDBLUE_API_API_KEY'], // This is the default and can be omitted apiSecret: process.env['SENDBLUE_API_API_SECRET'], // This is the default and can be omitted }); const messageResponse = await client.messages.send({ content: 'Hello, World!', from_number: '+19998887777', number: '+19998887777', }); console.log(messageResponse.account_email); ```