Get Content
Endpoint
GET /content/:contentId
Description
This endpoint allows you to retrieve content details by its unique identifier.
Authentication
Authentication is required for this endpoint. Include an API key in the Authorization header:
Authorization: Bearer YOUR_API_KEY
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
contentId | string | Yes | The unique identifier of the content to retrieve. |
Response
Success Response
Code: 200 OK
Content example:
{
"id": "00000000-0000-0000-0000-000000000000",
"name": "Content Name",
"type": "RICH_TEXT" | "LIST" | "PAGE",
"text": "Content value...",
"uploadId": "00000000-0000-0000-0000-000000000000",
"created": "2023-04-01T12:00:00Z",
"updated": "2023-04-01T12:00:00Z"
}
Error Responses
Unauthorized Error
Code: 401 Unauthorized
Content example:
{
"error": "Unauthorized"
}
Missing Content ID Error
Code: 400 Bad Request
Content example:
{
"error": "No contentId provided"
}
Content Not Found Error
Code: 404 Not Found
Content example:
{
"error": "Content not found"
}