Fetch Comment by Foreign ID
curl --request GET \
--url https://api.replyke.com/api/v6/:projectId/api/v7/comments/by-foreign-idimport requests
url = "https://api.replyke.com/api/v6/:projectId/api/v7/comments/by-foreign-id"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.replyke.com/api/v6/:projectId/api/v7/comments/by-foreign-id', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.replyke.com/api/v6/:projectId/api/v7/comments/by-foreign-id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.replyke.com/api/v6/:projectId/api/v7/comments/by-foreign-id"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.replyke.com/api/v6/:projectId/api/v7/comments/by-foreign-id")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.replyke.com/api/v6/:projectId/api/v7/comments/by-foreign-id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodyComment Endpoints
Fetch Comment by Foreign ID
Get a comment by its foreign ID
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-idimport requests
url = "https://api.replyke.com/api/v6/:projectId/api/v7/comments/by-foreign-id"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.replyke.com/api/v6/:projectId/api/v7/comments/by-foreign-id', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.replyke.com/api/v6/:projectId/api/v7/comments/by-foreign-id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.replyke.com/api/v6/:projectId/api/v7/comments/by-foreign-id"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.replyke.com/api/v6/:projectId/api/v7/comments/by-foreign-id")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.replyke.com/api/v6/:projectId/api/v7/comments/by-foreign-id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodyReturns a single comment matching the given
The
foreignId within the project. Useful for looking up comments using your own application’s identifiers.
Query Parameters
string
required
The foreign ID to look up.
string
Comma-separated list of associations to include. Valid values:
user, entity, space, parent.Response
Returns a200 OK with the following shape:
{
"comment": { ...Comment }
}
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
Not Found — 404
Not Found — 404
{ "error": "Comment not found", "code": "comment/not-found" }

