API View Comment

From IVS Wiki
Revision as of 15:37, 11 June 2026 by IVSWikiBlue (talk | contribs) (Created page with "This API call retrieves a specific comment by its ID. ===Resource URL=== <pre>http://valt.example.com/api/v3/comment/{id}</pre> ''Replace {id} with the actual ID number of th...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This API call retrieves a specific comment by its ID.

Resource URL

http://valt.example.com/api/v3/comment/{id}

Replace {id} with the actual ID number of the comment.

Resource Information

Method GET
Headers Content-Type: application/json
Response Type JSON
Authentication Required Yes

Parameters

Path Parameters

Parameter Description Example
id The ID of the comment to retrieve. 42

Response

Code Reason
200 Success
400 Invalid Request (See Response for Specific Error)
401 Unauthorized
500 Internal Server Error

A successful response returns the full Comment object:

Comment Object Fields
Field Type Description
id int Unique identifier of the comment.
parentId int or null The ID of the parent comment, if applicable. Null if it has no parent.
message string or null The text content of the comment.
recordId string Unique identifier for the associated record.
recordTime string Seconds from the beginning of the associated record.
createdAt int Unix timestamp when the comment was created.
updatedAt int Unix timestamp when the comment was last updated.
author User object The author of the comment. Contains id, username, and displayName.
updatedBy User object or null The user who last updated the comment. Null if never updated.
audioId string or null Unique identifier for the associated audio, if applicable.
template Template object or null Template attachment, if applicable.
files array List of file attachments. Empty array if no files are attached. Each file contains id, name, and size (bytes).
color string Color name associated with the comment.
replies array Array of reply comments.
taggedUsers array Array of users tagged in the comment.
taggedUserGroups array Array of user groups tagged in the comment.

Examples

Request

https://ivstest1.ad.ipivs.com/api/v3/comment/42?access_token=e82632d19c523678fea3d1016c6df9e9

Successful Response

Sample response is shown with line breaks to make it more readable. Actual responses will not include line breaks.

{
  "id": 42,
  "parentId": null,
  "message": "comment 2",
  "recordId": "7b931a86-2142-4121-a6f8-2e3197d4c5bf",
  "recordTime": 2,
  "audioId": null,
  "template": null,
  "author": {
    "id": 2,
    "displayName": "user without rights",
    "username": "no rights user"
  },
  "files": [],
  "updatedBy": null,
  "color": "red",
  "replies": [],
  "taggedUsers": [],
  "taggedUserGroups": [],
  "createdAt": 1737109634,
  "updatedAt": 1737111434
}

Failure Response

Sample response is shown with line breaks to make it more readable. Actual responses will not include line breaks.

{
  "error": {
    "code": 500,
    "message": "Internal Server Error"
  }
}