Skip to main content
POST
Create a session

Authorizations

X-DROMO-LICENSE-KEY
string
header
required

Your backend license key (is_for_backend_api=True) from the Dromo Dashboard. Never expose this client-side.

Body

application/json
import_identifier
string

A label for your own bookkeeping (e.g. schema name, import type). Not used for lookups. Defaults to "".

Example:

"user_import_v1"

expires_in
integer

Hydration token TTL in seconds. Defaults to 21600 (6 hours).

Example:

3600

Response

201 - application/json

Session created

sessionId
string<uuid>

Backend session identifier. Persist this durably — needed to resume the session or delete it later.

Example:

"1b6acf28-8748-4120-8d7a-4b7846d5e487"

hydrationId
string

Short-lived access token. Pass this to the widget to start or resume the session.

Example:

"<signed-token>"

expiresIn
integer

Seconds until the hydrationId expires.

Example:

21600

savedAt
string<date-time>
Example:

"2026-06-19T18:00:00.000Z"