Skip to main content

Serializer mixin: relabels the actor as "Nekt Support" for customer-facing output when the row was produced during a support impersonation session.

Add to any serializer whose model is an ImpersonationAttributedModel and that exposes created_by and/or triggered_by. The real user stays in the DB and the real agent stays in the ImpersonationSession audit trail.

The API contract is preserved: an EXPANDED actor field returns the full "Nekt Support" object, while an UNEXPANDED one returns the NEKT_SUPPORT_ID sentinel int — same scalar-id (integer) vs object shape as a normal user. We never return the real user's id here (the frontend would resolve it against the org and surface the impersonated customer instead of "Nekt Support").

id
string<uuid>
required
read-only
number
integer | null
required
created_at
string<date-time>
required
read-only
updated_at
string<date-time>
required
read-only
started_at
string<date-time> | null
required
ended_at
string<date-time> | null
required
duration_seconds
integer | null
required
status
enum<string>
required
  • pending_events - PENDING_EVENTS
  • queued - QUEUED
  • running - RUNNING
  • success - SUCCESS
  • failed - FAILED
  • cancelling - CANCELLING
  • canceled - CANCELED
Available options:
pending_events,
queued,
running,
success,
failed,
cancelling,
canceled
trigger
object
required
full_sync
boolean | null
required
extra_config
unknown
required
credit_charge_status
required
  • unsuccessful - Unsuccessful
  • charged - Charged
Available options:
unsuccessful,
charged
el_cost_usd
number<double> | null
required
el_cost_metadata
unknown
required
transformation_cost_usd
number<double> | null
required
transformation_cost_metadata
unknown
required
triggered_by
integer
required
read-only

User that triggered the run (Expandable)

triggered_by_token
string
required
read-only

API token that triggered the run (Expandable)

source
string
required
read-only

Source of the run (Expandable)

destination
string
required
read-only

Destination of the run (Expandable)

transformation
string
required
read-only

Transformation of the run (Expandable)