---
title: "Import sessions"
method: POST
path: "/sessions/importer"
tags: ["Session"]
---

# Import sessions

`POST /sessions/importer`

Bulk-import sessions (contacts). The body must be `{ "sessions": [...] }`. Every entry is matched
against an existing contact before anything is created — by `userId` when the row carries one,
otherwise by `email` — so importing the same list twice updates those contacts instead of
duplicating them. Returns the ids of the imported sessions.

At most `MAX_IMPORT_SESSIONS_PER_REQUEST` rows per call: a request has to finish well inside the
edge's 60s window, and a larger list belongs in a sequence of these calls. Oversized bodies are
rejected rather than truncated.

## Headers

- `project` string, required

## Request body

- unknown

## Response `200`

Ok

- string[]

---

[API](https://skmtc.dev/gleap/apis/gleap-server.md) · [All operations](https://skmtc.dev/gleap/apis/gleap-server/llms.txt) · [OpenAPI document](https://skmtc.dev/gleap/apis/gleap-server/revisions/0a92e15c9803?raw)
