Get Comment by ID

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Get Comment by ID

Fetches a specific comment from a ticket using the comment's unique identifier. The response includes the comment text, the author, and the timestamp when it was created. Use the Get Comments by Ticket ID endpoint first to discover valid comment IDs.

Endpoint

GET /api/v1/tickets/getCommentById

Authentication

Basic HTTP Authentication required.
Encode username:password in Base64 and pass in the Authorization header:

Authorization: Basic {base64(username:password)}

When to use

Use this endpoint when you need to retrieve the full details of a known comment — for example, after receiving a webhook notification about a new comment on a subscribed ticket, where the callback body includes the ticket ID and enough context to identify the comment of interest. It is also useful for directly fetching a comment when you already know its ID from a prior list operation.

Query Parameters

ParameterTypeRequiredDescription
idinteger (int32)YesMerchant profile ID associated with the ticket.
ticketIdinteger (int32)YesID of the ticket the comment belongs to.
commentIdinteger (int32)YesUnique ID of the comment to retrieve.

Response

200 OK

FieldTypeDescription
data.ticketCommentIdintegerThe unique ID of the comment.
data.createdDatestring (date-time)ISO 8601 timestamp of when the comment was posted.
data.createdBystringUsername or display name of the comment author.
data.textstringThe full text content of the comment.
requestIdintegerInternal request tracking ID.
successbooleantrue if the comment was retrieved successfully.
errorstringError message if the operation failed.
validationErrorsarrayList of field-level validation issues.
{
  "data": {
    "ticketCommentId": 7712,
    "createdDate": "2026-05-20T14:32:00Z",
    "createdBy": "[email protected]",
    "text": "We have reviewed the banking application. Please provide a copy of the voided check to proceed with Instant Funding activation."
  },
  "requestId": 98128,
  "success": true,
  "error": null,
  "validationErrors": []
}

Error Codes

CodeWhen it happens
400Missing or invalid query parameters (id, ticketId, or commentId).
401Invalid or missing Basic Auth credentials.
403User does not have permission for this operation.
404Comment not found for the given commentId on the specified ticket.
500Internal server error.

Common Mistakes

  • Passing a commentId that belongs to a different ticket — comment IDs must correspond to the specified ticketId.
  • Omitting the id (merchant profile ID) parameter — all three parameters are required.
  • Using the merchant profile ID as the commentId by mistake — the id field is the merchant profile ID, not the comment ID.

Related Endpoints

  • GET /api/v1/tickets/getCommentsByTicketId — List all comments on a ticket to discover valid commentId values.
  • POST /api/v1/tickets/comment — Add a new comment to a ticket.
  • GET /api/v1/tickets/getTicketById — Retrieve overall ticket details and status.

Example

curl -X GET "https://hq.staging.netevia.dev/api/v1/tickets/getCommentById?id=70269&ticketId=48291&commentId=7712" \
  -H "Authorization: Basic $(echo -n 'username:password' | base64)"
Query Params
int32
required
int32
required
int32
required
Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Response

Language
Credentials
Basic
base64
:
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
text/json