Skip to main content
GET
/
api
/
v2
/
projects
/
{project_id}
/
sessions
cURL
curl -X GET 'https://app.freeplay.ai/api/v2/projects/your-project-id/sessions' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
[
  {
    "session_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "start_time": "<string>",
    "custom_metadata": {},
    "messages": [
      {
        "message_type": "<string>",
        "completion_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "environment": "<string>",
        "provider_name": "<string>",
        "model_name": "<string>",
        "input_variables": {},
        "prompt": [
          {
            "content": "<string>",
            "role": "user"
          }
        ],
        "prompt_template_name": "<string>",
        "response": "<string>",
        "customer_feedback": {},
        "evaluation_results": [
          {
            "name": "My Dataset",
            "manual_score": "<unknown>",
            "auto_eval_score": "<unknown>"
          }
        ],
        "client_evaluation_results": [
          {
            "name": "My Dataset",
            "value": "<unknown>"
          }
        ],
        "notes": [
          {
            "id": "bf56b063-80dc-4ad5-91f6-f7067ad1fa06",
            "content": "<string>",
            "created_at": "<string>",
            "created_by": {
              "id": "bf56b063-80dc-4ad5-91f6-f7067ad1fa06",
              "email_address": "<string>",
              "first_name": "<string>",
              "last_name": "<string>"
            }
          }
        ],
        "trace_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "format_version": 123,
        "start_time": "<string>",
        "end_time": "<string>"
      }
    ]
  }
]

Authorizations

Authorization
string
header
required

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

Path Parameters

project_id
string
required

Query Parameters

page
integer
default:1
page_size
integer
default:10
to_date
string | null
from_date
string | null
test_list
string | null
test_run_id
string | null
prompt_name
string | null
review_queue_id
string | null

Response

200 - application/json
session_id
string<uuid>
required
start_time
string
required
custom_metadata
Custom Metadata · object
required
messages
SessionCompletionInfo · object[]
required