# GetWlInstrumentationExport

Export instrumentation data for a White Label site, including session events, subscriptions, autotrade account stability, and executions within the requested time window. These are SSO/login handshakes, not full pageview analytics. Only WhiteLabel admins can access this endpolong. Non-Paginated endpolong.

Endpoint: GET /General/GetWlInstrumentationExport
Version: v4
Security: 

## Query parameters:

  - `WhiteLabelSiteId` (integer,null, required)
    The White Label site Id

  - `FromWhen` (integer,null)
    (Optional) The start of the export window as a Unix timestamp (seconds). If omitted, DaysBack is used to calculate the window start.

  - `ToWhen` (integer,null)
    (Optional) The end of the export window as a Unix timestamp (seconds). Defaults to now if omitted.

  - `DaysBack` (integer,null)
    (Optional) The lookback window in days, used when FromWhen is omitted. Default: 30.

  - `PersonId` (integer,null)
    (Optional) Filter results to a single subscriber by PersonId.

  - `SystemId` (integer,null)
    (Optional) Filter results to a single strategy by SystemId.

  - `SessionLimit` (integer,null)
    (Optional) Maximum number of session events to return. Default: 2000, max: 5000.

  - `SubscriptionLimit` (integer,null)
    (Optional) Maximum number of subscriptions to return. Default: 2000, max: 5000.

  - `ExecutionLimit` (integer,null)
    (Optional) Maximum number of executions to return. Default: 1000, max: 5000.

## Response 200 fields (application/json):

  - `Results` (array,null)
    Result array

  - `Results.WhiteLabelSiteId` (integer)
    The White Label site Id

  - `Results.WhiteLabelSiteName` (string,null)
    The White Label site name

  - `Results.WhiteLabelSiteDomain` (string,null)
    The White Label site domain

  - `Results.RequestedWindow` (object)

  - `Results.RequestedWindow.FromWhen` (integer)
    The start of the requested window as a Unix timestamp (seconds)

  - `Results.RequestedWindow.ToWhen` (integer)
    The end of the requested window as a Unix timestamp (seconds)

  - `Results.RequestedWindow.DaysBack` (integer)
    The lookback window in days that was applied

  - `Results.Filters` (object)

  - `Results.Filters.PersonId` (integer,null)
    The PersonId filter, if provided

  - `Results.Filters.SystemId` (integer,null)
    The SystemId filter, if provided

  - `Results.Filters.SessionLimit` (integer)
    The maximum number of session events returned

  - `Results.Filters.SubscriptionLimit` (integer)
    The maximum number of subscriptions returned

  - `Results.Filters.ExecutionLimit` (integer)
    The maximum number of executions returned

  - `Results.SessionEventSummary` (object)

  - `Results.SessionEventSummary.Total` (integer)
    Total number of session events in the requested window

  - `Results.SessionEventSummary.IsTruncated` (boolean)
    TRUE if session event rows were truncated due to the session_limit

  - `Results.SessionEventSummary.NinjatraderOauthHandshake` (integer)
    Number of NinjaTrader OAuth handshake events

  - `Results.SessionEventSummary.PartnerWebhookLogin` (integer)
    Number of partner webhook login events

  - `Results.SessionEventSummary.TypeCounts` (object,null)
    Count of session events by event type

  - `Results.SessionEventSummary.SourceCounts` (object,null)
    Count of session events by event source

  - `Results.SessionEvents` (array,null)
    Individual session/login events for subscribers in the requested window

  - `Results.SessionEvents.PersonId` (integer)
    The PersonId of the user who generated the event

  - `Results.SessionEvents.EventType` (string,null)
    The event type (e.g. ninjatrader_oauth_handshake, partner_webhook_login)

  - `Results.SessionEvents.EventSource` (string,null)
    The source table or system that recorded the event

  - `Results.SessionEvents.EventWhenUnix` (integer)
    The event timestamp as a Unix timestamp (seconds)

  - `Results.SessionEvents.EventWhen` (string,null)
    The event timestamp as a formatted UTC string

  - `Results.SessionEvents.Email` (string,null)
    The subscriber's email address

  - `Results.SessionEvents.FullName` (string,null)
    The subscriber's full name

  - `Results.SessionEvents.SourceIp` (string,null)
    The IP address the event originated from

  - `Results.SessionEvents.PartnerUserId` (string,null)
    The partner-side user identifier, if provided

  - `Results.SessionEvents.IsTrial` (boolean)
    TRUE if the subscriber is on a trial

  - `Results.SessionEvents.EmailVerified` (boolean)
    TRUE if the subscriber's email address has been verified

  - `Results.SessionEvents.EventRecordId` (integer)
    The source record ID that generated this event

  - `Results.Autotrade` (object)

  - `Results.Autotrade.Summary` (object)

  - `Results.Autotrade.Summary.Enabled` (integer)
    Number of accounts with autotrade enabled

  - `Results.Autotrade.Summary.Configured` (integer)
    Number of accounts that are configured for autotrade

  - `Results.Autotrade.Summary.PendingAuth` (integer)
    Number of accounts pending broker authentication

  - `Results.Autotrade.Summary.Exceptions` (integer)
    Number of accounts in an exception state

  - `Results.Autotrade.Summary.SyncDisabled` (integer)
    Number of accounts with sync disabled

  - `Results.Autotrade.Summary.BrokerInactive` (integer)
    Number of accounts where the broker connection is inactive

  - `Results.Autotrade.Summary.C2Inactive` (integer)
    Number of accounts where C2 is inactive

  - `Results.Autotrade.Summary.Disabled` (integer)
    Number of accounts that are disabled

  - `Results.Autotrade.Summary.ClosingModeOnly` (integer)
    Number of accounts in closing-mode-only state

  - `Results.Autotrade.Summary.HighScale` (integer)
    Number of accounts at high scaling

  - `Results.Autotrade.Summary.NoNetLiquidationValue` (integer)
    Number of accounts with no net liquidation value

  - `Results.Autotrade.Summary.Total` (integer)
    Total number of autotraded accounts

  - `Results.Autotrade.Accounts` (array,null)
    Per-account autotrade stability details

  - `Results.Autotrade.Accounts.Account` (string,null)
    The brokerage account identifier

  - `Results.Autotrade.Accounts.BrokerId` (integer)
    The broker Id

  - `Results.Autotrade.Accounts.PersonId` (integer)
    The C2 PersonId of the account owner

  - `Results.Autotrade.Accounts.Scaling` (number,null)
    The scaling factor applied to this account

  - `Results.Autotrade.Accounts.BrokerActive` (boolean)
    TRUE if the broker connection is active

  - `Results.Autotrade.Accounts.C2Active` (boolean)
    TRUE if C2 considers this account active

  - `Results.Autotrade.Accounts.SyncEnabled` (boolean)
    TRUE if autotrade sync is enabled

  - `Results.Autotrade.Accounts.SyncDisableReason` (string,null)
    The reason sync is disabled, if applicable

  - `Results.Autotrade.Accounts.Disabled` (boolean)
    TRUE if the account has been disabled

  - `Results.Autotrade.Accounts.DisableReason` (string,null)
    The reason the account was disabled, if applicable

  - `Results.Autotrade.Accounts.AutotradeStatus` (string,null)
    The derived autotrade status for this account

  - `Results.Autotrade.BrokerageAccountsAvailable` (integer,null)
    Number of autotrade account slots available for this WL site

  - `Results.Subscriptions` (array,null)
    Subscription records with revenue and autotrade enrichment

  - `Results.Subscriptions.PersonId` (integer)
    The subscriber's C2 PersonId

  - `Results.Subscriptions.FullName` (string,null)
    The subscriber's full name

  - `Results.Subscriptions.Email` (string,null)
    The subscriber's email address

  - `Results.Subscriptions.Alias` (string,null)
    The subscriber's C2 alias

  - `Results.Subscriptions.SystemId` (integer)
    The strategy SystemId

  - `Results.Subscriptions.SystemName` (string,null)
    The strategy name

  - `Results.Subscriptions.FamilyGuid` (string,null)
    The multiplex family GUID, if this is a multiplexed strategy

  - `Results.Subscriptions.FamilyName` (string,null)
    The multiplex family name, if applicable

  - `Results.Subscriptions.ParentSystemId` (integer,null)
    The parent SystemId for multiplexed variants, if applicable

  - `Results.Subscriptions.ParentSystemName` (string,null)
    The parent strategy name for multiplexed variants, if applicable

  - `Results.Subscriptions.VariantGuid` (string,null)
    The variant GUID within the multiplex family, if applicable

  - `Results.Subscriptions.VariantLabel` (string,null)
    The variant label within the multiplex family, if applicable

  - `Results.Subscriptions.StartedWhen` (integer,null)
    The subscription start timestamp as Unix seconds

  - `Results.Subscriptions.StoppedWhen` (integer,null)
    The subscription stop timestamp as Unix seconds, if stopped

  - `Results.Subscriptions.Alive` (boolean)
    TRUE if the subscription is currently active

  - `Results.Subscriptions.AmountCharged` (number)
    Total amount charged to the subscriber in the requested window

  - `Results.Subscriptions.BasePrice` (number)
    The base subscription price before markup

  - `Results.Subscriptions.Markup` (number)
    The WL markup applied to the base price

  - `Results.Subscriptions.RefundAmount` (number)
    Total refund amount issued in the requested window

  - `Results.Subscriptions.NetRevenue` (number)
    Net revenue after refunds in the requested window

  - `Results.Subscriptions.LatestSessionEventWhenUnix` (integer,null)
    The most recent session event timestamp for this subscriber in the requested window, as Unix seconds

  - `Results.Subscriptions.LatestSessionEventType` (string,null)
    The type of the most recent session event for this subscriber

  - `Results.Subscriptions.LatestSessionEventSource` (string,null)
    The source of the most recent session event for this subscriber

  - `Results.Subscriptions.AutotradeStatus` (string,null)
    The derived autotrade status for this subscriber's account

  - `Results.Subscriptions.SyncEnabled` (boolean,null)
    TRUE if autotrade sync is enabled for this subscriber

  - `Results.Subscriptions.BrokerActive` (boolean,null)
    TRUE if the broker connection is active for this subscriber

  - `Results.Subscriptions.C2Active` (boolean,null)
    TRUE if C2 considers this subscriber's account active

  - `Results.Subscriptions.Disabled` (boolean,null)
    TRUE if this subscriber's autotrade account has been disabled

  - `Results.AccountStability` (array,null)
    Per-account autotrade stability snapshot

  - `Results.AccountStability.Account` (string,null)
    The brokerage account identifier

  - `Results.AccountStability.BrokerId` (integer)
    The broker Id

  - `Results.AccountStability.PersonId` (integer)
    The C2 PersonId of the account owner

  - `Results.AccountStability.Scaling` (number,null)
    The scaling factor applied to this account

  - `Results.AccountStability.BrokerActive` (boolean)
    TRUE if the broker connection is active

  - `Results.AccountStability.C2Active` (boolean)
    TRUE if C2 considers this account active

  - `Results.AccountStability.SyncEnabled` (boolean)
    TRUE if autotrade sync is enabled

  - `Results.AccountStability.SyncDisableReason` (string,null)
    The reason sync is disabled, if applicable

  - `Results.AccountStability.Disabled` (boolean)
    TRUE if the account has been disabled

  - `Results.AccountStability.DisableReason` (string,null)
    The reason the account was disabled, if applicable

  - `Results.AccountStability.AutotradeStatus` (string,null)
    The derived autotrade status for this account

  - `Results.Executions` (array,null)
    Execution records with signal-link and classification enrichment

  - `Results.Executions.Account` (string,null)
    The brokerage account that executed the trade

  - `Results.Executions.PersonId` (integer)
    The C2 PersonId of the account owner

  - `Results.Executions.SystemId` (integer)
    The strategy SystemId that generated the signal

  - `Results.Executions.SystemName` (string,null)
    The strategy name

  - `Results.Executions.ExecutionId` (integer)
    The TI execution Id

  - `Results.Executions.C2ExecutionId` (integer,null)
    The C2 execution Id, if linked

  - `Results.Executions.ExecutedWhen` (integer)
    The execution timestamp as Unix seconds

  - `Results.Executions.Symbol` (string,null)
    The traded symbol

  - `Results.Executions.Side` (string,null)
    The trade side (buy or sell)

  - `Results.Executions.Quantity` (number)
    The number of shares or contracts executed

  - `Results.Executions.Price` (number)
    The execution price

  - `Results.Executions.Commission` (number,null)
    The commission charged for this execution

  - `Results.Executions.Origin` (string,null)
    The origin of the execution

  - `Results.Executions.C2SignalId` (integer,null)
    The C2 signal Id linked to this execution, if available

  - `Results.Executions.LeaderSystemId` (integer,null)
    The leader strategy SystemId from which the signal originated, if available

  - `Results.Executions.FollowGenerated` (boolean)
    TRUE if this execution was generated by the autotrade follow engine

  - `Results.Executions.ManualUserOrder` (boolean)
    TRUE if this execution was placed manually by the user

  - `Results.Executions.ExternalManualLike` (boolean)
    TRUE if this execution resembles a manual order placed externally

  - `Results.Executions.BrokerMarginAction` (boolean)
    TRUE if this execution was a broker-initiated margin action

  - `Results.Executions.Unknown` (boolean)
    TRUE if this execution could not be classified

  - `Results.Summary` (object)

  - `Results.Summary.SubscriptionCount` (integer)
    Total number of subscriptions in the requested window

  - `Results.Summary.ActiveSubscriptionCount` (integer)
    Number of currently active subscriptions

  - `Results.Summary.SessionEventCount` (integer)
    Total number of session events in the requested window

  - `Results.Summary.ExecutionCount` (integer)
    Total number of executions in the requested window

  - `Results.Summary.TotalNetRevenue` (number)
    Total net revenue across all subscriptions in the requested window

  - `Results.Summary.TotalAmountCharged` (number)
    Total amount charged across all subscriptions in the requested window

  - `Results.Summary.TotalAmountRefunded` (number)
    Total amount refunded across all subscriptions in the requested window

  - `Results.Summary.AccountsWithStabilityIssue` (integer)
    Number of accounts with at least one autotrade stability issue

  - `Results.Summary.AccountStabilityCount` (integer)
    Total number of account stability records returned

  - `Results.Summary.SubscriptionsWithSessionEvent` (integer)
    Number of subscriptions that had at least one session event in the window

  - `Results.Summary.SubscriptionRowsTruncated` (integer)
    Number of subscription rows omitted due to the subscription_limit

  - `Results.Summary.SessionEventRowsTruncated` (integer)
    Number of session event rows omitted due to the session_limit

  - `Results.Summary.ExecutionRowsTruncated` (integer)
    Number of execution rows omitted due to the execution_limit

  - `ResponseStatus` (object)

  - `ResponseStatus.ErrorCode` (string,null)
    The HTTP error code. Please see https://api-docs.collective2.com/guides/error-codes#http-errors.

  - `ResponseStatus.Message` (string,null)
    The human-readable meaning of the ErrorCode.

  - `ResponseStatus.Errors` (array,null)

  - `ResponseStatus.Errors.ErrorCode` (string,null)
    The C2 error code. Please see https://api-docs.collective2.com/guides/error-codes#c2-errors.

  - `ResponseStatus.Errors.FieldName` (string,null)
    The affected parameter.

  - `ResponseStatus.Errors.Message` (string,null)
    More details about the ErrorCode.

## Response 400 fields (application/json):

  - `ErrorCode` (string,null)
    The HTTP error code. Please see https://api-docs.collective2.com/guides/error-codes#http-errors.

  - `Message` (string,null)
    The human-readable meaning of the ErrorCode.

  - `Errors` (array,null)

  - `Errors.ErrorCode` (string,null)
    The C2 error code. Please see https://api-docs.collective2.com/guides/error-codes#c2-errors.

  - `Errors.FieldName` (string,null)
    The affected parameter.

  - `Errors.Message` (string,null)
    More details about the ErrorCode.

## Response 401 fields (application/json):

  - `ErrorCode` (string,null)
    The HTTP error code. Please see https://api-docs.collective2.com/guides/error-codes#http-errors.

  - `Message` (string,null)
    The human-readable meaning of the ErrorCode.

  - `Errors` (array,null)

  - `Errors.ErrorCode` (string,null)
    The C2 error code. Please see https://api-docs.collective2.com/guides/error-codes#c2-errors.

  - `Errors.FieldName` (string,null)
    The affected parameter.

  - `Errors.Message` (string,null)
    More details about the ErrorCode.

## Response 403 fields (application/json):

  - `ErrorCode` (string,null)
    The HTTP error code. Please see https://api-docs.collective2.com/guides/error-codes#http-errors.

  - `Message` (string,null)
    The human-readable meaning of the ErrorCode.

  - `Errors` (array,null)

  - `Errors.ErrorCode` (string,null)
    The C2 error code. Please see https://api-docs.collective2.com/guides/error-codes#c2-errors.

  - `Errors.FieldName` (string,null)
    The affected parameter.

  - `Errors.Message` (string,null)
    More details about the ErrorCode.

## Response 404 fields (application/json):

  - `ErrorCode` (string,null)
    The HTTP error code. Please see https://api-docs.collective2.com/guides/error-codes#http-errors.

  - `Message` (string,null)
    The human-readable meaning of the ErrorCode.

  - `Errors` (array,null)

  - `Errors.ErrorCode` (string,null)
    The C2 error code. Please see https://api-docs.collective2.com/guides/error-codes#c2-errors.

  - `Errors.FieldName` (string,null)
    The affected parameter.

  - `Errors.Message` (string,null)
    More details about the ErrorCode.

## Response 406 fields (application/json):

  - `ErrorCode` (string,null)
    The HTTP error code. Please see https://api-docs.collective2.com/guides/error-codes#http-errors.

  - `Message` (string,null)
    The human-readable meaning of the ErrorCode.

  - `Errors` (array,null)

  - `Errors.ErrorCode` (string,null)
    The C2 error code. Please see https://api-docs.collective2.com/guides/error-codes#c2-errors.

  - `Errors.FieldName` (string,null)
    The affected parameter.

  - `Errors.Message` (string,null)
    More details about the ErrorCode.

## Response 409 fields (application/json):

  - `ErrorCode` (string,null)
    The HTTP error code. Please see https://api-docs.collective2.com/guides/error-codes#http-errors.

  - `Message` (string,null)
    The human-readable meaning of the ErrorCode.

  - `Errors` (array,null)

  - `Errors.ErrorCode` (string,null)
    The C2 error code. Please see https://api-docs.collective2.com/guides/error-codes#c2-errors.

  - `Errors.FieldName` (string,null)
    The affected parameter.

  - `Errors.Message` (string,null)
    More details about the ErrorCode.

## Response 429 fields (application/json):

  - `ErrorCode` (string,null)
    The HTTP error code. Please see https://api-docs.collective2.com/guides/error-codes#http-errors.

  - `Message` (string,null)
    The human-readable meaning of the ErrorCode.

  - `Errors` (array,null)

  - `Errors.ErrorCode` (string,null)
    The C2 error code. Please see https://api-docs.collective2.com/guides/error-codes#c2-errors.

  - `Errors.FieldName` (string,null)
    The affected parameter.

  - `Errors.Message` (string,null)
    More details about the ErrorCode.

## Response 500 fields (application/json):

  - `ErrorCode` (string,null)
    The HTTP error code. Please see https://api-docs.collective2.com/guides/error-codes#http-errors.

  - `Message` (string,null)
    The human-readable meaning of the ErrorCode.

  - `Errors` (array,null)

  - `Errors.ErrorCode` (string,null)
    The C2 error code. Please see https://api-docs.collective2.com/guides/error-codes#c2-errors.

  - `Errors.FieldName` (string,null)
    The affected parameter.

  - `Errors.Message` (string,null)
    More details about the ErrorCode.

## Response 503 fields (application/json):

  - `ErrorCode` (string,null)
    The HTTP error code. Please see https://api-docs.collective2.com/guides/error-codes#http-errors.

  - `Message` (string,null)
    The human-readable meaning of the ErrorCode.

  - `Errors` (array,null)

  - `Errors.ErrorCode` (string,null)
    The C2 error code. Please see https://api-docs.collective2.com/guides/error-codes#c2-errors.

  - `Errors.FieldName` (string,null)
    The affected parameter.

  - `Errors.Message` (string,null)
    More details about the ErrorCode.


## Response 304 fields
