{ "opencollection": "1.0.0", "info": { "name": "Logto API references Account center Email templates API", "version": "Cloud" }, "request": { "auth": { "type": "oauth2", "flow": "client_credentials", "accessTokenUrl": "/oidc/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "items": [ { "info": { "name": "Email templates", "type": "folder" }, "items": [ { "info": { "name": "Get email templates", "type": "http" }, "http": { "method": "GET", "url": "https://[tenant_id].logto.app/api/email-templates", "params": [ { "name": "languageTag", "value": "", "type": "query", "description": "The language tag of the email template, e.g., `en` or `fr`." }, { "name": "templateType", "value": "", "type": "query", "description": "The type of the email template, e.g. `SignIn` or `ForgotPassword`" } ] }, "docs": "Get the list of email templates." }, { "info": { "name": "Replace email templates", "type": "http" }, "http": { "method": "PUT", "url": "https://[tenant_id].logto.app/api/email-templates", "body": { "type": "json", "data": "{}" } }, "docs": "Create or replace a list of email templates. If an email template with the same language tag and template type already exists, its details will be updated." }, { "info": { "name": "Delete email templates", "type": "http" }, "http": { "method": "DELETE", "url": "https://[tenant_id].logto.app/api/email-templates", "params": [ { "name": "languageTag", "value": "", "type": "query", "description": "The language tag of the email template, e.g., `en` or `fr`." }, { "name": "templateType", "value": "", "type": "query", "description": "The type of the email template, e.g. `SignIn` or `ForgotPassword`" } ] }, "docs": "Bulk delete email templates by their language tag and template type." }, { "info": { "name": "Get email template by ID", "type": "http" }, "http": { "method": "GET", "url": "https://[tenant_id].logto.app/api/email-templates/:id", "params": [ { "name": "id", "value": "", "type": "path", "description": "The unique identifier of the email template." } ] }, "docs": "Get the email template by its ID." }, { "info": { "name": "Delete an email template", "type": "http" }, "http": { "method": "DELETE", "url": "https://[tenant_id].logto.app/api/email-templates/:id", "params": [ { "name": "id", "value": "", "type": "path", "description": "The unique identifier of the email template." } ] }, "docs": "Delete an email template by its ID." }, { "info": { "name": "Update email template details", "type": "http" }, "http": { "method": "PATCH", "url": "https://[tenant_id].logto.app/api/email-templates/:id/details", "params": [ { "name": "id", "value": "", "type": "path", "description": "The unique identifier of the email template." } ], "body": { "type": "json", "data": "{}" } }, "docs": "Update the details of an email template by its ID." } ] } ], "bundled": true }