action namsor_api_usage_history { label: "Print historical API usage." provider: namsor method: GET path: "/api2/json/apiUsageHistory" encoding: json output: { type: "object" properties: { detailedUsage: { type: "array" description: "Detailed usage as reported by the deduplicating API counter." items: { type: "object" description: "Detailed usage as reported by the deduplicating API counter." properties: { apiKey: { type: "object" properties: { admin: { type: "boolean" description: "The API Key has admin role." } anonymized: { type: "boolean" description: "The API Key is anonymized (using SHA-252 digest for logging). Set learnable=false and anonymized=true for highest privacy (ie. to forget data as it's processed)." } apiKey: { type: "string" description: "The user API Key." } corporate: { type: "boolean" description: "The API Key has role corporate (ex SWIFT payments instead of Stripe payments)." } disabled: { type: "boolean" description: "The API Key is temporarily or permanently disabled." } learnable: { type: "boolean" description: "The API Key is learnable (without assuming truthfulness) for machine learning. Set learnable=false and anonymized=true for highest privacy (ie. to forget data as it's processed)." } partner: { type: "boolean" description: "The API Key has partner role." } striped: { type: "boolean" description: "The API Key is associated to a valid Stripe account." } userId: { type: "string" description: "The user identifier." } vetted: { type: "boolean" description: "The API Key is vetted (assumed truthful) for machine learning." } } } apiService: { type: "string" description: "The apiService corresponds to the classifier name." } createdDateTime: { type: "integer" format: "int64" description: "The create datetime of the counter." } hostAddress: { type: "string" description: "The processing hostAddress." } lastFlushedDateTime: { type: "integer" format: "int64" description: "The flush datetime of the counter." } lastUsedDateTime: { type: "integer" format: "int64" description: "The last usage datetime of the counter." } serviceFeaturesUsage: { type: "object" description: "Usage of special features, such as Chinese, Japanese." } totalUsage: { type: "integer" format: "int64" description: "The usage of the counter." } } } } } } }