Email Templates
emailTemplates Based on latest (2026.09)
Create, change, delete and look up Email Templates, with email template usages. Actions include get merged email content.
- Operations
- GET (list)GET (one)POST (create)PATCH (update)DELETE1 action
- Record key
TemplateNumber- Required on create
EmailFormatEmailSubjectObjectCodeTemplateName- At a glance
- 14 fields1 finders3 children1 file/large text fields
Try it
Only attributes Oracle marks as searchable are offered.
GET /crmRestApi/resources/11.13.18.05/emailTemplates?fields=CreatedBy,CreationDate,EmailBody,EmailFormat,EmailSubject&limit=25&onlyData=true
{
"items": [
{
"CreatedBy": "<string, max 64>",
"CreationDate": "2026-01-31T09:00:00+00:00",
"EmailBody": "<string>",
"EmailFormat": "<string, max 30>",
"EmailSubject": "<string, max 2000>"
}
],
"count": 25,
"hasMore": true,
"limit": 25,
"offset": 0
}Shapes and placeholders, not real data. Replace https://<your-pod> and the login with your own: this site never sees them. Based on Oracle's latest (2026.09) REST specification.
Fields 14
| Attribute | Type | Use |
|---|---|---|
CreatedBy | text · max 64 | Read-only |
CreationDate | date-time | Read-onlySearchable |
EmailBody | text | Optional on createUpdatable |
EmailFormat | text · max 30 | Required on createUpdatable |
EmailSubject | text · max 2000 | Required on createUpdatable |
FooterTemplateNumber | text · max 80 | Optional on createUpdatable |
LastUpdateDate | date-time | Read-only |
LastUpdatedBy | text · max 64 | Read-only |
ObjectCode | text · max 128 | Required on createSearchable |
TemplateActiveFlag | yes/no · max 1 · default true | Optional on createUpdatableSearchable |
TemplateDescription | text · max 2000 | Optional on createUpdatableSearchable |
TemplateId | number | Optional on createSearchable |
TemplateName | text · max 240 | Required on createUpdatableSearchable |
TemplateNumber | text · max 128 | Optional on createSearchable |
Names, types, labels and flags from Oracle's REST specification (latest (2026.09)). Flexfield and custom attributes vary by pod: check /describe for yours.
Finders 1
Predefined searches: ?finder=Name;variable=value,variable2=value2. Pick one in Try it to build the call.
TemplateNumberFinder·TemplateNumber
Check a payload
Checked in your browser only; nothing you paste is sent anywhere. Checks names and flags, not values.
Children 3
Child resources sit under one record: /crmRestApi/resources/11.13.18.05/emailTemplates/{TemplateNumber}/child/<name>. Add them to a GET with expand.
AttachmentsGET · POST · PATCH · DELETE Attachments · 32 fieldsAsyncTrackerIdAttachedDocumentIdCategoryNameContentRepositoryFileSharedCreatedByCreatedByUserNameCreationDateDatatypeCodeDescriptionDmDocumentIdDmFolderPathDmVersionNumberDownloadInfoErrorStatusCodeErrorStatusMessageExpirationDateFileContentsFileNameFileUrlFileWebImageLastUpdateDateLastUpdatedByLastUpdatedByUserNamePostProcessingActionTitleUploadedFileContentTypeUploadedFileLengthUploadedFileNameUploadedTextUriUrlUserNameEmailTemplateTranslationsGET · POST · PATCH · DELETE Email Template Translations · 11 fieldsCreatedByCreationDateEmailBodyEmailSubjectLanguageLastUpdateDateLastUpdatedBySourceLangTemplateDescriptionTemplateIdTemplateNameEmailTemplateUsagesGET · POST · PATCH · DELETE Email Template Usages · 10 fieldsConsumerObjectCodeConsumerObjectIdConsumerObjectLabelConsumerObjectNameCreatedByCreationDateLastUpdateDateLastUpdatedByTemplateIdTemplateUsageId
Actions 1
POST …/action/getMergedEmailContent·inputMap
Actions use Content-Type: application/vnd.oracle.adf.action+json. A path with a {key} runs on one record.
Use in AI Agent Studio
- Point a Business Object or REST tool at
/crmRestApi/resources/11.13.18.05/emailTemplatesand ask only for the fields the agent needs withfields=. Big responses cost tokens and slow the agent. - Prefer a finder such as
TemplateNumberFinderfor the agent's main search: its variables become clean tool parameters. - Narrow with
q=on searchable fields and a smalllimit; for a count usetotalResults=true&limit=1. - Call once and pass the result on to later steps rather than calling the same endpoint again.
- This resource can change data. Put a human approval step before any create, update, delete or action call.
More in For Builders.
Pitfalls
- Attribute names are case-sensitive in
q,fieldsand bodies:EmailBody, notemailbody. - 4 fields are read-only: sending them in POST or PATCH fails or is ignored. The builder leaves them out.
- Send dates as
YYYY-MM-DD; date-time fields take ISO 8601 with a time zone. - A list returns 25 rows unless you set
limit; readhasMoreand moveoffsetto page through. - Text fields have maximum lengths (shown in the field table). Longer values are rejected.