Skip to main content

Reactions

Base URL: https://app.neuroflash.com/api/digital-twin-service

Reactions are twin responses to news articles and other content sources. They include suggested actions and can be filtered by language and type.

List Reactions

GET/v1/workspaces/{workspace_id}/reactions

List reactions with pagination.

Use basedOn=staticGroup to return static group reactions. Use basedOn=targetAudience to return reactions for target audiences.

Only returns reactions whose language matches the lead twin's language, filtering out legacy mismatches where a twin was assigned reactions in a different language.

Sorted by created_at in the specified order. Optionally filtered by language and type.

Requires authentication.

Path Parameters

ParameterTypeRequiredDescription
workspace_idstringYes

Query Parameters

ParameterTypeDefaultDescription
pageinteger1Page number (1-based)
sizeinteger20Number of elements per page
orderstringSort order by createdAt
languagestringFilter by language code (e.g. en, de, es)
typestringFilter by reaction type (chat or create)
basedOnstringFilter by source: 'staticGroup' or 'targetAudience'. If omitted, returns both.

Response

FieldTypeDescription
dataobjectList of reactions for this page
pageobject
sizeintegerNumber of elements per page
totalElementsintegerTotal number of matching elements
totalPagesintegerTotal number of pages
currentPageintegerCurrent page number (1-based)

Example

curl "https://app.neuroflash.com/api/digital-twin-service/v1/workspaces/{workspace_id}/reactions" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"

Response:

{
"data": {},
"page": {
"size": 0,
"totalElements": 0,
"totalPages": 0,
"currentPage": 0
}
}

Get Reaction Sources

GET/v1/workspaces/{workspace_id}/reactions/{reaction_id}/sources

Get article sources for a reaction.

Returns the full article content including RSS feed data and parsed content.

Requires authentication.

Path Parameters

ParameterTypeRequiredDescription
workspace_idstringYes
reaction_idstringYesThe reaction ID

Example

curl "https://app.neuroflash.com/api/digital-twin-service/v1/workspaces/{workspace_id}/reactions/{reaction_id}/sources" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"

Response:

[
{
"accessedAt": "2026-02-13T10:30:00Z",
"url": "https://example.com/article",
"type": "news",
"content": {}
}
]