Skip to content
POST /unified/ticketing/comments

Query Parameters

Refer Specifying query parameters in Truto APIs

ticketobject

Set either ticket or collections.

References: Tickets → id
11 supported6 required
Dixa
required
Hive
required
SolarWinds Service Desk
required
SurveySparrow Ticket Management
required
Wrike
required
Zoho Projects
required
Enchant
supported
Jira
supported
Pivotal Tracker
supported
Re:amaze
supported
Todoist
supported
idstring
required·

The unique identifier for a ticket

ticket_idstring

The unique identifier for a ticket

1 supported1 required
Help Scout
required
collections

Collection with type epic is required.

1 supported
Pivotal Tracker
supported
idstring

The unique identifier for a collection.

organizationobject
1 supported
Zoho Projects
supported
idstring

The unique identifier for a organization.

workspace
1 supported1 required
Zoho Projects
required
Show Truto-specific parameters
integrated_account_idstring · uuid
required·

The ID of the integrated account to use for the request.

Example: 62f44730-dd91-461e-bd6a-aedd9e0ad79d
truto_response_formatstring

The format of the response.

  • unified returns the response with unified mappings applied.
  • raw returns the unprocessed, raw response from the remote API.
  • normalized applies the unified mappings and returns the data in a normalized format.
  • stream returns the response as a stream, which is ideal for transmitting large datasets, files, or binary data. Using streaming mode helps to efficiently handle large payloads or real-time data flows without requiring the entire data to be buffered in memory.

Defaults to unified.

Example: unified
Possible values:
unifiedrawnormalizedstream
truto_ignore_remote_databoolean

Excludes the remote_data attribute from the response.

truto_exclude_fieldsstring[]

Array of fields to exclude from the response.

Example: truto_exclude_fields[]=id&truto_exclude_fields[]=name
remote_queryRecord<string, any>

Query parameters to pass to the underlying API without any transformations. Refer this guide to see how to structure the query parameters.

Example: remote_query[foo]=bar

Request Body

Refer Writing data using Unified APIs

attachmentsobject[]

Optional list of attachments to be attached to this thread.

9 supported
Dixa
supported
Enchant
supported
Hive
supported
Re:amaze
supported
SolarWinds Service Desk
supported
SurveySparrow Ticket Management
supported
Todoist
supported
Wrike
supported
Zoho Projects
supported
content_typestring
required·

The mime type of the file

datastring
required·

The base64 encoded data of the file

file_namestring
required·

The name of the file

created_atstring · date-time

The time when the attachment was created

file_urlstring

The URL to download the attachment

idstring

The unique identifier for the attachment

uploaded_byobject

The user who uploaded the attachment

2 properties
idstring

The user who uploaded the attachment

namestring

The user who uploaded the attachment

uploaded_by_typestring

The type of the user who uploaded the attachment

authorobject

The id of the user or contact who created the comment

11 supported2 required
Enchant
required
Gorgias
required
Dixa
supported
Hive
supported
Jira
supported
Pivotal Tracker
supported
Re:amaze
supported
SolarWinds Service Desk
supported
SurveySparrow Ticket Management
supported
Wrike
supported
Zoho Projects
supported
idstring
required·

Unique identifier of the user. Required if type is "user".

typestring
required·

Type of the author

Possible values:
usercontactsystemusercontact
emailsobject[]

Required if type is set to "contact"

1 property
emailstring

Email address of the contact

namestring

The name of the user or contact who created the comment

usernamestring

The username of the user or contact who created the comment

bccstring[]

Collection of strings representing email addresses.

1 supported
Help Scout
supported
bodystring

One of body or html_body is required.

11 supported10 required
Dixa
required
Help Scout
required
Jira
required
Pivotal Tracker
required
Re:amaze
required
SolarWinds Service Desk
required
SurveySparrow Ticket Management
required
Todoist
required
Wrike
required
Zoho Projects
required
Enchant
supported
ccstring[]

Collection of strings representing email addresses.

1 supported
Help Scout
supported
channelobject

The medium through which the comment was sent.

1 supported
Dixa
supported
idstring

The unique identifier for the channel

namestring

The name of the channel

typestring

The type of the channel

collections

Either ticket or collections is required.

1 supported
Todoist
supported
contact

Required if creating an outbound reply.

1 supported
Enchant
supported
emailsobject[]
1 property
emailstring

Email address of the contact

contact_idstring

The id of the contact who created the comment.

1 supported1 required
Help Scout
required
created_atstring · date-time

The date and time when the comment was created

11 supported
Dixa
supported
Enchant
supported
Hive
supported
Jira
supported
Pivotal Tracker
supported
Re:amaze
supported
SolarWinds Service Desk
supported
SurveySparrow Ticket Management
supported
Todoist
supported
Wrike
supported
Zoho Projects
supported
custom_fields
1 supported
Quickbase for Project Management
supported
draftboolean

If set to true, a draft reply is created.

1 supported
Help Scout
supported
html_bodystring

One of body or html_body is required.

5 supported1 required
Hive
required
Dixa
supported
Enchant
supported
Jira
supported
Re:amaze
supported
importedboolean

The imported field enables thread to be created for historical purposes (i.e. if moving from a different platform, you can import your history). When imported is set to true, no outgoing emails or notifications will be generated.

1 supported
Help Scout
supported
is_internalboolean

Set this value as true if the comment is internal note.

Possible values:
true
3 supported
Re:amaze
supported
true
Dixa
supported
Enchant
supported
is_privateboolean

Whether the comment is private or not

3 supported
Jira
supported
SolarWinds Service Desk
supported
SurveySparrow Ticket Management
supported
receiverobject

The id of the user or contact who is receiving the comment

2 supported1 required
Gorgias
required
Re:amaze
supported
idstring
required·

The id of the user or contact who receiving the comment

typestring
required·

Type of the receiver

Possible values:
usercontactsystem
namestring

The name of the user or contact who receiving the comment

remote_dataRecord<string, any>

Any additional data that should be passed as part of the request body. This data is not transformed by Truto and is passed as is to the remote API.

statusstring

Use this field to change conversation status when adding a thread. If not explicitly set, a reply thread will reactivate the conversation.

1 supported
Help Scout
supported
subjectstring

The subject of the comment

1 supported
Gorgias
supported
ticketobject

Either ticket or collections is required.

References: Tickets → id
11 supported1 required
Jira
required
Dixa
supported
Enchant
supported
Hive
supported
Pivotal Tracker
supported
Re:amaze
supported
SolarWinds Service Desk
supported
SurveySparrow Ticket Management
supported
Todoist
supported
Wrike
supported
Zoho Projects
supported
idstring
required·

The unique identifier for a ticket

user_idstring

ID of the user who is adding the thread. The resource owner is the default when not set.

1 supported
Help Scout
supported

Response Body

idstring
required·

The unique identifier for a comment

12 supported
Dixa
supported
Enchant
supported
Hive
supported
Jira
supported
Pivotal Tracker
supported
Quickbase for Project Management
supported
Re:amaze
supported
SolarWinds Service Desk
supported
SurveySparrow Ticket Management
supported
Todoist
supported
Wrike
supported
Zoho Projects
supported
attachmentsobject[]

The attachments of the comment

9 supported
Dixa
supported
Enchant
supported
Hive
supported
Re:amaze
supported
SolarWinds Service Desk
supported
SurveySparrow Ticket Management
supported
Todoist
supported
Wrike
supported
Zoho Projects
supported
content_typestring

The content type of the attachment

created_atstring · date-time

The time when the attachment was created

file_namestring

The attachment's name.

file_urlstring

The URL to download the attachment

idstring

The unique identifier for the attachment

uploaded_byobject

The user who uploaded the attachment

2 properties
idstring

The user who uploaded the attachment

namestring

The user who uploaded the attachment

uploaded_by_typestring

The type of the user who uploaded the attachment

authorobject

The id of the user or contact who created the comment

10 supported
Dixa
supported
Enchant
supported
Hive
supported
Jira
supported
Pivotal Tracker
supported
Re:amaze
supported
SolarWinds Service Desk
supported
SurveySparrow Ticket Management
supported
Wrike
supported
Zoho Projects
supported
idstring
required·

The id of the user or contact who created the comment

typestring
required·

Type of the author

Possible values:
usercontactsystem
namestring

The name of the user or contact who created the comment

usernamestring

The username of the user or contact who created the comment

bodystring

The body of the comment

10 supported
Dixa
supported
Enchant
supported
Jira
supported
Pivotal Tracker
supported
Re:amaze
supported
SolarWinds Service Desk
supported
SurveySparrow Ticket Management
supported
Todoist
supported
Wrike
supported
Zoho Projects
supported
channelobject

The medium through which the comment was sent.

1 supported
Dixa
supported
idstring

The unique identifier for the channel

namestring

The name of the channel

typestring

The type of the channel

created_atstring · date-time

The date and time when the comment was created

11 supported
Dixa
supported
Enchant
supported
Hive
supported
Jira
supported
Pivotal Tracker
supported
Re:amaze
supported
SolarWinds Service Desk
supported
SurveySparrow Ticket Management
supported
Todoist
supported
Wrike
supported
Zoho Projects
supported
etagstring

The unique identifier for the specific version of the resource.

html_bodystring

The body of the comment in HTML format

5 supported
Dixa
supported
Enchant
supported
Hive
supported
Jira
supported
Re:amaze
supported
is_internalboolean

Whether the comment is internal. True for internal notes left by users.

3 supported
Dixa
supported
Enchant
supported
Re:amaze
supported
is_privateboolean

Whether the comment is private or not

3 supported
Jira
supported
SolarWinds Service Desk
supported
SurveySparrow Ticket Management
supported
receiverobject

The id of the user or contact who is receiving the comment

1 supported
Re:amaze
supported
idstring
required·

The id of the user or contact who receiving the comment

typestring
required·

Type of the receiver

Possible values:
usercontactsystem
namestring

The name of the user or contact who receiving the comment

remote_dataRecord<string, any>

Raw data returned from the remote API call.

ticketobject

The ticket to which the comment belongs

References: Tickets → id
11 supported
Dixa
supported
Enchant
supported
Hive
supported
Jira
supported
Pivotal Tracker
supported
Re:amaze
supported
SolarWinds Service Desk
supported
SurveySparrow Ticket Management
supported
Todoist
supported
Wrike
supported
Zoho Projects
supported
idstring
required·

The unique identifier for a ticket

updated_atstring · date-time

The date and time when the comment was updated

5 supported
Jira
supported
Pivotal Tracker
supported
SolarWinds Service Desk
supported
Wrike
supported
Zoho Projects
supported
curl -X POST 'https://api.truto.one/unified/ticketing/comments?integrated_account_id=<integrated_account_id>' \
  -H 'Authorization: Bearer <your_api_token>' \
  -H 'Content-Type: application/json' \
  -d '{
  "body": "your_body",
  "author": {},
  "is_internal": true,
  "html_body": "your_html_body",
  "attachments": [],
  "channel": {},
  "created_at": "your_created_at",
  "receiver": {},
  "subject": "your_subject",
  "draft": true,
  "contact_id": "your_contact_id",
  "user_id": "your_user_id",
  "imported": true,
  "status": "your_status",
  "cc": [],
  "bcc": [],
  "ticket": {},
  "is_private": true,
  "remote_data": {}
}'
const integratedAccountId = '<integrated_account_id>';

const body = {
  "body": "your_body",
  "author": {},
  "is_internal": true,
  "html_body": "your_html_body",
  "attachments": [],
  "channel": {},
  "created_at": "your_created_at",
  "receiver": {},
  "subject": "your_subject",
  "draft": true,
  "contact_id": "your_contact_id",
  "user_id": "your_user_id",
  "imported": true,
  "status": "your_status",
  "cc": [],
  "bcc": [],
  "ticket": {},
  "is_private": true,
  "remote_data": {}
};

const response = await fetch(`https://api.truto.one/unified/ticketing/comments?integrated_account_id=${integratedAccountId}`, {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer <your_api_token>',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify(body),
});

const data = await response.json();
console.log(data);
import requests

url = "https://api.truto.one/unified/ticketing/comments"
headers = {
    "Authorization": "Bearer <your_api_token>",
    "Content-Type": "application/json",
}
params = {
    "integrated_account_id": "<integrated_account_id>"
}
payload = {
    "body": "your_body",
    "author": {},
    "is_internal": True,
    "html_body": "your_html_body",
    "attachments": [],
    "channel": {},
    "created_at": "your_created_at",
    "receiver": {},
    "subject": "your_subject",
    "draft": True,
    "contact_id": "your_contact_id",
    "user_id": "your_user_id",
    "imported": True,
    "status": "your_status",
    "cc": [],
    "bcc": [],
    "ticket": {},
    "is_private": True,
    "remote_data": {}
}

response = requests.post(url, headers=headers, params=params, json=payload)
print(response.json())
import Truto from '@truto/truto-ts-sdk';

const truto = new Truto({
  token: '<your_api_token>',
});

const result = await truto.unifiedApi.create(
  'ticketing',
  'comments',
  {
  "body": "your_body",
  "author": {},
  "is_internal": true,
  "html_body": "your_html_body",
  "attachments": [],
  "channel": {},
  "created_at": "your_created_at",
  "receiver": {},
  "subject": "your_subject",
  "draft": true,
  "contact_id": "your_contact_id",
  "user_id": "your_user_id",
  "imported": true,
  "status": "your_status",
  "cc": [],
  "bcc": [],
  "ticket": {},
  "is_private": true,
  "remote_data": {}
},
  { integrated_account_id: '<integrated_account_id>' }
);

console.log(result);
import asyncio
from truto_python_sdk import TrutoApi

truto_api = TrutoApi(token="<your_api_token>")

async def main():
    result = await truto_api.unified_api.create(
        "ticketing",
        "comments",
        {
        "body": "your_body",
        "author": {},
        "is_internal": True,
        "html_body": "your_html_body",
        "attachments": [],
        "channel": {},
        "created_at": "your_created_at",
        "receiver": {},
        "subject": "your_subject",
        "draft": True,
        "contact_id": "your_contact_id",
        "user_id": "your_user_id",
        "imported": True,
        "status": "your_status",
        "cc": [],
        "bcc": [],
        "ticket": {},
        "is_private": True,
        "remote_data": {}
},
        {"integrated_account_id": "<integrated_account_id>"}
    )
    print(result)

asyncio.run(main())