Skip to main content
GET
/
:projectId
/
entities
/
:entityId
Get Single Entity
curl --request GET \
  --url https://api.replyke.com/api/v6/:projectId/entities/:entityId
{
  "id": "<string>",
  "userId": "<string>",
  "shortId": "<string>",
  "foreignId": "<string>",
  "title": "<string>",
  "content": "<string>",
  "keywords": [
    {}
  ],
  "attachments": [
    {}
  ],
  "metadata": {},
  "location": {
    "type": "<string>",
    "coordinates": [
      123
    ]
  },
  "upvotes": [
    {}
  ],
  "downvotes": [
    {}
  ],
  "views": 123,
  "createdAt": "<string>",
  "updatedAt": "<string>"
}
Fetches a single entity by its ID. Publicly accessible.

Path Parameters

entityId
string
required
ID of the entity to retrieve

Response

id
string
Unique entity identifier
userId
string
ID of the user who created the entity
shortId
string
Short identifier for easy sharing
foreignId
string
External reference ID if provided
title
string
Entity title
content
string
Entity content
keywords
array
Array of keywords associated with the entity
attachments
array
Array of attachment objects
metadata
object
Custom metadata
location
object
upvotes
array
Array of user IDs who upvoted
downvotes
array
Array of user IDs who downvoted
views
number
Number of times the entity was viewed
createdAt
string
Creation timestamp in ISO 8601 format
updatedAt
string
Last update timestamp in ISO 8601 format

Error Responses

{
  "error": "Missing a valid entityId in request query.",
  "code": "entity/invalid-resource-id"
}
{
  "error": "Entity not found",
  "code": "entity/not-found"
}
{
  "error": "Internal server error.",
  "code": "entity/server-error",
  "details": "<Error message>"
}

Notes

  • No authentication is required.
  • Entity score may be updated asynchronously after response is sent.
  • Returned entity includes metadata, vote counts, and replies count if available.
I