openapi: 3.2.0 info: title: Sweep Backoffice API description: This is a publicly available Sweep API. version: '0.1' contact: {} servers: - url: https://api.sweep.io description: Sweep production API — the host this document was harvested from (GET /api-json); /health responds here tags: - name: Backoffice paths: /backoffice/accounts: get: operationId: BackofficeController_getAllAccounts parameters: [] responses: '200': description: '' content: application/json: schema: type: array items: type: object tags: - Backoffice post: operationId: BackofficeController_updateAccountsMany parameters: [] responses: '201': description: '' tags: - Backoffice /backoffice/users: get: operationId: BackofficeController_getAllUsers parameters: [] responses: '200': description: '' content: application/json: schema: type: array items: type: object tags: - Backoffice /backoffice/accounts/installed-packages: get: operationId: BackofficeController_getInstalledPackagesForFreeAccounts parameters: [] responses: '200': description: '' content: application/json: schema: type: array items: type: object tags: - Backoffice /backoffice/accounts/{accountId}: post: operationId: BackofficeController_releaseAccount parameters: - name: accountId required: true in: path schema: type: string - name: completeOnboarding required: true in: query schema: type: boolean responses: '201': description: '' tags: - Backoffice /backoffice/crm_orgs/{crmOrgId}/sweep_transactions_log: get: operationId: BackofficeController_getSweepTransactionsLog parameters: - name: crmOrgId required: true in: path schema: type: string - name: startDate required: true in: query schema: type: number - name: endDate required: true in: query schema: type: number responses: '200': description: '' content: application/json: schema: type: array items: type: object tags: - Backoffice /backoffice/crm_orgs/{crmOrgId}/fetch: get: operationId: BackofficeController_fetch parameters: - name: crmOrgId required: true in: path schema: type: string - name: operation required: true in: query schema: type: string responses: '200': description: '' tags: - Backoffice /backoffice/crm_orgs/{orgId}/force-refresh-token: post: operationId: BackofficeController_forceRefreshToken parameters: - name: orgId required: true in: path schema: type: string responses: '201': description: '' tags: - Backoffice /backoffice/crm_orgs/{orgId}/force-refresh-user-token: post: operationId: BackofficeController_forceRefreshUserToken parameters: - name: orgId required: true in: path schema: type: string - name: userId required: true in: query schema: type: string responses: '201': description: '' tags: - Backoffice /backoffice/crm_orgs/all/get_soql: get: operationId: BackofficeController_getAnySoqlQueryAllOrgs parameters: - name: query required: true in: query schema: type: string - name: useToolingApi required: true in: query schema: type: boolean responses: '200': description: '' content: application/json: schema: type: object tags: - Backoffice /backoffice/ai_agents/{agentId}/trigger_scan: get: operationId: BackofficeController_triggerScan parameters: - name: agentId required: true in: path schema: type: string responses: '200': description: '' tags: - Backoffice /backoffice/crm_orgs/{crmOrgId}/get_soql: get: operationId: BackofficeController_getAnySoqlQuery parameters: - name: crmOrgId required: true in: path schema: type: string - name: query required: true in: query schema: type: string - name: useToolingApi required: true in: query schema: type: boolean - name: maxFetch required: true in: query schema: type: number responses: '200': description: '' content: application/json: schema: type: array items: type: object tags: - Backoffice /backoffice/accounts/{accountId}/crm_orgs: get: operationId: BackofficeController_getAllCrmOrgs parameters: - name: accountId required: true in: path schema: type: string responses: '200': description: '' content: application/json: schema: type: array items: $ref: '#/components/schemas/CrmOrg' tags: - Backoffice /backoffice/accounts/{accountId}/orgs: get: operationId: BackofficeController_getAllOrgs parameters: - name: accountId required: true in: path schema: type: string responses: '200': description: '' tags: - Backoffice /backoffice/orgs/{orgId}/fetch: post: operationId: BackofficeController_fetchAnyOrg parameters: - name: orgId required: true in: path schema: type: string - name: factoryReset required: true in: query schema: type: boolean responses: '201': description: '' tags: - Backoffice /backoffice/orgs/{orgId}/metadata-search: get: operationId: BackofficeController_searchOrgMetadata parameters: - name: orgId required: true in: path schema: type: string - name: searchTerm required: true in: query schema: type: string - name: metadataTypes required: true in: query schema: type: array items: type: string responses: '200': description: '' content: application/json: schema: type: array items: type: object tags: - Backoffice /backoffice/orgs/{orgId}: get: operationId: BackofficeController_getOrgById parameters: - name: orgId required: true in: path schema: type: string responses: '200': description: '' content: application/json: schema: type: object tags: - Backoffice /backoffice/snowflake-orgs/{orgId}/query: post: operationId: BackofficeController_runSnowflakeQuery parameters: - name: orgId required: true in: path schema: type: string responses: '201': description: '' tags: - Backoffice /backoffice/crm-orgs/{crmOrgId}: get: operationId: BackofficeController_getCrmOrgById parameters: - name: crmOrgId required: true in: path schema: type: string responses: '200': description: '' content: application/json: schema: type: object tags: - Backoffice /backoffice/crm_orgs/{crmOrgId}/salesforce-event-monitoring-log-export: post: operationId: BackofficeController_exportSalesforceEventMonitoringLogs parameters: - name: crmOrgId required: true in: path schema: type: string requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/SalesforceEventMonitoringLogExportDto' responses: '201': description: '' tags: - Backoffice /backoffice/crm-orgs/{crmOrgId}/tier: put: operationId: BackofficeController_updateCrmOrgTier parameters: - name: crmOrgId required: true in: path schema: type: string - name: tier required: true in: query schema: type: string responses: '200': description: '' tags: - Backoffice /backoffice/parse-all: post: operationId: BackofficeController_parseAllOrgs parameters: [] responses: '201': description: '' tags: - Backoffice /backoffice/housekeeping/purge-salto-workspaces: post: operationId: BackofficeController_archiveAllSaltoWorkspaces parameters: [] responses: '201': description: '' tags: - Backoffice /backoffice/recovery/init-missing-bare-repos: post: operationId: BackofficeController_recoverMissingBareRepos parameters: [] responses: '201': description: '' content: application/json: schema: type: object tags: - Backoffice /backoffice/ai-projects/backfill-origin-template-ids: post: operationId: BackofficeController_backfillPlaybookOriginTemplateIds parameters: [] responses: '201': description: '' content: application/json: schema: type: object tags: - Backoffice /backoffice/accounts/{accountId}/invite: post: operationId: BackofficeController_inviteUserToAccount parameters: - name: accountId required: true in: path schema: type: string - name: email required: true in: query schema: type: string responses: '201': description: '' tags: - Backoffice /backoffice/accounts/{accountId}/users: get: operationId: BackofficeController_getUsersByAccount parameters: - name: accountId required: true in: path schema: type: string responses: '200': description: '' tags: - Backoffice /backoffice/accounts/{accountId}/roles: get: operationId: BackofficeController_getRoleGroupsForAccount parameters: - name: accountId required: true in: path schema: type: string responses: '200': description: '' tags: - Backoffice /backoffice/users/{userId}/role: put: operationId: BackofficeController_updateUserRole parameters: - name: userId required: true in: path schema: type: string responses: '200': description: '' tags: - Backoffice /backoffice/users/{userId}: delete: operationId: BackofficeController_removeUser parameters: - name: userId required: true in: path schema: type: string responses: '200': description: '' tags: - Backoffice /backoffice/accounts/{accountId}/move-user: post: operationId: BackofficeController_moveUserToAccount parameters: - name: accountId required: true in: path schema: type: string - name: email required: true in: query schema: type: string responses: '201': description: '' tags: - Backoffice /backoffice/crm-orgs/{crmOrgId}/automations: get: operationId: BackofficeController_getAutomationsMetadata parameters: - name: crmOrgId required: true in: path schema: type: string responses: '200': description: '' content: application/json: schema: type: array items: type: object tags: - Backoffice /backoffice/accounts/{accountId}/trial: put: operationId: BackofficeController_setTrialEnd parameters: - name: accountId required: true in: path schema: type: string - name: daysCount required: true in: query schema: type: number responses: '200': description: '' tags: - Backoffice /backoffice/accounts/{orgId}/named-credential: post: operationId: BackofficeController_createNamedCredential parameters: - name: orgId required: true in: path schema: type: string responses: '201': description: '' tags: - Backoffice delete: operationId: BackofficeController_deleteNamedCredential parameters: - name: orgId required: true in: path schema: type: string responses: '200': description: '' tags: - Backoffice /backoffice/mp-version: post: operationId: BackofficeController_updateMPVersionFile parameters: [] responses: '201': description: '' summary: Update a file in s3 folder tags: - Backoffice /backoffice/cache: get: operationId: BackofficeController_getValueFromCache parameters: - name: key required: true in: query schema: type: string responses: '200': description: '' content: application/json: schema: type: object tags: - Backoffice delete: operationId: BackofficeController_deleteValueFromCache parameters: - name: key required: true in: query schema: type: string responses: '200': description: '' content: application/json: schema: type: object tags: - Backoffice /backoffice/crm_orgs/{orgId}/analyse/{objectName}: get: operationId: BackofficeController_createOrgAnalysisJob parameters: - name: orgId required: true in: path schema: type: string - name: objectName required: true in: path schema: type: string responses: '200': description: '' tags: - Backoffice /backoffice/crm_orgs/{orgId}/unused-apex-classes: get: operationId: BackofficeController_analyzeUnusedApexClasses parameters: - name: orgId required: true in: path schema: type: string - name: includeNonDefaultNamespaces required: true in: query schema: type: boolean responses: '200': description: '' tags: - Backoffice /backoffice/job-execution/failed: get: operationId: BackofficeController_getFailedJobExecutions parameters: [] responses: '200': description: '' content: application/json: schema: type: array items: $ref: '#/components/schemas/JobExecution' tags: - Backoffice /backoffice/auto-fetch/org/{orgId}: get: operationId: BackofficeController_getAutoFetchByOrgId parameters: - name: orgId required: true in: path schema: type: string responses: '200': description: '' tags: - Backoffice put: operationId: BackofficeController_updateAutoFetchByOrgId parameters: - name: orgId required: true in: path schema: type: string responses: '200': description: '' tags: - Backoffice /backoffice/crm_orgs/{orgId}/opt-monitoring: post: operationId: BackofficeController_changeOrgOptMonitoring parameters: - name: orgId required: true in: path schema: type: string requestBody: required: true content: application/json: schema: type: boolean responses: '201': description: '' tags: - Backoffice /backoffice/lock/{lockKey}: get: operationId: BackofficeController_isLocked parameters: - name: lockKey required: true in: path schema: type: string responses: '200': description: '' content: application/json: schema: type: boolean tags: - Backoffice /backoffice/lock/{lockKey}/{ownerId}: delete: operationId: BackofficeController_releaseLock parameters: - name: lockKey required: true in: path schema: type: string - name: ownerId required: true in: path schema: type: string responses: '200': description: '' content: application/json: schema: type: boolean tags: - Backoffice get: operationId: BackofficeController_getLock parameters: - name: lockKey required: true in: path schema: type: string - name: ownerId required: true in: path schema: type: string - name: expiresInMs required: true in: query schema: type: number - name: timeoutMs required: true in: query schema: type: number responses: '200': description: '' content: application/json: schema: type: boolean tags: - Backoffice /backoffice/product-plan/available-product-policies: get: operationId: BackofficeController_getAvailablePlan parameters: [] responses: '200': description: '' tags: - Backoffice /backoffice/product-plan/available-features: get: operationId: BackofficeController_getAvailableFeatures parameters: [] responses: '200': description: '' tags: - Backoffice /backoffice/product-plan/{accountId}: get: operationId: BackofficeController_getPlan parameters: - name: accountId required: true in: path schema: type: string responses: '200': description: '' tags: - Backoffice patch: operationId: BackofficeController_updatePolicy parameters: - name: accountId required: true in: path schema: type: string requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/UpdatePlanDto' responses: '200': description: '' tags: - Backoffice /backoffice/product-plan/{accountId}/features: put: operationId: BackofficeController_updateFeaturesForSelectedFeatureProductPolicy parameters: - name: accountId required: true in: path schema: type: string requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/UpdateFeaturePlanDto' responses: '200': description: '' tags: - Backoffice get: operationId: BackofficeController_getAllowedFeaturePlanForAccount parameters: - name: accountId required: true in: path schema: type: string responses: '200': description: '' tags: - Backoffice /backoffice/dump-automations/{folderName}: get: operationId: BackofficeController_dumpAutomations parameters: - name: folderName required: true in: path schema: type: string responses: '200': description: '' tags: - Backoffice /backoffice/restart-python-agent: post: operationId: BackofficeController_restartPythonAgent parameters: [] responses: '201': description: '' tags: - Backoffice /backoffice/crm_orgs/{orgId}/ai-process-mining: post: operationId: BackofficeController_createAiProcessMiningFunnels parameters: - name: orgId required: true in: path schema: type: string responses: '201': description: '' tags: - Backoffice /backoffice/opensearch/reset-index/{orgId}: post: operationId: BackofficeController_reindexOpenSearch parameters: - name: orgId required: true in: path schema: type: string responses: '201': description: '' tags: - Backoffice /backoffice/opensearch/migrate-index/{orgId}: post: operationId: BackofficeController_migrateOpenSearchIndex parameters: - name: orgId required: true in: path schema: type: string responses: '201': description: '' tags: - Backoffice /backoffice/opensearch/purge-inactive-index/{orgId}: post: operationId: BackofficeController_purgeInactiveOpenSearchIndex parameters: - name: orgId required: true in: path schema: type: string responses: '201': description: '' tags: - Backoffice /backoffice/opensearch/search-by-content/{orgId}: post: operationId: BackofficeController_searchByContent parameters: - name: orgId required: true in: path schema: type: string responses: '201': description: '' content: application/json: schema: type: array items: type: object tags: - Backoffice /backoffice/opensearch/search-by-filename/{orgId}: post: operationId: BackofficeController_searchByFilename parameters: - name: orgId required: true in: path schema: type: string responses: '201': description: '' tags: - Backoffice /backoffice/opensearch/raw-search/{orgId}: post: operationId: BackofficeController_rawSearch parameters: - name: orgId required: true in: path schema: type: string responses: '201': description: '' content: application/json: schema: type: object tags: - Backoffice /backoffice/opensearch/scope/{orgId}: get: operationId: BackofficeController_getOpenSearchScope parameters: - name: orgId required: true in: path schema: type: string responses: '200': description: '' content: application/json: schema: $ref: '#/components/schemas/OpenSearchScope' tags: - Backoffice put: operationId: BackofficeController_updateOpenSearchScope parameters: - name: orgId required: true in: path schema: type: string responses: '200': description: '' content: application/json: schema: $ref: '#/components/schemas/OpenSearchScope' tags: - Backoffice /backoffice/agent-files/{fileId}/generate-summary: post: operationId: BackofficeController_generateAgentFileSummary parameters: - name: fileId required: true in: path schema: type: string responses: '201': description: '' tags: - Backoffice /backoffice/agent-files/regenerate-all-summaries: post: operationId: BackofficeController_regenerateAllAgentFileSummaries parameters: [] responses: '201': description: '' tags: - Backoffice /backoffice/accounts/{accountId}/copy-prompt-group/{promptGroupId}: post: operationId: BackofficeController_copyPromptGroupToAccounts parameters: - name: accountId required: true in: path schema: type: string - name: promptGroupId required: true in: path schema: type: string responses: '201': description: '' tags: - Backoffice /backoffice/agent-summaries: get: operationId: BackofficeController_getAgentSummaries parameters: - name: accountId required: true in: query schema: type: string - name: userEmail required: true in: query schema: type: string - name: agentName required: true in: query schema: type: string - name: mode required: true in: query schema: type: string - name: scoreMin required: true in: query schema: type: number - name: scoreMax required: true in: query schema: type: number - name: dateFrom required: true in: query schema: type: string - name: dateTo required: true in: query schema: type: string - name: searchTerm required: true in: query schema: type: string - name: limit required: true in: query schema: type: number - name: offset required: true in: query schema: type: number - name: sortBy required: true in: query schema: type: string - name: sortOrder required: true in: query schema: type: string responses: '200': description: '' tags: - Backoffice /backoffice/agent-summaries/stats: get: operationId: BackofficeController_getAgentSummariesStats parameters: - name: accountId required: true in: query schema: type: string - name: userEmail required: true in: query schema: type: string - name: agentName required: true in: query schema: type: string - name: mode required: true in: query schema: type: string - name: scoreMin required: true in: query schema: type: number - name: scoreMax required: true in: query schema: type: number - name: dateFrom required: true in: query schema: type: string - name: dateTo required: true in: query schema: type: string - name: searchTerm required: true in: query schema: type: string responses: '200': description: '' content: application/json: schema: type: object tags: - Backoffice /backoffice/agent-summaries/accounts: get: operationId: BackofficeController_getAccountGroupedSummaries parameters: - name: accountId required: true in: query schema: type: string - name: userEmail required: true in: query schema: type: string - name: agentName required: true in: query schema: type: string - name: mode required: true in: query schema: type: string - name: scoreMin required: true in: query schema: type: number - name: scoreMax required: true in: query schema: type: number - name: dateFrom required: true in: query schema: type: string - name: dateTo required: true in: query schema: type: string - name: searchTerm required: true in: query schema: type: string responses: '200': description: '' tags: - Backoffice /backoffice/agent-summaries/users: get: operationId: BackofficeController_getUserGroupedSummaries parameters: - name: accountId required: true in: query schema: type: string - name: userEmail required: true in: query schema: type: string - name: agentName required: true in: query schema: type: string - name: mode required: true in: query schema: type: string - name: scoreMin required: true in: query schema: type: number - name: scoreMax required: true in: query schema: type: number - name: dateFrom required: true in: query schema: type: string - name: dateTo required: true in: query schema: type: string - name: searchTerm required: true in: query schema: type: string responses: '200': description: '' tags: - Backoffice /backoffice/agent-summaries/agents: get: operationId: BackofficeController_getAgentGroupedSummaries parameters: - name: accountId required: true in: query schema: type: string - name: userEmail required: true in: query schema: type: string - name: agentName required: true in: query schema: type: string - name: mode required: true in: query schema: type: string - name: scoreMin required: true in: query schema: type: number - name: scoreMax required: true in: query schema: type: number - name: dateFrom required: true in: query schema: type: string - name: dateTo required: true in: query schema: type: string - name: searchTerm required: true in: query schema: type: string responses: '200': description: '' tags: - Backoffice /backoffice/agent-summaries/modes: get: operationId: BackofficeController_getModeGroupedSummaries parameters: - name: accountId required: true in: query schema: type: string - name: userEmail required: true in: query schema: type: string - name: agentName required: true in: query schema: type: string - name: scoreMin required: true in: query schema: type: number - name: scoreMax required: true in: query schema: type: number - name: dateFrom required: true in: query schema: type: string - name: dateTo required: true in: query schema: type: string - name: searchTerm required: true in: query schema: type: string responses: '200': description: '' tags: - Backoffice /backoffice/ai-artifacts/{versionId}: get: operationId: BackofficeController_getAiArtifactByVersionId parameters: - name: versionId required: true in: path schema: type: string responses: '200': description: '' summary: 'Fetch a single AI artifact by its version id (primary key of AiArtifact). `versionId` matches the naming used in the dashboard''s artifact API and in the `[Artifact: