Stampfactory
Dokumentation
Recruiting

Mail an Bewerbende vorschauen

Rendered subject and body of a template (or of the text HR edited) for this application. Writes nothing. 409 `application_purged` for purged applications, 422 for unknown placeholders

POST
/recruiting/applications/{application}/mails/preview
AuthentifizierungBearer <token>

Bearer-Token, erhalten über den Login-Endpunkt (POST /rest/login).

Ort: header

Pfadparameter

application*string

Request-Body

application/json

TypeScript-Definitionen

TypeScript-Typ für request body.

Preview of a recruiting mail (OpenSpec add-recruiting, task 9.1): the template and optionally the subject and body HR edited. Empty or missing texts fall back to the template.

Response-Body

application/json

application/json

application/json

curl -X POST "https://example.com/recruiting/applications/string/mails/preview" \  -H "Content-Type: application/json" \  -d '{    "template": "rejection"  }'
{  "data": {    "template": "rejection",    "subject": "string",    "body": "string"  }}