Skip to main content
GET
/
api
/
v2
/
experiments
/
{experiment_id}
/
logs
/
list
/
List experiment logs (V2)
curl --request GET \
  --url https://api.keywordsai.co/api/v2/experiments/{experiment_id}/logs/list/ \
  --header 'Authorization: Bearer <token>'
{
  "count": 1,
  "results": [
    {
      "id": "log_id_123",
      "input": {},
      "output": {}
    }
  ]
}
List all logs for an experiment using the V2 API.

Authentication

  • API key: Authorization: Bearer <API key>

Path Parameters

experiment_id
string
required
The ID of the experiment to list logs for.

Examples

import requests

experiment_id = "experiment_id_123"
url = f"https://api.keywordsai.co/api/v2/experiments/{experiment_id}/logs/list/"
headers = {
    "Authorization": "Bearer YOUR_API_KEY"
}

response = requests.get(url, headers=headers)
print(response.json())

Response

{
  "count": 1,
  "results": [
    {
      "id": "log_id_123",
      "input": {},
      "output": {}
    }
  ]
}