Feed HTML file-backed description content
GET /task/v1/feeds/{feed_key}/content
Operation id: getFeedContent
Description
Retrieves the HTML description content for a feed. Only feeds with description type "FILE" return content. The contents field contains raw HTML with dynamic token replacements applied by the service layer.
Processing steps:
- Validates
feed_key> 0 - Retrieves feed record
- Parses
feedDescriptionJSON:{"type":"FILE","fileKey":"...","entity":"filename.html"} - If type ≠
"FILE"or parsing fails → E404 - Fetches file content via
FeedProcessService.getFeedDescription() - Applies token replacements (see below)
- Returns content in
{status: OK, contents: "..."}wrapper
Token replacements applied to content:
| Token | Replaced with |
|---|---|
$$authToken$$ | Authentication token |
$Session_userId$ | User ID from session |
$Session_userName$ | User name from session |
$Session_unitId$ | Unit ID from session |
$Param_taskId$ | Feed's cluster child ID |
$Param_status$ | Feed's status |
$Param_initiativeId$ | Feed's cluster ID |
$Session_parentUnitId$ | Feed's parent unit ID |
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
feed_key | Integer | Yes | Unique numeric feed identifier (→ E105 if ≤ 0) |
Error Scenarios
| Scenario | HTTP | Error Code | Message |
|---|---|---|---|
Missing / invalid X-reflexis-csrf-token-X | 401 | E202 | User session is invalid |
Missing or invalid feed_key (≤ 0) | 400 | E105 | Please provide valid feed_key. |
| Feed record not found | 200 | E404 | Feed not found |
| Feed description is null or empty | 500 | E404 | No data found |
Feed description type is not "FILE" | 500 | E404 | No data found |
| Feed description is invalid JSON | 500 | E404 | No data found |
| File content retrieval returns empty/null | 500 | E404 | No data found |
| Unexpected server-side error | 500 | E500 | Unexpected server error. |
Error Codes Reference
| Code | Description |
|---|---|
E105 | Invalid or missing feed_key |
E202 | User session is invalid |
E404 | No data found / Feed not found |
E500 | Unexpected server error |
Tags: MyWorkFeeds
Parameters
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
feed_key | integer | Yes | Unique numeric feed identifier |
Security
- AuthTokenHeader (apiKey)
- Session authentication token validated server-side against the user session store.
Responses
200 — Success — {status: OK, contents: "<html>..."}
Content type: application/json
400 — E105 — invalid or missing feed_key
Content type: application/json
401 — Missing or invalid X-reflexis-csrf-token-X session token
Content type: application/json
500 — Unexpected server-side error
Content type: application/json
Response models
200 — Success — {status: OK, contents: "<html>..."}
Content type: application/json
Schema
JSON object (structure varies by endpoint).
{
"type": "object",
"description": "JSON object (structure varies by endpoint)."
}
Example:
{
"status": "OK",
"contents": "<p>Task instructions go here...</p>"
}
400 — E105 — invalid or missing feed_key
Content type: application/json
Schema
| Property | Type | Required | Description |
|---|---|---|---|
status | string | Yes | Always "ER" for error responses |
errorCode | string | Yes | Application-level error code (e.g. E202, E105, E404) |
response | string | Yes | Human-readable error message |
{
"type": "object",
"example": {
"status": "ER",
"errorCode": "E202",
"response": "User session is invalid"
},
"required": [
"status",
"errorCode",
"response"
],
"properties": {
"status": {
"type": "string",
"description": "Always \"ER\" for error responses",
"enum": [
"ER"
]
},
"errorCode": {
"type": "string",
"description": "Application-level error code (e.g. E202, E105, E404)"
},
"response": {
"type": "string",
"description": "Human-readable error message"
}
}
}
401 — Missing or invalid X-reflexis-csrf-token-X session token
Content type: application/json
Schema
| Property | Type | Required | Description |
|---|---|---|---|
status | string | Yes | Always "ER" for error responses |
errorCode | string | Yes | Application-level error code (e.g. E202, E105, E404) |
response | string | Yes | Human-readable error message |
{
"type": "object",
"example": {
"status": "ER",
"errorCode": "E202",
"response": "User session is invalid"
},
"required": [
"status",
"errorCode",
"response"
],
"properties": {
"status": {
"type": "string",
"description": "Always \"ER\" for error responses",
"enum": [
"ER"
]
},
"errorCode": {
"type": "string",
"description": "Application-level error code (e.g. E202, E105, E404)"
},
"response": {
"type": "string",
"description": "Human-readable error message"
}
}
}
Example:
{
"status": "ER",
"errorCode": "E202",
"response": "User session is invalid"
}
500 — Unexpected server-side error
Content type: application/json
Schema
| Property | Type | Required | Description |
|---|---|---|---|
status | string | Yes | Always "ER" for error responses |
errorCode | string | Yes | Application-level error code (e.g. E202, E105, E404) |
response | string | Yes | Human-readable error message |
{
"type": "object",
"example": {
"status": "ER",
"errorCode": "E202",
"response": "User session is invalid"
},
"required": [
"status",
"errorCode",
"response"
],
"properties": {
"status": {
"type": "string",
"description": "Always \"ER\" for error responses",
"enum": [
"ER"
]
},
"errorCode": {
"type": "string",
"description": "Application-level error code (e.g. E202, E105, E404)"
},
"response": {
"type": "string",
"description": "Human-readable error message"
}
}
}
Example:
{
"status": "ER",
"errorCode": "E302",
"response": "Internal server error"
}