Skip to main content
POST
/
testCases
/
export
Export test cases as CSV
curl --request POST \
  --url https://api.galtea.ai/testCases/export \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "testCaseIds": [
    "tc_123",
    "tc_456"
  ],
  "testIds": [
    "test_123",
    "test_456"
  ]
}
'
{
  "downloadUrl": "<string>"
}

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
testCaseIds
string[]

Array of test case IDs to export. Provide either testCaseIds or testIds.

Example:
["tc_123", "tc_456"]
testIds
string[]

Array of test IDs for which to export test cases. Provide either testCaseIds or testIds.

Example:
["test_123", "test_456"]

Response

CSV exported successfully

downloadUrl
string

Presigned URL to download the CSV file