# Send a message (deprecated) Send a message (email or sms) to a target. For email messages only, optionally replace the message's configured content and headers with those passed as parameters Endpoint: POST /actions/{id}/targets/{targetId} Version: 8.1.0 ## Path parameters: - `id` (string, required) The action's id - `targetId` (string, required) The target's id ## Header parameters: - `X-Key` (string, required) A unique API key used to authenticate requests to the NP6 platform. This key must be included in every API call to validate the identity and permissions of the client. Keep your API key secure and do not expose it in public code or logs. ## Request fields (application/json): - `data` (object) BsonDocument to pass additional data - `content` (object) If the message is an email, the content of the message will be replaced by this parameter - `content.html` (string) The replacement html content of the message - `content.text` (string) The replacement text content of the message - `header` (object) If the message is an email, the header of the message will be replaced by this parameter - `header.subject` (string) The replacement message subject - `header.mailFrom` (string) The replacement from address - `header.replyTo` (string) The replacement reply-to address ## Response 204 fields ## Response 401 fields ## Response 403 fields ## Response 404 fields ## Response 409 fields