Skip to main content
POST
/
analytics
/
export
Export analytics data
curl --request POST \
  --url https://api.galtea.ai/analytics/export \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "productId": "prod_123",
  "versionIds": [
    "<string>"
  ],
  "testIds": [
    "test_123",
    "test_456"
  ],
  "metricIds": [
    "metric_123",
    "metric_456"
  ],
  "languages": [
    "<string>"
  ],
  "from": "2023-11-07T05:31:56Z",
  "to": "2023-11-07T05:31:56Z"
}
'
{}

Authorizations

Authorization
string
header
required

API key authorization. Pass your API key in the Authorization header as a Bearer token. Both new (gsk_*) and legacy (gsk-) API keys are accepted, e.g. Authorization: Bearer gsk_... or Authorization: Bearer gsk-....

Body

application/json
productId
string
required

Product ID (required)

Example:

"prod_123"

versionIds
string[]

Filter by version IDs

testIds
string[]

Filter by test IDs

Example:
["test_123", "test_456"]
metricIds
string[]

Filter by metric IDs

Example:
["metric_123", "metric_456"]
languages
string[]

Filter by language codes

from
string<date-time>

Start date for filtering

to
string<date-time>

End date for filtering

Response

Analytics data exported successfully

Exported analytics data