API / Templates

POST

/templates/{id}/preview

Render a preview of a template

Authentification : clé API Bearer requise.

Paramètres

NomDansTypeDescription
id*pathstringTemplate ID

Corps JSON

Locale and variables

NomTypeDescription
identityIdstring
localestring
variablesrecord<string, string>

Exemple curl

curl -X POST https://api.sporee.fr/templates/<id>/preview \
  -H "Authorization: Bearer $SPORE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Réponses

StatutDescriptionType
200OKpreview_template.Response
400Bad Requestecho.HTTPError
401Unauthorizedecho.HTTPError

Source machine : openapi.json · opération previewTemplate