Fetch Drafts
curl --request GET \
--url https://api.replyke.com/api/v6/:projectId/api/v7/entities/draftsimport requests
url = "https://api.replyke.com/api/v6/:projectId/api/v7/entities/drafts"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.replyke.com/api/v6/:projectId/api/v7/entities/drafts', 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/entities/drafts",
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/entities/drafts"
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/entities/drafts")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.replyke.com/api/v6/:projectId/api/v7/entities/drafts")
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_bodyEntity Endpoints
Fetch Drafts
Get the authenticated user’s draft entities
GET
/
:projectId
/
api
/
v7
/
entities
/
drafts
Fetch Drafts
curl --request GET \
--url https://api.replyke.com/api/v6/:projectId/api/v7/entities/draftsimport requests
url = "https://api.replyke.com/api/v6/:projectId/api/v7/entities/drafts"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.replyke.com/api/v6/:projectId/api/v7/entities/drafts', 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/entities/drafts",
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/entities/drafts"
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/entities/drafts")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.replyke.com/api/v6/:projectId/api/v7/entities/drafts")
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 paginated list of draft entities belonging to the authenticated user. Drafts are invisible to all other users and excluded from all other entity list endpoints until published.
Authentication required.
Each item is an Entity with
Query Parameters
number
default:"1"
Page number (1-indexed).
number
default:"10"
Number of drafts per page. Maximum
100.string
Filter drafts by
sourceId. Pass "null" to return drafts with no sourceId.string
Filter drafts by space ID.
string
Comma-separated list of associations to include:
user— the author’s user profilespace— the space the entity belongs tofiles— uploaded file/image attachments
topComment and saved are not supported for drafts.Response
Returns a paginated response:{
"data": [ ...Entity[] ],
"pagination": {
"page": 1,
"limit": 10,
"total": 3,
"totalPages": 1,
"hasMore": false
}
}
isDraft: true. Results are ordered by most recently updated.
Error Responses
Unauthorized — 401
Unauthorized — 401
Returned when no user is authenticated.

