Skip to main content
GET
/
workspaces
/
{workspaceId}
/
narratives
Get narratives within the provided workspace ID.
curl --request GET \
  --url https://api.peakmetrics.com/workspaces/{workspaceId}/narratives \
  --header 'Authorization: Bearer <token>'
[
  {
    "id": 2,
    "title": "<string>",
    "isFavorite": true,
    "aggregations": {
      "mentionCount": 1,
      "avgSentiment": 0,
      "relevancyScore": 50
    },
    "created": "2023-11-07T05:31:56Z",
    "summary": "<string>",
    "tags": [
      {
        "id": 123,
        "name": "<string>",
        "createdDate": "2023-11-07T05:31:56Z"
      }
    ]
  }
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

workspaceId
integer
required

The unique identifier for the workspace.

Query Parameters

limit
integer

The maximum number of narratives to return, default 1000.

Required range: 1 <= x <= 1000
offset
integer

The number of narratives to skip before returning, default 0.

Required range: x >= 0
sort
enum<string>

The field to sort the narratives by descending, default relevancy.

Available options:
relevancy,
mentionCount,
avgSentiment,
created,
favorite
since
string<date-time>
required

The minimum published date of the mentions to include in the narratives.

to
string<date-time>
required

The maximum published date of the mentions to include in the narratives.

channels
enum<string>[]

Filter the returned narratives to those whose mentions are part of the provided channel.

Available options:
blogsdiscussions,
bluesky,
facebook,
instagram,
news,
reddit,
redditComment,
telegram,
threads,
tiktok,
twitter,
vk,
weibo,
youtube

Response

200 - application/json

A JSON array of narrative objects

id
integer

The unique identifier for the narrative.

Required range: x >= 1
title
string

The AI generated title for the narrative.

isFavorite
boolean

Favorited status of narrative for requesting user.

aggregations
object
created
string<date-time>

The date and time the narrative was created.

summary
string

The summary of the given narrative.

tags
object[]

Tags assigned by team members to the narrative.