GET
/v1/mgmt/templateAuthorization
Descope Project ID and Management Key AuthorizationBearer <token>
Project ID:Management Key as bearer token.
In: header
Query Parameters
type?string
method?string
id?string
Get a single message template by type, method and id, using a valid management key.
curl -X GET "https://api.descope.com/v1/mgmt/template"{ "type": "string", "method": "string", "id": "string", "name": "string", "body": "string", "subject": "string", "bodyPlainText": "string", "useBodyPlainText": true}/** * A custom message template for an auth method (Terraform: descope_email_template, * descope_text_template, descope_voice_template). Templates are addressed by their * server-generated id within the bucket named by type and method. The subject, bodyPlainText * and useBodyPlainText fields apply to email templates only and are rejected on other types. * The translation configuration is owned by the console and preserved across updates; the * active selection is managed on the auth method settings (e.g. * MagicLinkSettings.emailTemplateId), not here. */export interface Response {type?: stringmethod?: stringid?: stringname?: stringbody?: string/** * The fields below apply to email templates only: requests that carry them for other template * types are rejected, and responses omit them. Like the fields above they're written as given * on updates, so an omitted field is cleared rather than preserved. */subject?: stringbodyPlainText?: stringuseBodyPlainText?: boolean} Was this helpful?
Delete template DELETE
Delete a single message template by type, method and id, using a valid management key. Deleting the active template resets the auth method's selection to the built-in System template.
Update template POST
Update a single message template by type, method and id, using a valid management key.