Skip to content
StudyFetch API

Chat

Export user prompts as CSV

Streams every question users asked a chat component, as CSV. Scope it with componentId and a date range. Reads the captured prompt projection; run the backfill once to include conversations from before capture shipped.

OpenAPI specification
GET/api/v1/chat/prompts/export

Authentication

x-api-key

Request

curl --globoff --request GET \
  --url 'https://api.example.com/api/v1/chat/prompts/export' \
  --header 'x-api-key: <API_KEY>'

Replace credential and <field> placeholders with your own values. URL placeholders appear as %3Cfield%3E. Review the example values before sending your request.

Replace https://api.example.com with the API server URL.

Parameters

componentIdquery · string

Restrict to a single chat component (the identifier stored on the session — the component _id for embed traffic)

sessionIdquery · string

userIdquery · string

groupIdquery · string

startDatequery · string

ISO 8601

endDatequery · string

ISO 8601

Responses

200CSV export of user prompts
{
  "type": "string",
  "format": "binary"
}