Live webinar What's new in Sodium: Information Requests, plus Q&A. Thu 19 Nov, 12 noon Information Requests + Q&A, Thu 19 Nov Reserve your place

Preview Step Text

POST /tenants/{tenant}/workflows/preview-step-text

Renders a Send Text Message workflow step's text (its text template or its own text) as edited, for the chosen client and the first of its contacts the step would text. Without a client only the practice and date tokens are filled. There is no task, so the Task tokens render empty. Nothing is sent or stored.

Requires: ViewAll on Workflows.

Parameters

NameTypeDescription
tenant* path string

The Tenant.Code

The Tenant.Code

{
  "stepConfig": {
    "channel": "...",
    "isPracticeRouted": false,
    "recipientContactTypes": [
      "..."
    ],
    "templateCode": "string",
    "body": "string"
  },
  "clientCode": "string"
}

Responses

400 Bad Request
401 Unauthorized – Invalid or missing API key
403 Forbidden – the caller lacks the permissions this endpoint requires; the detail lists every one missing
application/problem+json
404 Not Found