> ## Documentation Index
> Fetch the complete documentation index at: https://jetemail.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Start a new AI conversation for a template

> Archives the active conversation so the next request starts fresh. The template is not modified and no credits change.



## OpenAPI

````yaml /openapi.json delete /marketing/ai/conversations/{templateId}
openapi: 3.0.0
info:
  title: JetEmail API
  version: 1.0.0
  description: API documentation for JetEmail's transactional email service.
servers:
  - url: https://api.jetemail.com
    description: Production
security:
  - apiKeyAuth: []
tags:
  - name: Email
    description: Send transactional email
  - name: Outbound
    description: 'Outbound sending: keys, SMTP users, domains, logs, suppression'
  - name: Inbound
    description: Inbound routing, domains and forward destinations
  - name: DMARC
    description: DMARC aggregate-report domain setup, DNS verification and analytics
  - name: Marketing
    description: >-
      Marketing suite: templates, audiences, contacts, broadcasts, themes,
      assets and signup forms
  - name: Signup Forms
    description: Hosted signup pages and form submissions
externalDocs:
  description: Download OpenAPI Specification
  url: /openapi.json
paths:
  /marketing/ai/conversations/{templateId}:
    parameters:
      - name: templateId
        in: path
        required: true
        schema:
          type: string
        description: Template the conversation belongs to. Must be owned by the caller.
    delete:
      tags:
        - Marketing
      summary: Start a new AI conversation for a template
      description: >-
        Archives the active conversation so the next request starts fresh. The
        template is not modified and no credits change.
      responses:
        '200':
          description: Archived; the conversation is now empty
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  conversationId:
                    type: string
                    nullable: true
                    example: null
                  messages:
                    type: array
                    items: {}
                    example: []
        '401':
          description: Unauthorized
        '404':
          description: Template not found, or not owned by the caller
        '500':
          description: Could not start a new AI conversation
components:
  securitySchemes:
    apiKeyAuth:
      type: http
      scheme: bearer
      description: API key for account management endpoints. Use your api_ prefixed token.

````