Open a support ticket
Opens a support conversation for the acting PAT/OAuth user and includes the first message. The acting identity becomes the ticket opener and normal message author; integrations cannot open a ticket for another user through this endpoint.
/support/ticketsAuthorizationOAuth2 access token · headerrequiredapi:writeAuthorizationBearer token (JWT) · headerrequiredapplication/jsonmessagestringrequiredThe first support message as Markdown or HTML.
Accepts Markdown or HTML for complex formatting. This content is rendered by the Leadtime rich editor, not by a plain Markdown viewer.
For quick/simple text, Markdown is acceptable. For polished user-facing content from an agent or integration, prefer structured HTML because it preserves editor blocks, links, and layout more predictably.
Use only the nodes and marks documented below for this field. Supported editor features differ by endpoint and field. Choose formatting for readability, not decoration: use headings for real sections, paragraphs for narrative text, lists or tables for structured facts, blockquotes for quoted context, callouts for important outcomes/risks/notes when supported, and explicit anchors for links. Do not rely on bare URLs or Markdown links when the link must be clickable; use explicit anchors such as <a href="https://example.com" target="_blank" rel="noopener noreferrer nofollow">link text</a>.
In HTML you can use:
Node Types and Marks
Nodes
paragraph Type: block Content: inline* (inline only — do not use block tags such as <p> inside; use e.g. <br>, <strong>, <em>, <span>…) Default paragraph. extraPlaceholder is an internal structure for the editor to show a ghost placeholder in empty “template” lines (ProseMirror JSON fragment or null). For normal agent output leave extraPlaceholder as null. Only set it if you are intentionally mirroring a field placeholder the user already has in the open editor; do not set random placeholder data for free-form answers. Atts:
- extraPlaceholder: null
<p class="paragraph-base" extraplaceholder="null/some-value"></p>
heading Type: block Content: inline* (inline only — do not use block tags such as <p> inside; use e.g. <br>, <strong>, <em>, <span>…) Atts:
- level: 1
<h1 class="heading-base"></h1>
bulletList Type: block list Content: listItem+ Atts: none
<ul class="list-base"><li></li></ul>
hardBreak Type: inline Atts: none
<br>
horizontalRule Type: block Atts: none
<hr class="hr-base">
orderedList Type: block list Content: listItem+ Atts:
- start: 1
- type: null
<ol class="order-list-base" type="null/some-value"><li></li></ol>
listItem Content: (paragraph|list)* (paragraphs and/or lists, in any order) Atts: none
<li></li>
blockquote Type: block Content: block+ (one or more block child nodes (e.g. paragraph, list, …)) Atts: none
<blockquote class="blockquote-base"><p class="paragraph-base"></p></blockquote>
Marks
link Atts:
- href: null
- target: _blank
- rel: noopener noreferrer nofollow
- class: null
- title: null
<a target="_blank" rel="noopener noreferrer nofollow" href="">link text example</a>
bold Atts: none
<strong>bold text example</strong>
code Atts: none
<code>code text example</code>
italic Atts: none
<em>italic text example</em>
strike Atts: none
<s>strike text example</s>
underline Atts: none
<u>underline text example</u>
Created ticket with the complete conversation.
createdAtstring<date-time>requiredWhen the ticket was opened.
idstringrequiredSupport ticket UUID.
lastMessageAtstring<date-time>requiredWhen the newest message was created.
lastMessageAuthorSidestringrequiredWhich side wrote the newest message.
UserAdminlastMessageTextBodystringrequiredPlain-text preview of the newest message.
messagesSupportMessageDto[]requiredComplete conversation ordered from oldest to newest.
Show propertiesHide properties
SupportMessageDtoauthorSidestringrequiredWhether the opener or the Leadtime team wrote the message.
UserAdminauthorUserIdobject | nullrequiredThe ticket opener user UUID for opener-authored messages. Null for Leadtime team messages.
bodystringrequiredMessage body rendered as HTML.
createdAtstring<date-time>requiredWhen the message was created.
idstringrequiredSupport message UUID.
manageAuthorobject | nullrequiredName and avatar of the Leadtime team member for team-authored messages. Never contains an email address.
Show propertiesHide properties
avatarobject | nullrequiredAvatar configuration for the Leadtime team member. Null when no avatar is configured.
Show propertiesHide properties
idstringrequiredStable avatar configuration identifier.
kindstringrequiredHow the support team member avatar is rendered.
generateduploadedleadtimeAgentoptionsobjectGenerated-avatar rendering options.
stylestringGenerated-avatar style when kind is generated.
adventurerbotttsinitialspersonasnotionistsdylanbottts-neutralnamestringrequiredDisplay name of the Leadtime team member.
textBodystringrequiredPlain-text message body for summaries and search.
statusstringrequiredCurrent ticket status.
OpenClosedtitlestringrequiredGenerated ticket title, or the immediate first-message fallback while generation is running.
titleIsGeneratingbooleanrequiredWhether a generated title is still being prepared.
unreadbooleanrequiredWhether the acting opener has an unread message from the Leadtime team.
userLastSeenAtobject<date-time> | nullrequiredWhen the ticket opener last viewed the conversation.
The first message is empty or invalid.
Unauthorized - Invalid or missing authentication token
Forbidden - Insufficient API scopes or permissions