Answers.Body: <p>If I understand correctly - this should serve your needs</p>
  <p>Mosaico Message Templates
  For each &quot;Mosaico Template&quot;, automatically create &quot;Message Templates&quot; for use in scheduled reminders, personal emails, etc.</p>
  <p><a href="https://github.com/civicrm/org.civicrm.mosaicomsgtpl" rel="nofollow noreferrer">https://github.com/civicrm/org.civicrm.mosaicomsgtpl</a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-05-03T16:43:15.593Z
Answers.LastActivityDate: 2022-05-03T16:43:15.593Z
Answers.UserDisplayName: themak
Body: <p>I amb creating a Mailing via API calls. I dynamically create the Moisaico code. But when the Email gets created, it doesn't have any HTML code, so I can not send it. How can I get the HTML code from the Mosaico code?</p>
  <p>If I go through the CiviCRM web GUI, I just need to click on &quot;Edit&quot; on the Mosaico Design created for that Email, and then jsut click &quot;Save&quot; or &quot;Close&quot;, and the HTML gets created by Mosaico and then I can send the email.</p>
  <p>How can I make this process via API?</p>
  <p>Thanks.</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-05-03T13:52:58.827Z
Comments.Text: anynone has any idea about this issue? I tried to send the HTML code made by myself, but it's too long and I receive a "401 URI Too long" error...
Comments.UserDisplayName: Rucc
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-05-03T15:30:17.930Z
Comments.Text: Can you add some details on what api call you tried ? Is it in REST, php or javascript ?
Comments.UserDisplayName: samuelsov
Tags: <civimail><api><email><mosaico>
Title: How to compose HTML Body from a Mosaico Template content?
ThreadText: # How to compose HTML Body from a Mosaico Template content?
  
  (Asked by: username_0 on 2021-12-02)
  
  I amb creating a Mailing via API calls. I dynamically create the Moisaico code. But when the Email gets created, it doesn't have any HTML code, so I can not send it. How can I get the HTML code from the Mosaico code?
  
  If I go through the CiviCRM web GUI, I just need to click on "Edit" on the Mosaico Design created for that Email, and then jsut click "Save" or "Close", and the HTML gets created by Mosaico and then I can send the email.
  
  How can I make this process via API?
  
  Thanks.
  
  **Tags:** civimail, api, email, mosaico
  
  > **Comments:**
  > **username_0**: anynone has any idea about this issue? I tried to send the HTML code made by myself, but it's too long and I receive a "401 URI Too long" error...  
  > **username_1**: Can you add some details on what api call you tried ? Is it in REST, php or javascript ?  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2022-05-03. Score: 0
  
  If I understand correctly - this should serve your needs
  
  Mosaico Message Templates
  For each "Mosaico Template", automatically create "Message Templates" for use in scheduled reminders, personal emails, etc.
  
  <https://github.com/civicrm/org.civicrm.mosaicomsgtpl>
  
  
  ---
  
  