Integrations Data Structures
All data structures used in the Integrations API endpoint.
Integration Action Result
Result of an integration action (add, remove, etc.)
Integration Action Result
objectResult of an integration action (add, remove, etc.)
okbooleanrequiredWhether the action was successful
messagestringOptional message describing the result or error
Example: "Integration added successfully"
Integration Provider
Integration provider identifier
Integration Provider
stringIntegration provider identifier
Integration Status
Integration connection status
Integration Status
stringIntegration connection status
Workspace Integration
A workspace integration configuration
Workspace Integration
objectA workspace integration configuration
idstringrequiredUnique integration identifier
workspaceIdstringrequiredWorkspace identifier this integration belongs to
providerIntegrationProviderrequiredIntegration provider type
statusIntegrationStatusrequiredCurrent status of the integration
credentialsEncryptedstring | nullEncrypted credentials for the integration (base64 iv+ciphertext). Never exposed in API responses for security.
dataLastReceivedAtstring (date-time) | nullISO 8601 timestamp of when data was last received from this integration
createdAtstring (date-time)requiredISO 8601 timestamp of when the integration was created
updatedAtstring (date-time)requiredISO 8601 timestamp of when the integration was last updated
interface IntegrationActionResult {
/** Whether the action was successful */
ok: boolean;
/** Optional message describing the result or error */
message?: string;
}
type IntegrationProvider = "revenuecat" | "stripe" | "app_store_connect" | "shopify" | "google_play_console" | "whop" | "paddle" | "woocommerce" | "superwall";
type IntegrationStatus = "connected" | "not_connected" | "inactive";
interface WorkspaceIntegration {
/** Unique integration identifier */
id: string;
/** Workspace identifier this integration belongs to */
workspaceId: string;
/** Integration provider type */
provider: IntegrationProvider;
/** Current status of the integration */
status: IntegrationStatus;
/** Encrypted credentials for the integration (base64 iv+ciphertext). Never exposed in API responses for security. */
credentialsEncrypted?: string;
/** ISO 8601 timestamp of when data was last received from this integration */
dataLastReceivedAt?: string;
/** ISO 8601 timestamp of when the integration was created */
createdAt: string;
/** ISO 8601 timestamp of when the integration was last updated */
updatedAt: string;
}interface IntegrationActionResult {
/** Whether the action was successful */
ok: boolean;
/** Optional message describing the result or error */
message?: string;
}
type IntegrationProvider = "revenuecat" | "stripe" | "app_store_connect" | "shopify" | "google_play_console" | "whop" | "paddle" | "woocommerce" | "superwall";
type IntegrationStatus = "connected" | "not_connected" | "inactive";
interface WorkspaceIntegration {
/** Unique integration identifier */
id: string;
/** Workspace identifier this integration belongs to */
workspaceId: string;
/** Integration provider type */
provider: IntegrationProvider;
/** Current status of the integration */
status: IntegrationStatus;
/** Encrypted credentials for the integration (base64 iv+ciphertext). Never exposed in API responses for security. */
credentialsEncrypted?: string;
/** ISO 8601 timestamp of when data was last received from this integration */
dataLastReceivedAt?: string;
/** ISO 8601 timestamp of when the integration was created */
createdAt: string;
/** ISO 8601 timestamp of when the integration was last updated */
updatedAt: string;
}