get/api/v2/sentiment-time-series

Get sentiment time series data.

Get sentiment time series data.

Requires bearer API key

Parameters

X-Project-Id

header

Required for organization-wide API keys on project-scoped endpoints. Project-scoped keys infer the project automatically.

Schema: string

startDate

query

No description provided.

Schema: string:date-time

endDate

query

No description provided.

Schema: string:date-time

granularity

query

Bucket size. Unsupported values fall back to day.

Schema: string (day, week, month)

monitorIds

query

Comma-separated values are accepted.

Schema: string

modelIds

query

Comma-separated values are accepted.

Schema: string

timezone

query

IANA timezone used for local date buckets. Invalid values fall back to UTC.

Schema: string

Responses

200

Successful JSON response.

application/json
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "dates": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "series": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "positive",
              "neutral",
              "negative"
            ]
          },
          "data": {
            "type": "array",
            "items": {
              "type": "integer"
            }
          }
        },
        "required": [
          "name",
          "data"
        ]
      }
    }
  },
  "required": [
    "dates",
    "series"
  ]
}

Try it

Send this request to the local WatchLLM REST handler. Use a key from `/workspace/api`; organization keys can include `X-Project-Id` only when the endpoint documents that header.