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

SmartNameToken

GET /metadata/smart-name-tokens

Retrieves the available tokens for smart name templates. Use {{ TokenName }} syntax in TaskNameTemplate or OutputNameTemplate (e.g. "VAT Return - {{ ClientName }} - {{ Quarter.Label }} {{ Year.Current }}"). Date tokens resolve from the context date: the occurrence start date for a recurring task name, the generation date for a document name. ClientName, ClientCode, and ClientInternalRef resolve from the associated client, and KeyDates.* tokens (e.g. {{ KeyDates.YearEnd }}) from that client's own key dates, and {{ Task.DueDate }} from the occurrence's due date - both task names only, since no other naming surface has them. Older single-word spellings still resolve but are no longer listed. Each token carries a sampleValue resolved against today, for the editors' live preview; pass ?locale= to have those formatted for the practice locale.

Open to any signed-in user of the tenant: Static lookup lists (enum names, colours and descriptions), the same for every practice

Parameters

NameTypeDescription
locale query string

Responses

200 OK
401 Unauthorized – Invalid or missing API key

Try it