Skip to main content
GET
/
:projectId
/
api
/
v7
/
entities
/
drafts
Fetch Drafts
curl --request GET \
  --url https://api.replyke.com/api/v6/:projectId/api/v7/entities/drafts
Returns 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.

Query Parameters

page
number
default:"1"
Page number (1-indexed).
limit
number
default:"10"
Number of drafts per page. Maximum 100.
sourceId
string
Filter drafts by sourceId. Pass "null" to return drafts with no sourceId.
spaceId
string
Filter drafts by space ID.
include
string
Comma-separated list of associations to include:
  • user — the author’s user profile
  • space — the space the entity belongs to
  • files — 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
  }
}
Each item is an Entity with isDraft: true. Results are ordered by most recently updated.

Error Responses

Returned when no user is authenticated.