Skip to main content
POST
/
sessions
/
import
Import sessions from a Langfuse LangGraph trace export
curl --request POST \
  --url https://api.galtea.ai/sessions/import \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form file='@example-file' \
  --form 'versionId=<string>'
{
  "jobId": "job_abc123"
}

Documentation Index

Fetch the complete documentation index at: https://docs.galtea.ai/llms.txt

Use this file to discover all available pages before exploring further.

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

file
file
required

The Langfuse trace export (JSON). Max 25MB.

versionId
string
required

Id of the Version the imported sessions belong to.

isProduction
enum<string>

Whether the imported sessions are production traffic ("true") or development traffic ("false"). Defaults to "true" when omitted.

Available options:
true,
false

Response

Import accepted; poll the returned jobId for completion.

jobId
string
required

Id of the BullMQ job processing the import. Poll /jobs/{jobId}/status for state.

Example:

"job_abc123"