Skip to content
StudyFetch API

Performance Insights

Retrieve conversation

Returns a single conversation with its full message history. Image references are hydrated with signed URLs.

OpenAPI specification
GET/api/v1/performance-insights/session/{sessionId}

Authentication

x-api-key

Request

curl --globoff --request GET \
  --url 'https://api.example.com/api/v1/performance-insights/session/%3CsessionId%3E' \
  --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

sessionIdpath · string · required

Conversation / session ID

Responses

200Conversation with messages
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Conversation / session ID"
    },
    "userId": {
      "type": "string",
      "description": "Owner user ID"
    },
    "organizationId": {
      "type": "string",
      "description": "Organization ID"
    },
    "groupId": {
      "type": "string",
      "description": "Group ID composite key (sorted, comma-separated) when sessions are scoped to a group"
    },
    "title": {
      "type": "string",
      "description": "Conversation title"
    },
    "messages": {
      "description": "AI SDK UIMessage array with hydrated image URLs",
      "type": "array",
      "items": {
        "type": "object"
      }
    },
    "createdAt": {
      "format": "date-time",
      "type": "string",
      "description": "Creation timestamp"
    },
    "updatedAt": {
      "format": "date-time",
      "type": "string",
      "description": "Last update timestamp"
    },
    "suggestionContext": {
      "type": "string",
      "description": "Report-page suggestion context stamped on this conversation, if any"
    }
  },
  "required": [
    "id",
    "userId",
    "organizationId",
    "title",
    "messages",
    "createdAt",
    "updatedAt"
  ]
}
404Conversation not found