Conga Email Template API

The Email Template API from Conga — 8 operation(s) for email template.

Operations 12

GET /api/email/v1/email-templates Get the list of email templates based on filter and sort criteria
POST /api/email/v1/email-templates Create an email template
POST /api/email/v1/email-templates/render Render an unsaved email template
GET /api/email/v1/email-templates/search Get the list of email templates based on search criteria
DELETE /api/email/v1/email-templates/{id} Delete an email template
GET /api/email/v1/email-templates/{id} Get an email template by ID
POST /api/email/v1/email-templates/{id} Create a template attachment for a given template ID
PUT /api/email/v1/email-templates/{id} Update an email template
POST /api/email/v1/email-templates/{id}/clone Clone the email template
DELETE /api/email/v1/email-templates/{id}/delete Delete all template attachments for a given template id at once
POST /api/email/v1/email-templates/{id}/render Render an email template
DELETE /api/email/v1/email-templates/{id}/{fileName}/delete Delete a template attachment for a given template ID

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/conga-email-template-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

conga-email-template-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Email Template API
  version: v1
servers:
- url: https://rls.congacloud.com
security:
- Bearer: []
tags:
- name: Email Template
paths:
  /api/email/v1/email-templates:
    get:
      tags:
      - Email Template
      summary: Get the list of email templates based on filter and sort criteria
      description: Returns a list of email templates filtered by access type or category, with support for sorting and pagination.
      parameters:
      - name: searchBy
        in: query
        description: Search by AccessType or CategoryId
        schema:
          $ref: '#/components/schemas/EmailTemplateSearchType'
      - name: searchValue
        in: query
        description: Search value
        schema:
          type: string
          default: private
      - name: sortField
        in: query
        description: Name of the field to be sorted.
        schema:
          type: string
          default: EmailTemplateCategory.Name
      - name: pageSize
        in: query
        description: Number of email templates in each page.
        schema:
          type: integer
          format: int32
          default: 100
      - name: pageNumber
        in: query
        description: Number of page for which email templates to be fetched.
        schema:
          type: integer
          format: int32
          default: 1
      - name: sortDirection
        in: query
        description: Sort direction of the data
        schema:
          $ref: '#/components/schemas/SortDirection'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailTemplateResponseAPIResponse'
        '400':
          description: Bad Request
        '404':
          description: Not Found
        '500':
          description: Internal Server Error
    post:
      tags:
      - Email Template
      summary: Create an email template
      description: Creates an email template based on the information passed in the request body.
      requestBody:
        description: 'The email field information for creating the email template<br /><ul><li><b>Id</b> (<i>string, optional</i>): Email template ID. Guid Id.</li><li><b>Name</b> (<i>string,<b>* required</b></i>): Name of the email template.</li><li><b>IsActive</b> (<i>boolean, optional</i>): Indicates if the template is active.</li><li><b>IsDeleted</b> (<i>boolean, optional</i>): Indicates if the template is deleted.</li><li><b>ObjectName</b> (<i>string, optional</i>): DataBase object name.</li><li><b>TemplateType</b> (<i>string, <b> *required</b></i>): Type of the email template.</li><li><b>Body</b> (<i>string, <b> *required</b></i>): Main body of the email template.</li><li><b>HtmlValue</b> (<i>string, optional</i>): HTML value of the template.</li><li><b>Subject</b> (<i>string, <b> *required</b></i>): Subject line of the email template.</li><li><b>OwnerId</b> (<i>string, optional</i>): Owner identifier. Guid Id.</li><li><b>EmailTemplateCategory</b> (<i>LookupObject, <b> *required</b></i>): Email Template category information.</li><li><b>AccessType</b> (<i>string, <b> *required</b></i>): Access type (Private, Public).</li><li><b>Description</b> (<i>string, optional</i>): Description of the template.</li><li><b>CustomCodeUrl</b> (<i>string, optional</i>): Custom code URL.</li><li><b>Tags</b> (<i>array of string, optional</i>): List of tags.</li><li><b>DefaultForProducts</b> (<i>array of string, optional</i>): Default products.</li></ul>'
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EmailTemplate'
            example:
              IsActive: true
              IsDeleted: false
              ObjectName: SampleObjectName
              TemplateType: html
              Body: "Dear {{TestObjectName1.Name}} ,\n some content Regards UnitTest."
              HtmlValue: <h1>Hello {{TestObjectName1.Name}} ,</h1><p> some content Regards UnitTest.</p>
              Subject: Greetings, {{TestObjectName1.Name}}!
              OwnerId: null
              EmailTemplateCategory: null
              AccessType: null
              Description: null
              CustomCodeUrl: null
              Tags:
              - Default
              - Test
              DefaultForProducts:
              - esign
              - review
              DependentMergeFields: null
              AttachmentFileNames: null
              Id: 65080654-272d-48c4-856f-2a88ac4352ef
              Name: SampleTemplate
              CreatedBy: null
              CreatedDate: '0001-01-01T00:00:00'
              ModifiedBy: null
              ModifiedDate: '0001-01-01T00:00:00'
              ExternalId: null
              ETag: null
          text/json:
            schema:
              $ref: '#/components/schemas/EmailTemplate'
            example:
              IsActive: true
              IsDeleted: false
              ObjectName: SampleObjectName
              TemplateType: html
              Body: "Dear {{TestObjectName1.Name}} ,\n some content Regards UnitTest."
              HtmlValue: <h1>Hello {{TestObjectName1.Name}} ,</h1><p> some content Regards UnitTest.</p>
              Subject: Greetings, {{TestObjectName1.Name}}!
              OwnerId: null
              EmailTemplateCategory: null
              AccessType: null
              Description: null
              CustomCodeUrl: null
              Tags:
              - Default
              - Test
              DefaultForProducts:
              - esign
              - review
              DependentMergeFields: null
              AttachmentFileNames: null
              Id: 65080654-272d-48c4-856f-2a88ac4352ef
              Name: SampleTemplate
              CreatedBy: null
              CreatedDate: '0001-01-01T00:00:00'
              ModifiedBy: null
              ModifiedDate: '0001-01-01T00:00:00'
              ExternalId: null
              ETag: null
          application/*+json:
            schema:
              $ref: '#/components/schemas/EmailTemplate'
            example:
              IsActive: true
              IsDeleted: false
              ObjectName: SampleObjectName
              TemplateType: html
              Body: "Dear {{TestObjectName1.Name}} ,\n some content Regards UnitTest."
              HtmlValue: <h1>Hello {{TestObjectName1.Name}} ,</h1><p> some content Regards UnitTest.</p>
              Subject: Greetings, {{TestObjectName1.Name}}!
              OwnerId: null
              EmailTemplateCategory: null
              AccessType: null
              Description: null
              CustomCodeUrl: null
              Tags:
              - Default
              - Test
              DefaultForProducts:
              - esign
              - review
              DependentMergeFields: null
              AttachmentFileNames: null
              Id: 65080654-272d-48c4-856f-2a88ac4352ef
              Name: SampleTemplate
              CreatedBy: null
              CreatedDate: '0001-01-01T00:00:00'
              ModifiedBy: null
              ModifiedDate: '0001-01-01T00:00:00'
              ExternalId: null
              ETag: null
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailTemplateAPIResponse'
              example:
                Success: true
                Data:
                  IsActive: true
                  IsDeleted: false
                  ObjectName: SampleObjectName
                  TemplateType: html
                  Body: "Dear {{TestObjectName1.Name}} ,\n some content Regards UnitTest."
                  HtmlValue: <h1>Hello {{TestObjectName1.Name}} ,</h1><p> some content Regards UnitTest.</p>
                  Subject: Greetings, {{TestObjectName1.Name}}! - Updated
                  OwnerId: null
                  EmailTemplateCategory: null
                  AccessType: null
                  Description: null
                  CustomCodeUrl: null
                  Tags:
                  - Default
                  - Test
                  DefaultForProducts:
                  - esign
                  - review
                  DependentMergeFields: null
                  AttachmentFileNames: null
                  Id: e925ba24-39a2-41e7-a51f-7bd1ad5e62b3
                  Name: SampleTemplate
                  CreatedBy: null
                  CreatedDate: '0001-01-01T00:00:00'
                  ModifiedBy: null
                  ModifiedDate: '0001-01-01T00:00:00'
                  ExternalId: null
                  ETag: null
                StatusCode: OK
        '400':
          description: Bad Request
        '404':
          description: Not Found
        '500':
          description: Internal Server Error
  /api/email/v1/email-templates/render:
    post:
      tags:
      - Email Template
      summary: Render an unsaved email template
      description: Fetches the email template information based on the template render request. This API allows you to see a preview of an unsaved email template.
      requestBody:
        description: 'The email template render request:<br /><ul><li><b>EmailTemplateId</b> (<i>string, optional</i>): The ID of the email template. Guid Id.</li><li><b>RecipientType</b> (<i>string, optional</i>): Type of recipient.</li><li><b>RecipientId</b> (<i>string, optional</i>): ID of the recipient. Guid Id.</li><li><b>ObjectName</b> (<i>string, optional</i>):DataBase object name.</li><li><b>RecordId</b> (<i>string, optional</i>): ID of the record. Guid Id.</li><li><b>TemplateData</b> (<i>object, optional</i>): Key-value pairs for template data.<br />Format: { <i>key</i>: <i>value</i>, ... }</li><li><b>RecordDetails</b> (<i>object, optional</i>): Key-value pairs for record details.<br />Format: { <i>key</i>: <i>value</i>, ... }</li><li><b>Subject</b> (<i>string, optional</i>): Email subject line.</li><li><b>HtmlBody</b> (<i>string, optional</i>): HTML content of the email.</li><li><b>PlainTextBody</b> (<i>string, optional</i>): Plain text content of the email.</li></ul>'
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EmailTemplatePreviewRequest'
          text/json:
            schema:
              $ref: '#/components/schemas/EmailTemplatePreviewRequest'
          application/*+json:
            schema:
              $ref: '#/components/schemas/EmailTemplatePreviewRequest'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailTemplateRenderResponseAPIResponse'
              example:
                Success: true
                Data:
                  Id: bdd276f2-3cc4-408d-9395-f1ed3ea7ea48
                  Name: SampleTemplate
                  Subject: Test Subject
                  HtmlBody: Hi, Check out this email!
                  PlainTextBody: Hi Test User, Regards Someone
                  TemplateAttachments: null
                StatusCode: OK
        '400':
          description: Bad Request
        '404':
          description: Not Found
        '500':
          description: Internal Server Error
  /api/email/v1/email-templates/search:
    get:
      tags:
      - Email Template
      summary: Get the list of email templates based on search criteria
      description: Returns a list of email templates that match the specified search criteria, with support for sorting and pagination.
      parameters:
      - name: criteria
        in: query
        description: "<b>\n  <i>Required</i>\n</b> Search criteria"
        schema:
          type: string
      - name: sortField
        in: query
        description: Name of the field to be sorted.
        schema:
          type: string
          default: EmailTemplateCategory.Name
      - name: pageSize
        in: query
        description: Number of email templates in each page.
        schema:
          type: integer
          format: int32
          default: 100
      - name: pageNumber
        in: query
        description: Number of page for which email templates to be fetched.
        schema:
          type: integer
          format: int32
          default: 1
      - name: sortDirection
        in: query
        description: Sort direction of the data
        schema:
          $ref: '#/components/schemas/SortDirection'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailTemplateResponseAPIResponse'
        '400':
          description: Bad Request
        '404':
          description: Not Found
        '500':
          description: Internal Server Error
  /api/email/v1/email-templates/{id}:
    delete:
      tags:
      - Email Template
      summary: Delete an email template
      description: Removes the email template based on the email template ID.
      parameters:
      - name: id
        in: path
        description: The ID of the email template
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StringAPIResponse'
              example:
                Success: true
                Data: EmailTemplate 673acf95-1a83-46f1-86aa-d07e46f9b0d4 is deleted successfully.
                StatusCode: OK
        '400':
          description: Bad Request
        '404':
          description: Not Found
        '500':
          description: Internal Server Error
    get:
      tags:
      - Email Template
      summary: Get an email template by ID
      description: Retrieves the email template based on the email template ID.
      parameters:
      - name: id
        in: path
        description: The ID of the email template
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailTemplateAPIResponse'
              example:
                Success: true
                Data:
                  IsActive: true
                  IsDeleted: false
                  ObjectName: SampleObjectName
                  TemplateType: html
                  Body: "Dear {{TestObjectName1.Name}} ,\n some content Regards UnitTest."
                  HtmlValue: <h1>Hello {{TestObjectName1.Name}} ,</h1><p> some content Regards UnitTest.</p>
                  Subject: Greetings, {{TestObjectName1.Name}}! - Updated
                  OwnerId: null
                  EmailTemplateCategory: null
                  AccessType: null
                  Description: null
                  CustomCodeUrl: null
                  Tags: null
                  DefaultForProducts: null
                  DependentMergeFields: null
                  AttachmentFileNames: null
                  Id: 61b714cf-c3e4-42a0-b06b-0e6b95b3c5c2
                  Name: SampleTemplate
                  CreatedBy: null
                  CreatedDate: '0001-01-01T00:00:00'
                  ModifiedBy: null
                  ModifiedDate: '0001-01-01T00:00:00'
                  ExternalId: null
                  ETag: null
                StatusCode: OK
        '400':
          description: Bad Request
        '404':
          description: Not Found
        '500':
          description: Internal Server Error
    post:
      tags:
      - Email Template
      summary: Create a template attachment for a given template ID
      description: Creates a template attachment for the given template ID based on the email attachment information passed in the request body.
      parameters:
      - name: id
        in: path
        description: The ID of the email template
        required: true
        schema:
          type: string
      requestBody:
        description: 'Provide the following details to create an attachment for a given email template ID:

          <ul><li><b>Name</b> (string,<b> *required</b>): The name of the file. This field is required, and if it contains a null value in the request, the API returns an error.</li><li><b>MimeType</b> (string,<b> *required</b>): A string sent along with a file indicating the type of the file (describing the content format, for example, a sound file might be labeled audio/ogg, or an image file image/png). This field is required, and if it contains an invalid or null value in the request, the API returns an error. For more information on supported media types, click <a href="https://documentation.conga.com/congaplatform/latest/supported-mime-types-and-file-extensions-for-email-apis-213452400.html">here</a>.</li><li><b>File [Obsolete]</b> (string,<b> *required</b>): It is recommended to use ''FileContent'' for all the attachments (especially large files). FileData is a Base64 encoded string of your file. Out of FileData and FileContent, either of the fields is required, and if it contains an invalid or null value in the request, the API returns an error.</li><li><b>FileContent</b> (byte[],<b> *required</b>): Byte array collection of your file. Out of FileContent and FileData, either of the fields is required, and if it contains an invalid or null value in the request, the API returns an error.</li></ul>'
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EmailAttachment'
          text/json:
            schema:
              $ref: '#/components/schemas/EmailAttachment'
          application/*+json:
            schema:
              $ref: '#/components/schemas/EmailAttachment'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateFileResponseAPIResponse'
        '400':
          description: Bad Request
        '404':
          description: Not Found
        '500':
          description: Internal Server Error
    put:
      tags:
      - Email Template
      summary: Update an email template
      description: Updates the email template based on the email template ID and updated email template information.
      parameters:
      - name: id
        in: path
        description: The ID of the email template
        required: true
        schema:
          type: string
      requestBody:
        description: 'Email template information to be updated:<br /><ul><li><b>Name</b> (<i>string, <b> *required</b></i>): The name of the email template. This is a descriptive label used to identify the template.</li><li><b>TemplateType</b> (<i>string,<b> *required</b></i>): Specifies the type of the email template, such as html etc.</li><li><b>Body</b> (<i>string, <b> *required</b></i>): The main body of the email template, which will be sent to recipients.</li><li><b>Subject</b> (<i>string, <b> *required</b></i>): The subject line of the email template.</li><li><b>Id</b> (<i>string, optional</i>): Email template ID. Guid Id.</li><li><b>IsActive</b> (<i>boolean, optional</i>): Indicates if the template is active.</li><li><b>IsDeleted</b> (<i>boolean, optional</i>): Indicates if the template is deleted.</li><li><b>ObjectName</b> (<i>string, optional</i>): DataBase object name.</li><li><b>HtmlValue</b> (<i>string, optional</i>): HTML value of the template.</li><li><b>OwnerId</b> (<i>string, optional</i>): Owner identifier.Guid Id.</li><li><b>EmailTemplateCategory</b> (<i>LookupObject, optional</i>): Category information.</li><li><b>AccessType</b> (<i>string, optional</i>): Access type (Private, Public).</li><li><b>Description</b> (<i>string, optional</i>): Description of the template.</li><li><b>CustomCodeUrl</b> (<i>string, optional</i>): Custom code URL.</li><li><b>Tags</b> (<i>array of string, optional</i>): List of tags.</li><li><b>DefaultForProducts</b> (<i>array of string, optional</i>): Default products.</li></ul>'
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EmailTemplate'
            example:
              IsActive: true
              IsDeleted: false
              ObjectName: SampleObjectName
              TemplateType: html
              Body: "Dear {{TestObjectName1.Name}} ,\n some content Regards UnitTest."
              HtmlValue: <h1>Hello {{TestObjectName1.Name}} ,</h1><p> some content Regards UnitTest.</p>
              Subject: Greetings, {{TestObjectName1.Name}}!
              OwnerId: null
              EmailTemplateCategory: null
              AccessType: null
              Description: null
              CustomCodeUrl: null
              Tags:
              - Default
              - Test
              DefaultForProducts:
              - esign
              - review
              DependentMergeFields: null
              AttachmentFileNames: null
              Id: 89ab2a17-09a4-4147-8863-bbce3258961e
              Name: SampleTemplate
              CreatedBy: null
              CreatedDate: '0001-01-01T00:00:00'
              ModifiedBy: null
              ModifiedDate: '0001-01-01T00:00:00'
              ExternalId: null
              ETag: null
          text/json:
            schema:
              $ref: '#/components/schemas/EmailTemplate'
            example:
              IsActive: true
              IsDeleted: false
              ObjectName: SampleObjectName
              TemplateType: html
              Body: "Dear {{TestObjectName1.Name}} ,\n some content Regards UnitTest."
              HtmlValue: <h1>Hello {{TestObjectName1.Name}} ,</h1><p> some content Regards UnitTest.</p>
              Subject: Greetings, {{TestObjectName1.Name}}!
              OwnerId: null
              EmailTemplateCategory: null
              AccessType: null
              Description: null
              CustomCodeUrl: null
              Tags:
              - Default
              - Test
              DefaultForProducts:
              - esign
              - review
              DependentMergeFields: null
              AttachmentFileNames: null
              Id: 89ab2a17-09a4-4147-8863-bbce3258961e
              Name: SampleTemplate
              CreatedBy: null
              CreatedDate: '0001-01-01T00:00:00'
              ModifiedBy: null
              ModifiedDate: '0001-01-01T00:00:00'
              ExternalId: null
              ETag: null
          application/*+json:
            schema:
              $ref: '#/components/schemas/EmailTemplate'
            example:
              IsActive: true
              IsDeleted: false
              ObjectName: SampleObjectName
              TemplateType: html
              Body: "Dear {{TestObjectName1.Name}} ,\n some content Regards UnitTest."
              HtmlValue: <h1>Hello {{TestObjectName1.Name}} ,</h1><p> some content Regards UnitTest.</p>
              Subject: Greetings, {{TestObjectName1.Name}}!
              OwnerId: null
              EmailTemplateCategory: null
              AccessType: null
              Description: null
              CustomCodeUrl: null
              Tags:
              - Default
              - Test
              DefaultForProducts:
              - esign
              - review
              DependentMergeFields: null
              AttachmentFileNames: null
              Id: 89ab2a17-09a4-4147-8863-bbce3258961e
              Name: SampleTemplate
              CreatedBy: null
              CreatedDate: '0001-01-01T00:00:00'
              ModifiedBy: null
              ModifiedDate: '0001-01-01T00:00:00'
              ExternalId: null
              ETag: null
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BooleanNullableAPIResponse'
              example:
                Success: true
                Data: true
                StatusCode: OK
        '400':
          description: Bad Request
        '404':
          description: Not Found
        '500':
          description: Internal Server Error
  /api/email/v1/email-templates/{id}/clone:
    post:
      tags:
      - Email Template
      summary: Clone the email template
      description: Clones the email template based on the email template ID, with a new email template ID.
      parameters:
      - name: id
        in: path
        description: The ID of the email template
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailTemplateAPIResponse'
              example:
                Success: true
                Data:
                  IsActive: true
                  IsDeleted: false
                  ObjectName: SampleObjectName
                  TemplateType: html
                  Body: "Dear {{TestObjectName1.Name}} ,\n some content Regards UnitTest."
                  HtmlValue: <h1>Hello {{TestObjectName1.Name}} ,</h1><p> some content Regards UnitTest.</p>
                  Subject: Greetings, {{TestObjectName1.Name}}! - Updated
                  OwnerId: null
                  EmailTemplateCategory: null
                  AccessType: null
                  Description: null
                  CustomCodeUrl: null
                  Tags: null
                  DefaultForProducts: null
                  DependentMergeFields: null
                  AttachmentFileNames: null
                  Id: 504d1b23-bd06-4d6f-984a-507b5b7ad761
                  Name: SampleTemplate
                  CreatedBy: null
                  CreatedDate: '0001-01-01T00:00:00'
                  ModifiedBy: null
                  ModifiedDate: '0001-01-01T00:00:00'
                  ExternalId: null
                  ETag: null
                StatusCode: OK
        '400':
          description: Bad Request
        '404':
          description: Not Found
        '500':
          description: Internal Server Error
  /api/email/v1/email-templates/{id}/delete:
    delete:
      tags:
      - Email Template
      summary: Delete all template attachments for a given template id at once
      description: Removes all template attachments for the given email template ID.
      parameters:
      - name: id
        in: path
        description: The ID of the email template
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteFileResponseListAPIResponse'
        '400':
          description: Bad Request
        '404':
          description: Not Found
        '500':
          description: Internal Server Error
  /api/email/v1/email-templates/{id}/render:
    post:
      tags:
      - Email Template
      summary: Render an email template
      description: Fetches the email template information based on the email template ID and template render request.
      parameters:
      - name: id
        in: path
        description: The ID of the email template
        required: true
        schema:
          type: string
      requestBody:
        description: "The email template render request:\n           <br /><ul><li><b>EmailTemplateId</b> (<i>string, optional</i>): The ID of the email template. Guid Id.</li><li><b>RecipientType</b> (<i>string, optional</i>): Type of recipient.</li><li><b>RecipientId</b> (<i>string, optional</i>): ID of the recipient. Guid Id.</li><li><b>ObjectName</b> (<i>string, optional</i>): DataBase object name.</li><li><b>RecordId</b> (<i>string, optional</i>): ID of the record. Guid Id.</li><li><b>TemplateData</b> (<i>object, optional</i>): Key-value pairs for template data.<br />Format: { <i>key</i>: <i>value</i>, ... }</li><li><b>RecordDetails</b> (<i>object, optional</i>): Key-value pairs for record details.<br />Format: { <i>key</i>: <i>value</i>, ... }</li></ul>"
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EmailTemplateRenderRequest'
          text/json:
            schema:
              $ref: '#/components/schemas/EmailTemplateRenderRequest'
          application/*+json:
            schema:
              $ref: '#/components/schemas/EmailTemplateRenderRequest'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailTemplateRenderResponseAPIResponse'
              example:
                Success: true
                Data:
                  Id: 31cbc1b1-f9e7-49cc-9ea1-d3501df23a3d
                  Name: SampleTemplate
                  Subject: Test Subject
                  HtmlBody: Hi, Check out this email!
                  PlainTextBody: Hi Test User, Regards Someone
                  TemplateAttachments: null
                StatusCode: OK
        '400':
          description: Bad Request
        '404':
          description: Not Found
        '500':
          description: Internal Server Error
  /api/email/v1/email-templates/{id}/{fileName}/delete:
    delete:
      tags:
      - Email Template
      summary: Delete a template attachment for a given template ID
      description: Removes the template attachment for the given email template ID based on the file name.
      parameters:
      - name: id
        in: path
        description: The ID of the email template
        required: true
        schema:
          type: string
      - name: fileName
        in: path
        description: The name of the file
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteFileResponseAPIResponse'
        '400':
          description: Bad Request
        '404':
          description: Not Found
        '500':
          description: Internal Server Error
components:
  schemas:
    EmailTemplateResponseAPIResponse:
      type: object
      properties:
        Success:
          type: boolean
        RecordCount:
          type:
          - integer
          - 'null'
          format: int64
        Data:
          $ref: '#/components/schemas/EmailTemplateResponse'
        Errors:
          type:
          - array
          - 'null'
          items:
            $ref: '#/components/schemas/ErrorDetail'
        Profile:
          type:
          - string
          - 'null'
        TotalTime:
          type: number
          format: float
        StatusCode:
          $ref: '#/components/schemas/HttpStatusCode'
        HasMoreRecords:
          type:
          - boolean
          - 'null'
        NextCursor:
          type:
          - string
          - 'null'
        Warnings:
          type:
          - array
          - 'null'
          items:
            $ref: '#/components/schemas/ErrorDetail'
      additionalProperties: false
    DeleteFileResponse:
      type: object
      properties:
        FileName:
          type:
          - string
          - 'null'
        FilePath:
          type:
          - string
          - 'null'
        IsDeleted:
          type: boolean
      additionalProperties: false
    DeleteFileResponseListAPIResponse:
      type: object
      properties:
        Success:
          type: boolean
        RecordCount:
          type:
          - integer
          - 'null'
          format: int64
        Data:
          type:
          - array
          - 'null'
          items:
            $ref: '#/components/schemas/DeleteFileResponse'
        Errors:
          type:
          - array
          - 'null'
          items:
            $ref: '#/components/schemas/ErrorDetail'
        Profile:
          type:
          - string
          - 'null'
        TotalTime:
          type: number
          format: float
        StatusCode:
          $ref: '#/components/schemas/HttpStatusCode'
        HasMoreRecords:
          type:
          - boolean
          - 'null'
        NextCursor:
          type:
          - string
          - 'null'
        Warnings:
          type:
          - array
          - 'null'
          items:
            $ref: '#/components/schemas/ErrorDetail'
      additionalProperties: false
    EmailTemplatePrevie

# --- truncated at 32 KB (44 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/conga/refs/heads/main/openapi/conga-email-template-api-openapi.yml