Skip to main content
GET
/
:projectId
/
api
/
v7
/
comments
/
by-foreign-id
Fetch Comment by Foreign ID
curl --request GET \
  --url https://api.replyke.com/api/v6/:projectId/api/v7/comments/by-foreign-id
Returns a single comment matching the given foreignId within the project. Useful for looking up comments using your own application’s identifiers.

Query Parameters

foreignId
string
required
The foreign ID to look up.
include
string
Comma-separated list of associations to include. Valid values: user, entity, space, parent.

Response

Returns a 200 OK with the following shape:
{
  "comment": { ...Comment }
}
The comment field is a Comment object. If the comment has been removed (user-deleted or moderation-removed) and the viewer is not the author, identifying fields (userId, user, content, gif, mentions, attachments) are nulled out as a Reddit-style placeholder.

Error Responses

{ "error": "Comment not found", "code": "comment/not-found" }