Skip to main content
POST
Create CannedResponse
A CannedResponse is a reusable message template, known as a Message Macro in the Nexudus UI (Admin Panel > CRM > Message Macros). Message macros can be sent directly to customers or used alongside reminders to automate communication. They support dynamic tokens — placeholders such as \{salutation\} — that Nexudus automatically replaces with live data from your account when the message is delivered. Message macros are available across all locations in a network, regardless of which location created them.

Supported tokens

Location tokens (always available): Customer tokens (always available): User / account tokens (always available when the customer has a portal access / user account): Message-macro-specific tokens: Delivery tokens (resolved from the customer’s oldest uncollected delivery, if any): Product tokens (available when the macro is sent alongside a product purchase — CoworkerProduct or BookingProduct): Booking tokens (available when the product purchase is linked to a booking):

Authentication

This endpoint requires OAuth2 authentication. Include a valid bearer token in the Authorization header. The authenticated user must be a full unrestricted administrator or have the CannedResponse-Create role.

Request Body

Required Fields

integer
required
ID of the business linked to this record.
string
required
Name of the message macro.

Optional Fields

string
Subject line shown in the customer’s inbox when the message macro is delivered.
string
Body of the message macro; supports dynamic tokens (e.g. {salutations}) that Nexudus replaces with live data when the message is sent.

Code Examples

Response

200

integer
HTTP status code. 200 on success.
string
A human-readable message confirming the creation.
object
Contains the Id of the newly created record.
boolean
true if the cannedresponse was created successfully.
array
null on success.
Example Response

400

string
A summary of the validation error(s), in the format PropertyName: error message.
any
null on validation failure.
object[]
Array of validation errors.
boolean
false when the request fails validation.
Example Response