Comments

Get a specific comment

Retrieve a specific comment by its ID

get/posts/{postId}/comments/{commentId}

Path parameters

postIdstring uuid required
Example:123e4567-e89b-12d3-a456-426614174000

Unique identifier of the post

commentIdstring uuid required
Example:987fcdeb-51a2-43d1-9f6b-123456789abc

Unique identifier of the comment

Response

Successfully retrieved the comment

idstring uuid required

Unique identifier for the comment

postIdstring uuid required

ID of the post this comment belongs to

usernamestring required

Username of the comment author

contentstring required

Content of the comment

createdAtstring date-time required

Timestamp when the comment was created

updatedAtstring date-time required

Timestamp when the comment was last updated

Example response

{
  "id": "987fcdeb-51a2-43d1-9f6b-123456789abc",
  "postId": "123e4567-e89b-12d3-a456-426614174000",
  "username": "jane_smith",
  "content": "Great photo! Where was this taken?",
  "createdAt": "2025-06-01T11:15:00Z",
  "updatedAt": "2025-06-01T11:15:00Z"
}

Changes

Changed in 3 of the 3 revisions of this API.1746

  • 41c89b420e8551See the full diff
    • added the new path request parameter commentId

      new-request-path-parameter

    • added the new path request parameter postId

      new-request-path-parameter

    • the response property's maxLength was increased from 500 to 1000 for the response status

      response-property-max-length-increased

    • the response's property type changed from object to array for status

      response-property-type-changed

    • the response's property type changed from object to array for status

      response-property-type-changed

    • api operation id getComment removed and replaced with getCommentById

      api-operation-id-removed

    This revision also has 3 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

  • 2775bd09f55e224See the full diff
    • the response's property type changed from integer to string, and format from no format to uuid for status

      response-property-type-changed

    • the response's property type changed from integer to string, and format from no format to uuid for status

      response-property-type-changed

    • deleted the path request parameter commentId

      request-parameter-removed

    • deleted the path request parameter postId

      request-parameter-removed

    • added the optional property to the response with the status

      response-optional-property-added

    • added the optional property to the response with the status

      response-optional-property-added

    • added the required property to the response with the status

      response-required-property-added

    • added the required property to the response with the status

      response-required-property-added

  • dbaf42ae43111021See the full diff
    • for the path request parameter commentId, the type changed from string to integer, and format from uuid to no format

      request-parameter-type-changed

    • for the path request parameter postId, the type changed from string to integer, and format from uuid to no format

      request-parameter-type-changed

    • the response property's maxLength was unset from 1000 for the response status

      response-property-max-length-unset

    • the response property's maxLength was unset from 50 for the response status

      response-property-max-length-unset

    • the response property's minLength was decreased from 1 to 0 for the response status

      response-property-min-length-decreased

    • the response property's minLength was decreased from 1 to 0 for the response status

      response-property-min-length-decreased

    • the response's property type changed from string to integer, and format from uuid to no format for status

      response-property-type-changed

    • the response's property type changed from string to integer, and format from uuid to no format for status

      response-property-type-changed

    • removed the required property from the response with the status

      response-required-property-removed

    • removed the required property from the response with the status

      response-required-property-removed

    • removed the optional property from the response with the status

      response-optional-property-removed

    • removed the optional property from the response with the status

      response-optional-property-removed

    • api operation id getCommentById removed and replaced with getComment

      api-operation-id-removed

    This revision also has 4 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog