Skip to main content
POST
Create a shared saved reply without sending a message. See the Macros overview for the shared object and scope model.

Headers

string
required
Bearer token containing your workspace API key. The key needs write scope.

Body

string
required
Non-empty title, up to 150 characters after trimming. Titles must be unique within the workspace, ignoring case and surrounding spaces.
string
required
Non-empty Markdown message, up to 10,000 characters after trimming. Variables are stored as template text, not resolved by this endpoint.

Response

Returns the macro object. Examples use synthetic IDs and timestamps.

Errors

  • 400: Invalid parameters or failed field validation.
  • 401: Missing or invalid credential.
  • 403: Credential lacks the required scope.
  • 406: No workspace is associated with the authenticated user.
  • 409: Another macro already uses that title in this workspace.