{"openapi":"3.1.0","info":{"title":"Portable Browser CAC API","version":"0.1.0"},"servers":[{"url":"https://portable-browsers-srv.latentbyte.com"}],"security":[{"bearerAuth":[]},{"devSubject":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"},"devSubject":{"type":"apiKey","in":"header","name":"x-dev-logto-subject"},"workerApiKey":{"type":"apiKey","in":"header","name":"x-worker-api-key"}},"schemas":{"PublicConfig":{"type":"object","properties":{"nodeEnv":{"type":"string"},"appBaseUrl":{"type":"string"},"ttlCleanupEnabled":{"type":"boolean"},"cdpHealthCheckEnabled":{"type":"boolean"},"autoMigrate":{"type":"boolean"},"enableDevAuth":{"type":"boolean"},"logto":{"type":"object","properties":{"endpoint":{"type":"string"},"issuer":{"type":"string"},"audience":{"type":"string"},"resource":{"type":"string"},"uiAppId":{"type":"string"}}},"lbServices":{"type":"object","properties":{"baseUrl":{"type":"string"}}},"storage":{"type":"object","properties":{"driver":{"type":"string","enum":["filesystem","filestore"]},"localPath":{"type":"string"},"filestoreConfigured":{"type":"boolean"}},"required":["driver"]},"databaseConfigured":{"type":"boolean"},"accessProductSlug":{"type":"string"},"encryptionConfigured":{"type":"boolean"}}},"WorkerApiKeySecret":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"key":{"type":"string"},"keyPrefix":{"type":"string"}},"required":["id","key","keyPrefix"]},"CreateDevWorkerApiKeyRequest":{"type":"object","properties":{"name":{"type":"string","minLength":1,"default":"local-dev-worker"},"logtoSubject":{"type":"string","minLength":1,"default":"dev-user"},"scopes":{"type":"array","items":{"type":"string","minLength":1}}}},"WorkerApiKey":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"keyPrefix":{"type":"string"},"scopes":{"type":"array","items":{"type":"string"}},"lastUsedAt":{"type":"string","format":"date-time"},"expiresAt":{"type":"string","format":"date-time"},"revokedAt":{"type":"string","format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"workerIds":{"type":"array","items":{"type":"string","format":"uuid"}}},"required":["id","name","keyPrefix","scopes","createdAt","updatedAt"]},"CreateWorkerApiKeyRequest":{"type":"object","properties":{"name":{"type":"string","minLength":1,"default":"manual-worker"},"scopes":{"type":"array","items":{"type":"string","minLength":1}}}},"ConsumerAppListResponse":{"type":"object","properties":{"consumerApps":{"type":"array","items":{"$ref":"#/components/schemas/ConsumerApp"}}},"required":["consumerApps"]},"ConsumerApp":{"type":"object","properties":{"consumerAppId":{"type":"string","format":"uuid"},"key":{"type":"string"},"name":{"type":"string"},"defaultProfileId":{"type":"string","format":"uuid"},"defaultMode":{"type":"string","enum":["headful","headless"]},"defaultTtlSeconds":{"type":"integer","exclusiveMinimum":0},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["consumerAppId","key","name","createdAt","updatedAt"]},"ConsumerApiKeyListResponse":{"type":"object","properties":{"consumerApiKeys":{"type":"array","items":{"$ref":"#/components/schemas/ConsumerApiKey"}}},"required":["consumerApiKeys"]},"ConsumerApiKey":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"keyPrefix":{"type":"string"},"scopes":{"type":"array","items":{"type":"string"}},"lastUsedAt":{"type":"string","format":"date-time"},"revokedAt":{"type":"string","format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","keyPrefix","scopes","createdAt","updatedAt"]},"ConsumerApiKeySecret":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"key":{"type":"string"},"keyPrefix":{"type":"string"}},"required":["id","key","keyPrefix"]},"CreateConsumerApiKeyRequest":{"type":"object","properties":{"name":{"type":"string","minLength":1,"default":"default"},"scopes":{"type":"array","items":{"$ref":"#/components/schemas/ConsumerScope"}}}},"ConsumerScope":{"type":"string","enum":["attachments:read","attachments:write"]},"ResourceSampleHistory":{"type":"object","properties":{"workers":{"type":"array","items":{"$ref":"#/components/schemas/WorkerResourceSample"}},"sessions":{"type":"array","items":{"$ref":"#/components/schemas/SessionResourceSample"}}},"required":["workers","sessions"]},"WorkerResourceSample":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"workerId":{"type":"string","format":"uuid"},"observedAt":{"type":"string","format":"date-time"},"cpuLoad1":{"type":"number"},"cpuLoad5":{"type":"number"},"cpuLoad15":{"type":"number"},"memoryTotalBytes":{"type":"integer","minimum":0},"memoryAvailableBytes":{"type":"integer","minimum":0},"diskTotalBytes":{"type":"integer","minimum":0},"diskAvailableBytes":{"type":"integer","minimum":0},"activeSessions":{"type":"integer","minimum":0},"acceptingWork":{"type":"boolean"},"pressureReason":{"type":"string"}},"required":["id","workerId","observedAt","cpuLoad1","cpuLoad5","cpuLoad15","memoryTotalBytes","memoryAvailableBytes","activeSessions","acceptingWork"]},"SessionResourceSample":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"workerId":{"type":"string","format":"uuid"},"sessionId":{"type":"string","format":"uuid"},"profileId":{"type":"string","format":"uuid"},"observedAt":{"type":"string","format":"date-time"},"browserPid":{"type":"integer","minimum":0},"processCount":{"type":"integer","minimum":0},"memoryBytes":{"type":"integer","minimum":0},"cpuPercent":{"type":"number","minimum":0},"cpuTimeSeconds":{"type":"number","minimum":0}},"required":["id","workerId","sessionId","observedAt","browserPid","processCount","memoryBytes","cpuTimeSeconds"]},"Worker":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"status":{"type":"string"},"activeSessions":{"type":"integer"},"maxSessions":{"type":"integer"},"schedulingPriority":{"type":"integer"},"lastSeenAt":{"type":"string","format":"date-time"},"controlSocketConnectedAt":{"type":"string","format":"date-time"},"controlSocketDisconnectedAt":{"type":"string","format":"date-time"},"workerApiKeyId":{"type":"string","format":"uuid"},"workerVersion":{"type":"string"},"workerBuildSha":{"type":"string"},"workerBuildTime":{"type":"string"},"workerImageTag":{"type":"string"},"workerProtocolVersion":{"type":"integer","minimum":0},"workerProtocolStatus":{"type":"string","enum":["unknown","compatible","incompatible"],"default":"unknown"}},"required":["id","status","activeSessions","maxSessions","schedulingPriority"]},"WorkerDetail":{"allOf":[{"$ref":"#/components/schemas/Worker"},{"type":"object","properties":{"os":{"type":"string"},"arch":{"type":"string"},"cpu":{"type":"object"},"memoryBytes":{"type":"number"},"disk":{"type":"object"},"labels":{"type":"object"},"browserInventory":{"type":"object"},"supportsHeadful":{"type":"boolean"},"supportsHeadless":{"type":"boolean"},"supportsLiveView":{"type":"boolean"},"supportsExternalAttach":{"type":"boolean"},"supportsEgressRouting":{"type":"boolean"},"metadata":{"type":"object"},"resourceUsage":{"type":"object"},"resourceReportedAt":{"type":"string","format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["cpu","disk","labels","browserInventory","supportsHeadful","supportsHeadless","supportsLiveView","supportsExternalAttach","supportsEgressRouting","metadata","createdAt","updatedAt"]}]},"WorkerEgressAssignment":{"type":"object","properties":{"assignmentId":{"type":"string","format":"uuid"},"workerId":{"type":"string","format":"uuid"},"egressProfileId":{"type":"string","format":"uuid"},"profileVersion":{"type":"integer","exclusiveMinimum":0},"state":{"type":"string","enum":["pending","draining","applying","verifying","active","failed"]},"expectedExitIp":{"anyOf":[{"type":"string","format":"ip"},{"type":"string","format":"ip"}]},"observedExitIp":{"anyOf":[{"type":"string","format":"ip"},{"type":"string","format":"ip"}]},"observedAt":{"type":"string","format":"date-time"},"lastError":{"type":"string"},"geo":{"type":"object"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["assignmentId","workerId","state","geo","createdAt","updatedAt"]},"AssignWorkerEgressRequest":{"type":"object","properties":{"egressProfileId":{"type":["string","null"],"format":"uuid"}},"required":["egressProfileId"],"additionalProperties":false},"UpdateWorkerRequest":{"type":"object","properties":{"name":{"type":"string","minLength":1},"status":{"type":"string","enum":["online","draining","disabled"]},"maxSessions":{"type":"integer","exclusiveMinimum":0},"schedulingPriority":{"type":"integer","minimum":-1000,"maximum":1000}}},"WorkerRegistrationResult":{"type":"object","properties":{"workerId":{"type":"string","format":"uuid"},"status":{"type":"string"}},"required":["workerId","status"]},"WorkerRegistrationRequest":{"type":"object","properties":{"workerId":{"type":"string","format":"uuid"},"os":{"type":"string","minLength":1},"arch":{"type":"string","minLength":1},"workerVersion":{"type":"string","minLength":1},"workerBuildSha":{"type":"string","minLength":1},"workerBuildTime":{"type":"string","minLength":1},"workerImageTag":{"type":"string","minLength":1},"workerProtocolVersion":{"type":"integer","minimum":0},"cpu":{"type":"object"},"memoryBytes":{"type":"integer","minimum":0},"disk":{"type":"object"},"labels":{"type":"object"},"maxSessions":{"type":"integer","exclusiveMinimum":0},"browserInventory":{"type":"object"},"supportsHeadful":{"type":"boolean"},"supportsHeadless":{"type":"boolean"},"supportsLiveView":{"type":"boolean"},"supportsExternalAttach":{"type":"boolean"},"supportsEgressRouting":{"type":"boolean"},"metadata":{"type":"object"},"runningSessionIds":{"type":"array","items":{"type":"string","format":"uuid"}}}},"WorkerHeartbeatRequest":{"type":"object","properties":{"workerId":{"type":"string","format":"uuid"},"status":{"type":"string","minLength":1},"activeSessions":{"type":"integer","minimum":0},"resourceUsage":{"type":"object"},"workerVersion":{"type":"string","minLength":1},"workerBuildSha":{"type":"string","minLength":1},"workerBuildTime":{"type":"string","minLength":1},"workerImageTag":{"type":"string","minLength":1},"workerProtocolVersion":{"type":"integer","minimum":0},"runningSessionIds":{"type":"array","items":{"type":"string","format":"uuid"}}},"required":["workerId"]},"WorkerSessionStoppedResponse":{"type":"object","properties":{"sessionId":{"type":"string"},"status":{"type":"string","enum":["stopped","failed"]}},"required":["sessionId","status"]},"WorkerSessionStoppedRequest":{"type":"object","properties":{"workerId":{"type":"string","format":"uuid"},"status":{"type":"string","enum":["stopped","failed"]},"reason":{"type":"string","minLength":1},"exitCode":{"type":["integer","null"]},"signal":{"type":["string","null"],"minLength":1}},"required":["workerId","status"]},"WorkerCommandResponse":{"type":"object","properties":{"command":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","enum":["noop"]},"payload":{"type":"object"}},"required":["id","type","payload"]},{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","enum":["launch_session"]},"payload":{"$ref":"#/components/schemas/LaunchSessionCommandPayload"}},"required":["id","type","payload"]},{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","enum":["snapshot_profile"]},"payload":{"$ref":"#/components/schemas/SnapshotProfileCommandPayload"}},"required":["id","type","payload"]},{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","enum":["checkpoint_profile"]},"payload":{"$ref":"#/components/schemas/SnapshotProfileCommandPayload"}},"required":["id","type","payload"]},{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","enum":["stop_session"]},"payload":{"$ref":"#/components/schemas/StopSessionCommandPayload"}},"required":["id","type","payload"]},{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","enum":["stage_session_file"]},"payload":{"$ref":"#/components/schemas/StageSessionFileCommandPayload"}},"required":["id","type","payload"]},{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","enum":["delete_session_file"]},"payload":{"$ref":"#/components/schemas/DeleteSessionFileCommandPayload"}},"required":["id","type","payload"]},{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","enum":["apply_egress_profile"]},"payload":{"$ref":"#/components/schemas/ApplyEgressProfileCommandPayload"}},"required":["id","type","payload"]},{"type":"null"}]}},"required":["command"]},"LaunchSessionCommandPayload":{"type":"object","properties":{"sessionId":{"type":"string"},"mode":{"type":"string","enum":["headful","headless"]},"profileId":{"type":["string","null"]},"profileName":{"type":["string","null"]},"profileSnapshotId":{"type":["string","null"]},"engine":{"$ref":"#/components/schemas/BrowserEngine"},"profileFormat":{"$ref":"#/components/schemas/ProfileFormat"},"snapshotArchivePath":{"type":["string","null"]},"snapshotStorageDriver":{"type":"string","enum":["filesystem","filestore"]},"snapshotDownloadUrl":{"type":["string","null"]},"snapshotEncryption":{"type":"object","properties":{"algorithm":{"type":"string"},"keyId":{"type":"string"},"iv":{"type":"string"}},"required":["algorithm"]},"ttlSeconds":{"type":"integer","exclusiveMinimum":0},"memoryLimitBytes":{"type":"integer","exclusiveMinimum":0},"blockMedia":{"type":"boolean"},"migration":{"$ref":"#/components/schemas/MigrationCommandMetadata"}},"required":["sessionId","mode"]},"BrowserEngine":{"type":"string","enum":["chromium","obscura","lightpanda"]},"ProfileFormat":{"type":"string","enum":["chromium-user-data-dir","obscura-profile","lightpanda-state","none"]},"MigrationCommandMetadata":{"type":"object","properties":{"sourceWorkerId":{"type":"string"},"targetWorkerId":{"type":"string"},"engine":{"$ref":"#/components/schemas/BrowserEngine"},"profileFormat":{"$ref":"#/components/schemas/ProfileFormat"},"mode":{"type":"string","enum":["headful","headless"]},"reason":{"type":["string","null"]},"idempotencyKey":{"type":["string","null"]},"lockOwnerKey":{"type":["string","null"]}},"required":["sourceWorkerId","targetWorkerId","mode"]},"SnapshotProfileCommandPayload":{"type":"object","properties":{"sessionId":{"type":"string"},"profileId":{"type":"string"},"snapshotId":{"type":"string"},"engine":{"$ref":"#/components/schemas/BrowserEngine"},"engineVersion":{"type":["string","null"]},"profileFormat":{"$ref":"#/components/schemas/ProfileFormat"},"commandId":{"type":["string","null"]},"archivePath":{"type":["string","null"]},"storageDriver":{"type":"string","enum":["filesystem","filestore"]},"memoryLimitBytes":{"type":"integer","exclusiveMinimum":0},"blockMedia":{"type":"boolean"},"migration":{"$ref":"#/components/schemas/MigrationCommandMetadata"}},"required":["sessionId","profileId","snapshotId"]},"StopSessionCommandPayload":{"type":"object","properties":{"sessionId":{"type":"string"},"reason":{"type":["string","null"]}},"required":["sessionId"]},"StageSessionFileCommandPayload":{"type":"object","properties":{"sessionId":{"type":"string"},"fileId":{"type":"string"},"purpose":{"type":"string","enum":["upload_input","download"]},"relativePath":{"type":"string","minLength":1},"downloadUrl":{"type":"string","format":"uri"},"sourcePath":{"type":"string","minLength":1},"byteSize":{"type":"integer","minimum":0},"checksumSha256":{"type":["string","null"]},"encryption":{"type":"object","properties":{"algorithm":{"type":"string"},"keyId":{"type":"string"},"iv":{"type":"string"}},"required":["algorithm"]}},"required":["sessionId","fileId","purpose","relativePath"]},"DeleteSessionFileCommandPayload":{"type":"object","properties":{"sessionId":{"type":"string"},"fileId":{"type":"string"},"purpose":{"type":"string","enum":["upload_input","download"]},"relativePath":{"type":"string","minLength":1}},"required":["sessionId","fileId","purpose","relativePath"]},"ApplyEgressProfileCommandPayload":{"anyOf":[{"type":"object","properties":{"profileId":{"type":"null"}},"required":["profileId"],"additionalProperties":false},{"type":"object","properties":{"profileId":{"type":"string","format":"uuid"},"version":{"type":"integer","exclusiveMinimum":0},"adapter":{"type":"string","enum":["wireguard"]},"secretFingerprint":{"type":"string","pattern":"^hmac-sha256:[0-9a-f]{64}$"}},"required":["profileId","version","adapter","secretFingerprint"],"additionalProperties":false}]},"ClaimWorkerCommandRequest":{"type":"object","properties":{"workerId":{"type":"string","format":"uuid"}},"required":["workerId"]},"UploadIntent":{"type":"object","properties":{"fileId":{"type":"string"},"method":{"type":"string"},"uploadUrl":{"type":"string"},"headers":{"type":"object","additionalProperties":{"type":"string"}},"expiresAt":{"type":"string"}},"required":["fileId","method","uploadUrl","headers"]},"CreateUploadIntentRequest":{"type":"object","properties":{"workerId":{"type":"string","format":"uuid"},"commandId":{"type":"string","minLength":1},"profileId":{"type":"string","minLength":1},"snapshotId":{"type":"string","minLength":1},"byteSize":{"type":"integer","minimum":0}},"required":["workerId","commandId","profileId","snapshotId","byteSize"]},"CompletedWorkerCommandResponse":{"type":"object","properties":{"command":{"$ref":"#/components/schemas/WorkerCommand"}},"required":["command"]},"WorkerCommand":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","enum":["noop"]},"payload":{"type":"object"}},"required":["id","type","payload"]},{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","enum":["launch_session"]},"payload":{"$ref":"#/components/schemas/LaunchSessionCommandPayload"}},"required":["id","type","payload"]},{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","enum":["snapshot_profile"]},"payload":{"$ref":"#/components/schemas/SnapshotProfileCommandPayload"}},"required":["id","type","payload"]},{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","enum":["checkpoint_profile"]},"payload":{"$ref":"#/components/schemas/SnapshotProfileCommandPayload"}},"required":["id","type","payload"]},{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","enum":["stop_session"]},"payload":{"$ref":"#/components/schemas/StopSessionCommandPayload"}},"required":["id","type","payload"]},{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","enum":["stage_session_file"]},"payload":{"$ref":"#/components/schemas/StageSessionFileCommandPayload"}},"required":["id","type","payload"]},{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","enum":["delete_session_file"]},"payload":{"$ref":"#/components/schemas/DeleteSessionFileCommandPayload"}},"required":["id","type","payload"]},{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","enum":["apply_egress_profile"]},"payload":{"$ref":"#/components/schemas/ApplyEgressProfileCommandPayload"}},"required":["id","type","payload"]}]},"CompleteWorkerCommandRequest":{"type":"object","properties":{"workerId":{"type":"string","format":"uuid"},"status":{"type":"string","enum":["succeeded","failed"]},"result":{},"error":{"type":"string","minLength":1}},"required":["workerId","status"]},"EgressProfileListResponse":{"type":"object","properties":{"egressProfiles":{"type":"array","items":{"$ref":"#/components/schemas/EgressProfile"}}},"required":["egressProfiles"]},"EgressProfile":{"type":"object","properties":{"egressProfileId":{"type":"string","format":"uuid"},"name":{"type":"string"},"adapter":{"$ref":"#/components/schemas/EgressAdapter"},"publicMetadata":{"$ref":"#/components/schemas/WireGuardPublicMetadata"},"secretFingerprint":{"type":"string"},"expectedExitIp":{"anyOf":[{"type":"string","format":"ip"},{"type":"string","format":"ip"}]},"version":{"type":"integer","exclusiveMinimum":0},"assignedWorkerCount":{"type":"integer","minimum":0},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["egressProfileId","name","adapter","publicMetadata","secretFingerprint","version","assignedWorkerCount","createdAt","updatedAt"]},"EgressAdapter":{"type":"string","enum":["wireguard"]},"WireGuardPublicMetadata":{"type":"object","properties":{"interfaceAddresses":{"type":"array","items":{"type":"string"}},"dns":{"type":"array","items":{"type":"string"}},"peerPublicKey":{"type":"string"},"endpointHost":{"type":"string"},"endpointPort":{"type":"integer","minimum":1,"maximum":65535},"allowedIps":{"type":"array","items":{"type":"string"}},"persistentKeepalive":{"type":"integer","minimum":0,"maximum":65535},"hasPresharedKey":{"type":"boolean"}},"required":["interfaceAddresses","dns","peerPublicKey","endpointHost","endpointPort","allowedIps","hasPresharedKey"]},"CreateEgressProfileRequest":{"type":"object","properties":{"name":{"type":"string","minLength":1},"config":{"type":"string","minLength":1,"maxLength":65536},"expectedExitIp":{"anyOf":[{"type":"string","format":"ip"},{"type":"string","format":"ip"}]}},"required":["name","config"]},"UpdateEgressProfileRequest":{"type":"object","properties":{"name":{"type":"string","minLength":1},"config":{"type":"string","minLength":1,"maxLength":65536},"expectedExitIp":{"anyOf":[{"type":"string","format":"ip"},{"type":"string","format":"ip"},{"type":"null"}]}}},"ProfileListResponse":{"type":"object","properties":{"profiles":{"type":"array","items":{"$ref":"#/components/schemas/Profile"}}},"required":["profiles"]},"Profile":{"type":"object","properties":{"profileId":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"latestSnapshotId":{"type":"string"},"latestSnapshotSizeBytes":{"type":"integer","minimum":0},"engine":{"$ref":"#/components/schemas/BrowserEngine"},"profileFormat":{"$ref":"#/components/schemas/ProfileFormat"},"metadata":{},"pinnedWorkerId":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["profileId","name","engine","profileFormat","createdAt","updatedAt"]},"CreateProfileRequest":{"type":"object","properties":{"name":{"type":"string","minLength":1},"description":{"type":"string","minLength":1},"engine":{"$ref":"#/components/schemas/BrowserEngine"},"profileFormat":{"$ref":"#/components/schemas/ProfileFormat"},"metadata":{"type":"object"}},"required":["name"]},"UpdateProfileRequest":{"type":"object","properties":{"name":{"type":"string","minLength":1},"description":{"type":"string","minLength":1},"engine":{"$ref":"#/components/schemas/BrowserEngine"},"profileFormat":{"$ref":"#/components/schemas/ProfileFormat"},"metadata":{"type":"object"},"pinnedWorkerId":{"type":["string","null"],"format":"uuid","description":"Run this profile's sessions only on this worker so sites see one stable egress identity. Null clears the pin."}}},"ProfileSnapshotListResponse":{"type":"object","properties":{"snapshots":{"type":"array","items":{"$ref":"#/components/schemas/ProfileSnapshot"}}},"required":["snapshots"]},"ProfileSnapshot":{"type":"object","properties":{"snapshotId":{"type":"string"},"profileId":{"type":"string"},"createdBySessionId":{"type":"string"},"status":{"type":"string"},"engine":{"$ref":"#/components/schemas/BrowserEngine"},"engineVersion":{"type":"string"},"profileFormat":{"$ref":"#/components/schemas/ProfileFormat"},"archiveFormat":{"type":"string"},"sizeBytes":{"type":"integer","minimum":0},"storageObjectId":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["snapshotId","profileId","status","engine","profileFormat","archiveFormat","createdAt","updatedAt"]},"CreatedProfileSnapshot":{"type":"object","properties":{"snapshotId":{"type":"string"},"profileId":{"type":"string"},"sessionId":{"type":"string"},"status":{"type":"string"},"engine":{"$ref":"#/components/schemas/BrowserEngine"},"engineVersion":{"type":"string"},"profileFormat":{"$ref":"#/components/schemas/ProfileFormat"},"archiveFormat":{"type":"string"}},"required":["snapshotId","profileId","sessionId","status","engine","profileFormat","archiveFormat"]},"CreateProfileSnapshotRequest":{"type":"object","properties":{"sessionId":{"type":"string","format":"uuid"}},"required":["sessionId"]},"InsightsSummary":{"type":"object","properties":{"generatedAt":{"type":"string","format":"date-time"},"windowDays":{"type":"integer","exclusiveMinimum":0},"overview":{"type":"object","properties":{"workersOnline":{"type":"integer","minimum":0},"workersTotal":{"type":"integer","minimum":0},"activeSessions":{"type":"integer","minimum":0},"sessionsStarted":{"type":"integer","minimum":0},"sessionsFailed":{"type":"integer","minimum":0},"startFailureRate":{"type":"number","minimum":0},"commandQueueDepth":{"type":"integer","minimum":0},"commandFailureRate":{"type":"number","minimum":0},"storageBytes":{"type":"integer","minimum":0}},"required":["workersOnline","workersTotal","activeSessions","sessionsStarted","sessionsFailed","startFailureRate","commandQueueDepth","commandFailureRate","storageBytes"]},"usage":{"type":"object","properties":{"sessionsByDay":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string"},"count":{"type":"integer","minimum":0}},"required":["date","count"]}},"sessionModes":{"type":"array","items":{"type":"object","properties":{"mode":{"type":"string"},"count":{"type":"integer","minimum":0}},"required":["mode","count"]}},"sessionSources":{"type":"array","items":{"type":"object","properties":{"sourceType":{"type":"string"},"count":{"type":"integer","minimum":0}},"required":["sourceType","count"]}},"concurrencyModes":{"type":"array","items":{"type":"object","properties":{"mode":{"type":"string"},"count":{"type":"integer","minimum":0}},"required":["mode","count"]}},"topConsumerApps":{"type":"array","items":{"type":"object","properties":{"consumerAppId":{"type":"string"},"name":{"type":"string"},"sessions":{"type":"integer","minimum":0},"attachments":{"type":"integer","minimum":0}},"required":["consumerAppId","name","sessions","attachments"]}}},"required":["sessionsByDay","sessionModes","sessionSources","concurrencyModes","topConsumerApps"]},"quality":{"type":"object","properties":{"averageDurationSeconds":{"type":"integer","minimum":0},"p95DurationSeconds":{"type":"integer","minimum":0},"failedSessions":{"type":"integer","minimum":0},"failedAttachments":{"type":"integer","minimum":0},"lockConflicts":{"type":"integer","minimum":0},"cdpHealthEvents":{"type":"integer","minimum":0},"topFailureReasons":{"type":"array","items":{"type":"object","properties":{"reason":{"type":"string"},"count":{"type":"integer","minimum":0}},"required":["reason","count"]}},"recentFailures":{"type":"array","items":{"type":"object","properties":{"occurredAt":{"type":"string","format":"date-time"},"kind":{"type":"string","enum":["session","attachment","worker_command"]},"message":{"type":"string"},"sessionId":{"type":"string"},"workerId":{"type":"string"},"consumerAppId":{"type":"string"}},"required":["occurredAt","kind","message"]}}},"required":["failedSessions","failedAttachments","lockConflicts","cdpHealthEvents","topFailureReasons","recentFailures"]},"timing":{"type":"object","properties":{"p50LaunchLatencySeconds":{"type":"integer","minimum":0},"p95LaunchLatencySeconds":{"type":"integer","minimum":0},"p50AttachmentAcquireSeconds":{"type":"integer","minimum":0},"p95AttachmentAcquireSeconds":{"type":"integer","minimum":0},"p50CommandQueueWaitSeconds":{"type":"integer","minimum":0},"p95CommandQueueWaitSeconds":{"type":"integer","minimum":0},"p50CommandExecutionSeconds":{"type":"integer","minimum":0},"p95CommandExecutionSeconds":{"type":"integer","minimum":0},"oldestActiveSessionAgeSeconds":{"type":"integer","minimum":0}}},"workers":{"type":"array","items":{"type":"object","properties":{"workerId":{"type":"string"},"name":{"type":"string"},"status":{"type":"string"},"displayStatus":{"type":"string"},"activeSessions":{"type":"integer","minimum":0},"maxSessions":{"type":"integer","minimum":0},"availableCapacity":{"type":"integer","minimum":0},"utilization":{"type":"number","minimum":0},"commandQueueDepth":{"type":"integer","minimum":0},"commandFailures":{"type":"integer","minimum":0},"lastSeenAt":{"type":"string","format":"date-time"},"workerVersion":{"type":"string"},"workerBuildSha":{"type":"string"},"supportsHeadful":{"type":"boolean"},"supportsHeadless":{"type":"boolean"},"supportsLiveView":{"type":"boolean"},"supportsExternalAttach":{"type":"boolean"},"supportsEgressRouting":{"type":"boolean"}},"required":["workerId","status","displayStatus","activeSessions","maxSessions","availableCapacity","utilization","commandQueueDepth","commandFailures"]}},"storage":{"type":"object","properties":{"snapshotBytes":{"type":"integer","minimum":0},"snapshotCount":{"type":"integer","minimum":0},"artifactBytes":{"type":"integer","minimum":0},"largestProfiles":{"type":"array","items":{"type":"object","properties":{"profileId":{"type":"string"},"name":{"type":"string"},"bytes":{"type":"integer","minimum":0}},"required":["profileId","name","bytes"]}}},"required":["snapshotBytes","snapshotCount","artifactBytes","largestProfiles"]}},"required":["generatedAt","windowDays","overview","usage","quality","timing","workers","storage"]},"SessionListResponse":{"type":"object","properties":{"sessions":{"type":"array","items":{"$ref":"#/components/schemas/Session"}}},"required":["sessions"]},"Session":{"type":"object","properties":{"sessionId":{"type":"string"},"workerId":{"type":"string"},"status":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"profileId":{"type":"string"},"profileName":{"type":"string"},"profileSnapshotId":{"type":"string"},"profileSnapshotGeneration":{"type":"integer","exclusiveMinimum":0},"profileSnapshotCreatedAt":{"type":"string","format":"date-time"},"engine":{"$ref":"#/components/schemas/BrowserEngine"},"profileFormat":{"$ref":"#/components/schemas/ProfileFormat"},"mode":{"type":"string"},"cdpProxyPath":{"type":"string"},"expiresAt":{"type":"string","format":"date-time"},"memoryLimitMb":{"type":"integer","exclusiveMinimum":0},"blockMedia":{"type":"boolean"},"startedAt":{"type":"string","format":"date-time"},"stoppedAt":{"type":"string","format":"date-time"},"stopReason":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["sessionId","workerId","status","engine","profileFormat"]},"CreateSessionRequest":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"description":{"type":"string","maxLength":4000},"engine":{"$ref":"#/components/schemas/BrowserEngine"},"mode":{"type":"string","enum":["headful","headless"],"default":"headless"},"profileId":{"type":"string","format":"uuid"},"profileName":{"type":"string","minLength":1},"ttlSeconds":{"type":"integer","exclusiveMinimum":0},"workerId":{"type":"string","format":"uuid"},"memoryLimitMb":{"type":"integer","exclusiveMinimum":0,"maximum":1048576,"description":"Optional hard per-session memory ceiling in MiB. This is not a reservation."},"blockMedia":{"type":"boolean","description":"Block audio/video playback in every frame (default true). Disable for sites behind bot challenges such as Cloudflare Turnstile."}}},"CreateExternalAttachSessionRequest":{"type":"object","properties":{"workerId":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":200},"description":{"type":"string","maxLength":4000},"engine":{"$ref":"#/components/schemas/BrowserEngine"},"cdpHost":{"type":"string","enum":["127.0.0.1"],"default":"127.0.0.1"},"cdpPort":{"type":"integer","minimum":1,"maximum":65535},"ttlSeconds":{"type":"integer","exclusiveMinimum":0}},"required":["workerId","cdpPort"]},"CleanupExpiredResponse":{"type":"object","properties":{"expiredAttachments":{"type":"integer","minimum":0},"expiredSessions":{"type":"integer","minimum":0},"expiredTokens":{"type":"integer","minimum":0},"closedPages":{"type":"integer","minimum":0},"releasedLocks":{"type":"integer","minimum":0},"stoppedSessions":{"type":"integer","minimum":0}},"required":["expiredAttachments","expiredSessions","expiredTokens","closedPages","releasedLocks","stoppedSessions"]},"UpdateSessionRequest":{"type":"object","properties":{"name":{"type":["string","null"],"minLength":1,"maxLength":200},"description":{"type":["string","null"],"maxLength":4000}}},"SessionFile":{"type":"object","properties":{"fileId":{"type":"string"},"sessionId":{"type":"string"},"attachmentId":{"type":"string"},"purpose":{"type":"string","enum":["upload_input","download"]},"state":{"type":"string"},"originalFilename":{"type":"string"},"relativePath":{"type":"string"},"browserPath":{"type":"string"},"byteSize":{"type":"integer","minimum":0},"mimeType":{"type":"string"},"checksumSha256":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["fileId","sessionId","purpose","state","relativePath"]},"SessionFileListResponse":{"type":"object","properties":{"files":{"type":"array","items":{"$ref":"#/components/schemas/SessionFile"}}},"required":["files"]},"SessionFileDeleteResponse":{"type":"object","properties":{"fileId":{"type":"string"},"sessionId":{"type":"string"},"deleted":{"type":"boolean"},"storageWarning":{"type":"string"}},"required":["fileId","sessionId","deleted"]},"StopSessionRequest":{"type":"object","properties":{"reason":{"type":"string","minLength":1}}},"UpdateSessionTtlRequest":{"type":"object","properties":{"ttlSeconds":{"type":"integer","minimum":0}},"required":["ttlSeconds"]},"MigrationResult":{"type":"object","properties":{"sessionId":{"type":"string"},"status":{"type":"string"},"sourceWorkerId":{"type":"string"},"targetWorkerId":{"type":"string"},"profileId":{"type":"string"},"snapshotId":{"type":"string"},"engine":{"$ref":"#/components/schemas/BrowserEngine"},"mode":{"type":"string","enum":["headful","headless"]}},"required":["sessionId","status","sourceWorkerId","targetWorkerId","profileId","snapshotId","engine","mode"]},"MigrateSessionRequest":{"type":"object","properties":{"targetWorkerId":{"type":"string","format":"uuid"},"mode":{"type":"string","enum":["headful","headless"]},"reason":{"type":"string","minLength":1},"idempotencyKey":{"type":"string","minLength":1,"maxLength":200}}},"RestartSessionRequest":{"type":"object","properties":{"reason":{"type":"string","minLength":1},"idempotencyKey":{"type":"string","minLength":1,"maxLength":200}}},"SessionHealthProbe":{"type":"object","properties":{"sessionId":{"type":"string"},"healthy":{"type":"boolean"},"versionOk":{"type":"boolean"},"cdpOk":{"type":"boolean"},"controlSocketOk":{"type":"boolean"},"workerTunnelOk":{"type":"boolean"},"pageTargetOk":{"type":"boolean"},"latencyMs":{"type":"integer","minimum":0},"consecutiveFailures":{"type":"integer","minimum":0},"error":{"type":"string"},"pageHealth":{"$ref":"#/components/schemas/PageHealthProbeSummary"},"restarted":{"type":"boolean"},"restartSkippedReason":{"type":"string"},"inconclusive":{"type":"boolean"}},"required":["sessionId","healthy","versionOk","cdpOk","latencyMs","consecutiveFailures"]},"PageHealthProbeSummary":{"type":"object","properties":{"probedPages":{"type":"integer","minimum":0},"healthyPages":{"type":"integer","minimum":0},"unhealthyPages":{"type":"integer","minimum":0},"inconclusivePages":{"type":"integer","minimum":0},"detachedAttachments":{"type":"integer","minimum":0},"pageTargetOk":{"type":"boolean"},"skippedForLiveControl":{"type":"boolean"}},"required":["probedPages","healthyPages","unhealthyPages","inconclusivePages","detachedAttachments"]},"MintedSessionToken":{"type":"object","properties":{"tokenId":{"type":"string"},"token":{"type":"string"},"scopes":{"type":"array","items":{"type":"string","enum":["cdp:connect","cdp:version","live:view","live:control"]}},"expiresAt":{"type":"string","format":"date-time"},"browserVersionUrl":{"type":"string"},"cdpWsUrl":{"type":"string"},"liveViewUrl":{"type":"string"},"pageCdpWsUrl":{"type":"string"}},"required":["tokenId","token","scopes","expiresAt","browserVersionUrl","cdpWsUrl","liveViewUrl"]},"RetryableErrorResponse":{"type":"object","properties":{"error":{"type":"string"},"retryAfterSeconds":{"type":"integer","exclusiveMinimum":0}},"required":["error","retryAfterSeconds"]},"MintSessionTokenRequest":{"type":"object","properties":{"scopes":{"type":"array","items":{"type":"string","enum":["cdp:connect","cdp:version","live:view","live:control"]}},"ttlSeconds":{"type":"integer","exclusiveMinimum":0,"maximum":86400}}},"RevokedSessionToken":{"type":"object","properties":{"tokenId":{"type":"string"},"status":{"type":"string","enum":["revoked"]}},"required":["tokenId","status"]},"CdpBrowserVersion":{"type":"object","properties":{"Browser":{"type":"string"},"Protocol-Version":{"type":"string"},"User-Agent":{"type":"string"},"V8-Version":{"type":"string"},"WebKit-Version":{"type":"string"},"webSocketDebuggerUrl":{"type":"string"}},"required":["webSocketDebuggerUrl"],"additionalProperties":{}},"SessionPageListResponse":{"type":"object","properties":{"pages":{"type":"array","items":{"$ref":"#/components/schemas/SessionPage"}}},"required":["pages"]},"SessionPage":{"type":"object","properties":{"pageId":{"type":"string"},"sessionId":{"type":"string"},"ownerAttachmentId":{"type":"string"},"parentPageId":{"type":"string"},"workerTargetId":{"type":"string"},"cdpTargetId":{"type":"string"},"status":{"type":"string"},"url":{"type":"string"},"title":{"type":"string"},"closePolicy":{"type":"string"},"metadata":{},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"closedAt":{"type":"string","format":"date-time"}},"required":["pageId","sessionId","status","closePolicy","createdAt","updatedAt"]},"EventLogListResponse":{"type":"object","properties":{"events":{"type":"array","items":{"$ref":"#/components/schemas/EventLogEntry"}}},"required":["events"]},"EventLogEntry":{"type":"object","properties":{"eventId":{"type":"string"},"subjectType":{"type":"string","enum":["session","attachment"]},"subjectId":{"type":"string"},"sessionId":{"type":"string"},"attachmentId":{"type":"string"},"type":{"type":"string"},"level":{"type":"string"},"message":{"type":"string"},"payload":{},"createdAt":{"type":"string","format":"date-time"}},"required":["eventId","subjectType","subjectId","type","createdAt"]},"SessionAttachmentListResponse":{"type":"object","properties":{"attachments":{"type":"array","items":{"$ref":"#/components/schemas/SessionAttachment"}}},"required":["attachments"]},"SessionAttachment":{"type":"object","properties":{"attachmentId":{"type":"string"},"sessionId":{"type":"string"},"pageId":{"type":"string"},"consumerKey":{"type":"string"},"jobKind":{"type":"string"},"mode":{"type":"string"},"concurrencyMode":{"type":"string"},"detachPolicy":{"type":"string"},"status":{"type":"string"},"sessionStatus":{"type":"string"},"cdpWsUrl":{"type":"string"},"pageCdpWsUrl":{"type":"string"},"pageTargetId":{"type":"string"},"attachmentPageUrl":{"type":"string"},"browserVersionUrl":{"type":"string"},"diagnostics":{"type":"object"},"expiresAt":{"type":"string","format":"date-time"},"startedAt":{"type":"string","format":"date-time"},"completedAt":{"type":"string","format":"date-time"},"detachedAt":{"type":"string","format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["attachmentId","sessionId","pageId","status","sessionStatus"]},"CreateSessionAttachmentRequest":{"type":"object","properties":{"consumerKey":{"type":"string","minLength":1},"consumerName":{"type":"string","minLength":1},"jobKind":{"type":"string","minLength":1},"idempotencyKey":{"type":"string","minLength":1},"sessionId":{"type":"string","format":"uuid"},"profileId":{"type":"string","format":"uuid"},"profileName":{"type":"string","minLength":1},"sessionSelection":{"type":"string","enum":["auto","pinned","fresh","existing_only"]},"activeSessionStrategy":{"type":"string","enum":["require_single","newest"]},"healthPolicy":{"type":"string","enum":["require_healthy","allow_starting"]},"unhealthyPolicy":{"type":"string","enum":["ignore","fail"]},"engine":{"$ref":"#/components/schemas/BrowserEngine"},"mode":{"type":"string","enum":["headful","headless"]},"ttlSeconds":{"type":"integer","exclusiveMinimum":0},"tokenTtlSeconds":{"type":"integer","exclusiveMinimum":0},"memoryLimitMb":{"type":"integer","exclusiveMinimum":0,"maximum":1048576,"description":"Optional hard per-session memory ceiling in MiB. This is not a reservation."},"blockMedia":{"type":"boolean","description":"Block audio/video playback in every frame (default true). Disable for sites behind bot challenges such as Cloudflare Turnstile."},"awaitReadySeconds":{"type":"integer","minimum":0,"maximum":180},"awaitPageSeconds":{"type":"integer","minimum":0,"maximum":180},"openPage":{"type":"boolean"},"concurrencyMode":{"type":"string","enum":["exclusive_page","exclusive_session"]},"detachPolicy":{"type":"string","enum":["keep_session","stop_session","snapshot_and_stop"]},"input":{"type":"object"}},"required":["jobKind"],"additionalProperties":false},"CleanupStaleSessionAttachmentsResponse":{"type":"object","properties":{"staleAttachments":{"type":"integer","minimum":0},"releasedLocks":{"type":"integer","minimum":0}},"required":["staleAttachments","releasedLocks"]},"CleanupStaleSessionAttachmentsRequest":{"type":"object","properties":{"staleSeconds":{"type":"integer","exclusiveMinimum":0,"maximum":86400}},"additionalProperties":false},"DetachedSessionAttachment":{"type":"object","properties":{"attachmentId":{"type":"string"},"sessionId":{"type":"string"},"status":{"type":"string"},"releasedLocks":{"type":"integer","minimum":0},"detachAction":{"type":"string","enum":["keep_session","stop_session","snapshot_and_stop"]},"sessionStatus":{"type":"string"},"detachedAt":{"type":"string","format":"date-time"}},"required":["attachmentId","sessionId","status","releasedLocks","detachAction","sessionStatus"]},"DetachSessionAttachmentRequest":{"type":"object","properties":{"reason":{"type":"string","minLength":1}},"additionalProperties":false}},"parameters":{}},"paths":{"/v1/config/public":{"get":{"operationId":"getPublicConfig","security":[],"responses":{"200":{"description":"Public CAC config","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicConfig"}}}}}}},"/v1/dev/worker-api-keys":{"post":{"operationId":"createDevWorkerApiKey","security":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDevWorkerApiKeyRequest"}}}},"responses":{"200":{"description":"Created development worker API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerApiKeySecret"}}}}}}},"/v1/worker-api-keys":{"get":{"operationId":"listWorkerApiKeys","security":[{"bearerAuth":[]},{"devSubject":[]}],"responses":{"200":{"description":"Worker API key metadata","content":{"application/json":{"schema":{"type":"object","properties":{"workerApiKeys":{"type":"array","items":{"$ref":"#/components/schemas/WorkerApiKey"}}},"required":["workerApiKeys"]}}}}}},"post":{"operationId":"createWorkerApiKey","security":[{"bearerAuth":[]},{"devSubject":[]}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWorkerApiKeyRequest"}}}},"responses":{"201":{"description":"Created worker API key. Secret is returned once.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerApiKeySecret"}}}}}}},"/v1/worker-api-keys/{keyId}/revoke":{"post":{"operationId":"revokeWorkerApiKey","security":[{"bearerAuth":[]},{"devSubject":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"keyId","in":"path"}],"responses":{"200":{"description":"Revoked worker API key","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"revoked":{"type":"boolean"}},"required":["id","revoked"]}}}}}}},"/v1/worker-api-keys/{keyId}/rotate":{"post":{"operationId":"rotateWorkerApiKey","security":[{"bearerAuth":[]},{"devSubject":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"keyId","in":"path"}],"responses":{"200":{"description":"Rotated worker API key. New secret is returned once.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerApiKeySecret"}}}}}}},"/v1/consumer-apps":{"get":{"operationId":"listConsumerApps","security":[{"bearerAuth":[]},{"devSubject":[]}],"responses":{"200":{"description":"Consumer apps","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsumerAppListResponse"}}}}}}},"/v1/consumer-apps/{consumerAppId}":{"delete":{"operationId":"disableConsumerApp","security":[{"bearerAuth":[]},{"devSubject":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"consumerAppId","in":"path"}],"responses":{"200":{"description":"Disabled consumer app","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsumerApp"}}}}}}},"/v1/consumer-apps/{consumerAppId}/api-keys":{"get":{"operationId":"listConsumerApiKeys","security":[{"bearerAuth":[]},{"devSubject":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"consumerAppId","in":"path"}],"responses":{"200":{"description":"Consumer API keys","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsumerApiKeyListResponse"}}}}}},"post":{"operationId":"createConsumerApiKey","security":[{"bearerAuth":[]},{"devSubject":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"consumerAppId","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateConsumerApiKeyRequest"}}}},"responses":{"201":{"description":"Created consumer API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsumerApiKeySecret"}}}}}}},"/v1/consumer-apps/{consumerAppId}/api-keys/{keyId}/revoke":{"post":{"operationId":"revokeConsumerApiKey","security":[{"bearerAuth":[]},{"devSubject":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"consumerAppId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"keyId","in":"path"}],"responses":{"200":{"description":"Revoked consumer API key","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"revoked":{"type":"boolean"}},"required":["id","revoked"]}}}}}}},"/v1/consumer-apps/{consumerAppId}/api-keys/{keyId}/rotate":{"post":{"operationId":"rotateConsumerApiKey","security":[{"bearerAuth":[]},{"devSubject":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"consumerAppId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"keyId","in":"path"}],"responses":{"200":{"description":"Rotated consumer API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsumerApiKeySecret"}}}}}}},"/v1/resource-samples":{"get":{"operationId":"listResourceSamples","security":[{"bearerAuth":[]},{"devSubject":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":false,"name":"workerId","in":"query"},{"schema":{"type":"string","format":"uuid"},"required":false,"name":"sessionId","in":"query"},{"schema":{"type":"string","format":"uuid"},"required":false,"name":"profileId","in":"query"},{"schema":{"type":"string","format":"date-time"},"required":false,"name":"from","in":"query"},{"schema":{"type":"string","format":"date-time"},"required":false,"name":"to","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":1000,"default":500},"required":false,"name":"limit","in":"query"}],"responses":{"200":{"description":"Bounded worker and browser-session resource history","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceSampleHistory"}}}}}}},"/v1/workers":{"get":{"operationId":"listWorkers","security":[{"bearerAuth":[]},{"devSubject":[]}],"parameters":[{"schema":{"type":"string","enum":["true","false"]},"required":false,"name":"includeRetired","in":"query"}],"responses":{"200":{"description":"Workers","content":{"application/json":{"schema":{"type":"object","properties":{"workers":{"type":"array","items":{"$ref":"#/components/schemas/Worker"}}},"required":["workers"]}}}}}}},"/v1/workers/{workerId}":{"get":{"operationId":"getWorker","security":[{"bearerAuth":[]},{"devSubject":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"workerId","in":"path"}],"responses":{"200":{"description":"Worker machine and capability details","content":{"application/json":{"schema":{"type":"object","properties":{"worker":{"$ref":"#/components/schemas/WorkerDetail"}},"required":["worker"]}}}}}},"patch":{"operationId":"updateWorker","security":[{"bearerAuth":[]},{"devSubject":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"workerId","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateWorkerRequest"}}}},"responses":{"200":{"description":"Updated worker","content":{"application/json":{"schema":{"type":"object","properties":{"worker":{"$ref":"#/components/schemas/WorkerDetail"}},"required":["worker"]}}}}}}},"/v1/workers/{workerId}/egress":{"put":{"operationId":"assignWorkerEgress","security":[{"bearerAuth":[]},{"devSubject":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"workerId","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssignWorkerEgressRequest"}}}},"responses":{"202":{"description":"Queued worker egress assignment","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerEgressAssignment"}}}}}},"get":{"operationId":"getWorkerEgress","security":[{"bearerAuth":[]},{"devSubject":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"workerId","in":"path"}],"responses":{"200":{"description":"Worker egress assignment state","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerEgressAssignment"}}}}}}},"/v1/workers/register":{"post":{"operationId":"registerWorker","security":[{"workerApiKey":[]}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerRegistrationRequest"}}}},"responses":{"200":{"description":"Registered worker identity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerRegistrationResult"}}}}}}},"/v1/workers/heartbeat":{"post":{"operationId":"sendWorkerHeartbeat","security":[{"workerApiKey":[]}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerHeartbeatRequest"}}}},"responses":{"200":{"description":"Recorded worker heartbeat","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerRegistrationResult"}}}}}}},"/v1/workers/sessions/{sessionId}/stopped":{"post":{"operationId":"reportWorkerSessionStopped","security":[{"workerApiKey":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"sessionId","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerSessionStoppedRequest"}}}},"responses":{"200":{"description":"Recorded stopped worker session","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerSessionStoppedResponse"}}}}}}},"/v1/workers/commands/next":{"post":{"operationId":"claimNextWorkerCommand","security":[{"workerApiKey":[]}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClaimWorkerCommandRequest"}}}},"responses":{"200":{"description":"Next worker command","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerCommandResponse"}}}}}}},"/v1/workers/storage/upload-intents":{"post":{"operationId":"createWorkerUploadIntent","security":[{"workerApiKey":[]}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateUploadIntentRequest"}}}},"responses":{"200":{"description":"Scoped upload intent for worker command output","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadIntent"}}}}}}},"/v1/workers/commands/{commandId}/complete":{"post":{"operationId":"completeWorkerCommand","security":[{"workerApiKey":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"commandId","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompleteWorkerCommandRequest"}}}},"responses":{"200":{"description":"Completed worker command","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompletedWorkerCommandResponse"}}}}}}},"/v1/egress-profiles":{"get":{"operationId":"listEgressProfiles","security":[{"bearerAuth":[]},{"devSubject":[]}],"responses":{"200":{"description":"Egress profiles","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EgressProfileListResponse"}}}}}},"post":{"operationId":"createEgressProfile","security":[{"bearerAuth":[]},{"devSubject":[]}],"requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/CreateEgressProfileRequest"}}}},"responses":{"201":{"description":"Created egress profile","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EgressProfile"}}}}}}},"/v1/egress-profiles/{egressProfileId}":{"get":{"operationId":"getEgressProfile","security":[{"bearerAuth":[]},{"devSubject":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"egressProfileId","in":"path"}],"responses":{"200":{"description":"Egress profile","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EgressProfile"}}}}}},"patch":{"operationId":"updateEgressProfile","security":[{"bearerAuth":[]},{"devSubject":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"egressProfileId","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateEgressProfileRequest"}}}},"responses":{"200":{"description":"Updated egress profile","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EgressProfile"}}}}}},"delete":{"operationId":"deleteEgressProfile","security":[{"bearerAuth":[]},{"devSubject":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"egressProfileId","in":"path"}],"responses":{"200":{"description":"Deleted egress profile","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EgressProfile"}}}}}}},"/v1/profiles":{"get":{"operationId":"listProfiles","security":[{"bearerAuth":[]},{"devSubject":[]}],"responses":{"200":{"description":"Profiles","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileListResponse"}}}}}},"post":{"operationId":"createProfile","security":[{"bearerAuth":[]},{"devSubject":[]}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateProfileRequest"}}}},"responses":{"201":{"description":"Created profile","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Profile"}}}}}}},"/v1/profiles/{profileId}":{"get":{"operationId":"getProfile","security":[{"bearerAuth":[]},{"devSubject":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"profileId","in":"path"}],"responses":{"200":{"description":"Profile","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Profile"}}}}}},"patch":{"operationId":"updateProfile","security":[{"bearerAuth":[]},{"devSubject":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"profileId","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateProfileRequest"}}}},"responses":{"200":{"description":"Updated profile","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Profile"}}}}}},"delete":{"operationId":"deleteProfile","security":[{"bearerAuth":[]},{"devSubject":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"profileId","in":"path"}],"responses":{"200":{"description":"Deleted profile","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Profile"}}}}}}},"/v1/profiles/{profileId}/snapshots":{"get":{"operationId":"listProfileSnapshots","security":[{"bearerAuth":[]},{"devSubject":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"profileId","in":"path"}],"responses":{"200":{"description":"Profile snapshots","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileSnapshotListResponse"}}}}}},"post":{"operationId":"createProfileSnapshot","security":[{"bearerAuth":[]},{"devSubject":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"profileId","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateProfileSnapshotRequest"}}}},"responses":{"202":{"description":"Created profile snapshot","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatedProfileSnapshot"}}}}}}},"/v1/profiles/{profileId}/snapshots/{snapshotId}":{"delete":{"operationId":"deleteProfileSnapshot","security":[{"bearerAuth":[]},{"devSubject":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"profileId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"snapshotId","in":"path"}],"responses":{"200":{"description":"Deleted profile snapshot","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileSnapshot"}}}}}}},"/v1/insights/summary":{"get":{"operationId":"getInsightsSummary","security":[{"bearerAuth":[]},{"devSubject":[]}],"parameters":[{"schema":{"type":"integer","exclusiveMinimum":0,"maximum":365},"required":false,"name":"windowDays","in":"query"}],"responses":{"200":{"description":"Operator infra and usage insights","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InsightsSummary"}}}}}}},"/v1/sessions":{"get":{"operationId":"listSessions","security":[{"bearerAuth":[]},{"devSubject":[]}],"parameters":[{"schema":{"type":"integer","exclusiveMinimum":0,"maximum":500},"required":false,"name":"limit","in":"query"},{"schema":{"type":["integer","null"],"minimum":0},"required":false,"name":"offset","in":"query"}],"responses":{"200":{"description":"Sessions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionListResponse"}}}}}},"post":{"operationId":"createSession","security":[{"bearerAuth":[]},{"devSubject":[]}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSessionRequest"}}}},"responses":{"201":{"description":"Created session","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Session"}}}}}}},"/v1/sessions/external-attach":{"post":{"operationId":"createExternalAttachSession","security":[{"bearerAuth":[]},{"devSubject":[]}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateExternalAttachSessionRequest"}}}},"responses":{"201":{"description":"Created external attach session","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Session"}}}}}}},"/v1/sessions/cleanup-expired":{"post":{"operationId":"cleanupExpiredSessions","security":[{"bearerAuth":[]},{"devSubject":[]}],"responses":{"200":{"description":"Cleaned up expired sessions and attachments","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CleanupExpiredResponse"}}}}}}},"/v1/sessions/{sessionId}":{"get":{"operationId":"getSession","security":[{"bearerAuth":[]},{"devSubject":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"sessionId","in":"path"}],"responses":{"200":{"description":"Session","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Session"}}}}}},"patch":{"operationId":"updateSession","security":[{"bearerAuth":[]},{"devSubject":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"sessionId","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSessionRequest"}}}},"responses":{"200":{"description":"Updated session","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Session"}}}}}}},"/v1/sessions/{sessionId}/files":{"post":{"operationId":"uploadSessionFile","security":[{"bearerAuth":[]},{"devSubject":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"sessionId","in":"path"}],"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"},"purpose":{"type":"string","enum":["upload_input"]},"attachmentId":{"type":"string","format":"uuid"}}}}}},"responses":{"201":{"description":"Uploaded and staged session file","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionFile"}}}}}},"get":{"operationId":"listSessionFiles","security":[{"bearerAuth":[]},{"devSubject":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"sessionId","in":"path"},{"schema":{"type":"string","enum":["upload_input"]},"required":false,"name":"purpose","in":"query"}],"responses":{"200":{"description":"Session files","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionFileListResponse"}}}}}}},"/v1/sessions/{sessionId}/files/{fileId}":{"delete":{"operationId":"deleteSessionFile","security":[{"bearerAuth":[]},{"devSubject":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"sessionId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"fileId","in":"path"}],"responses":{"200":{"description":"Deleted session file","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionFileDeleteResponse"}}}}}}},"/v1/sessions/{sessionId}/stop":{"post":{"operationId":"stopSession","security":[{"bearerAuth":[]},{"devSubject":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"sessionId","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StopSessionRequest"}}}},"responses":{"202":{"description":"Stopped session","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Session"}}}}}}},"/v1/sessions/{sessionId}/ttl":{"post":{"operationId":"updateSessionTtl","security":[{"bearerAuth":[]},{"devSubject":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"sessionId","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSessionTtlRequest"}}}},"responses":{"200":{"description":"Updated session TTL","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Session"}}}}}}},"/v1/sessions/{sessionId}/migrate":{"post":{"operationId":"migrateSession","security":[{"bearerAuth":[]},{"devSubject":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"sessionId","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MigrateSessionRequest"}}}},"responses":{"202":{"description":"Started stopped-snapshot session migration","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MigrationResult"}}}}}}},"/v1/sessions/{sessionId}/restart":{"post":{"operationId":"restartSession","security":[{"bearerAuth":[]},{"devSubject":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"sessionId","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestartSessionRequest"}}}},"responses":{"202":{"description":"Restarted session in place on the same worker","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MigrationResult"}}}}}}},"/v1/sessions/{sessionId}/health":{"get":{"operationId":"probeSessionHealth","security":[{"bearerAuth":[]},{"devSubject":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"sessionId","in":"path"}],"responses":{"200":{"description":"Session CDP health probe result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionHealthProbe"}}}}}}},"/v1/sessions/{sessionId}/access-tokens":{"post":{"operationId":"mintSessionAccessToken","security":[{"bearerAuth":[]},{"devSubject":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"sessionId","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MintSessionTokenRequest"}}}},"responses":{"201":{"description":"Minted session access token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MintedSessionToken"}}}},"423":{"description":"Session is under operator control. Retry after the control lease expires.","headers":{"retry-after":{"schema":{"type":"string","description":"Seconds until operator control may be retried"},"required":true,"description":"Seconds until operator control may be retried"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetryableErrorResponse"}}}},"503":{"description":"Session is migrating or CDP is unhealthy. Retry after retryAfterSeconds.","headers":{"retry-after":{"schema":{"type":"string","description":"Seconds to wait before retrying connect or token mint"},"required":true,"description":"Seconds to wait before retrying connect or token mint"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetryableErrorResponse"}}}}}}},"/v1/sessions/{sessionId}/access-tokens/{tokenId}":{"delete":{"operationId":"revokeSessionAccessToken","security":[{"bearerAuth":[]},{"devSubject":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"sessionId","in":"path"},{"schema":{"type":"string"},"required":true,"name":"tokenId","in":"path"}],"responses":{"200":{"description":"Revoked session access token and released live control","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RevokedSessionToken"}}}}}}},"/v1/sessions/{sessionId}/connect":{"get":{"operationId":"connectSession","security":[{"bearerAuth":[]},{"devSubject":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"sessionId","in":"path"},{"schema":{"type":["number","null"]},"required":false,"name":"ttlSeconds","in":"query"}],"responses":{"200":{"description":"Session connection URLs including CDP and live view","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MintedSessionToken"}}}},"423":{"description":"Session is under operator control. Retry after the control lease expires.","headers":{"retry-after":{"schema":{"type":"string","description":"Seconds until operator control may be retried"},"required":true,"description":"Seconds until operator control may be retried"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetryableErrorResponse"}}}},"503":{"description":"Session is migrating or CDP is unhealthy. Retry after retryAfterSeconds.","headers":{"retry-after":{"schema":{"type":"string","description":"Seconds to wait before retrying connect or token mint"},"required":true,"description":"Seconds to wait before retrying connect or token mint"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetryableErrorResponse"}}}}}}},"/v1/sessions/{sessionId}/json/version":{"get":{"operationId":"getSessionBrowserVersion","security":[],"parameters":[{"schema":{"type":"string"},"required":true,"name":"sessionId","in":"path"},{"schema":{"type":"string"},"required":false,"name":"token","in":"query"}],"responses":{"200":{"description":"Browser CDP version metadata","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CdpBrowserVersion"}}}}}}},"/v1/sessions/{sessionId}/live":{"get":{"operationId":"getSessionLiveView","security":[],"parameters":[{"schema":{"type":"string"},"required":true,"name":"sessionId","in":"path"},{"schema":{"type":"string"},"required":true,"name":"token","in":"query"}],"responses":{"200":{"description":"Proxied noVNC live-view page","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/v1/sessions/{sessionId}/pages":{"get":{"operationId":"listSessionPages","security":[{"bearerAuth":[]},{"devSubject":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"sessionId","in":"path"},{"schema":{"type":"string"},"required":false,"name":"attachmentId","in":"query"},{"schema":{"type":"string"},"required":false,"name":"status","in":"query"}],"responses":{"200":{"description":"Session pages","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionPageListResponse"}}}}}}},"/v1/sessions/{sessionId}/pages/{pageId}":{"get":{"operationId":"getSessionPage","security":[{"bearerAuth":[]},{"devSubject":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"sessionId","in":"path"},{"schema":{"type":"string"},"required":true,"name":"pageId","in":"path"}],"responses":{"200":{"description":"Session page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionPage"}}}}}}},"/v1/sessions/{sessionId}/events":{"get":{"operationId":"listSessionEvents","security":[{"bearerAuth":[]},{"devSubject":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"sessionId","in":"path"}],"responses":{"200":{"description":"Session event logs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventLogListResponse"}}}}}}},"/v1/session-attachments":{"get":{"operationId":"listSessionAttachments","security":[{"bearerAuth":[]},{"devSubject":[]}],"responses":{"200":{"description":"Session attachments","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionAttachmentListResponse"}}}}}},"post":{"operationId":"createSessionAttachment","security":[{"bearerAuth":[]},{"devSubject":[]}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSessionAttachmentRequest"}}}},"responses":{"201":{"description":"Created session attachment","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionAttachment"}}}},"423":{"description":"Session is under operator control. Retry after the control lease expires.","headers":{"retry-after":{"schema":{"type":"string","description":"Seconds until operator control may be retried"},"required":true,"description":"Seconds until operator control may be retried"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetryableErrorResponse"}}}},"503":{"description":"Session is migrating or CDP is unhealthy. Retry after retryAfterSeconds.","headers":{"retry-after":{"schema":{"type":"string","description":"Seconds to wait before retrying connect or token mint"},"required":true,"description":"Seconds to wait before retrying connect or token mint"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetryableErrorResponse"}}}}}}},"/v1/session-attachments/cleanup":{"post":{"operationId":"cleanupStaleSessionAttachments","security":[{"bearerAuth":[]},{"devSubject":[]}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CleanupStaleSessionAttachmentsRequest"}}}},"responses":{"200":{"description":"Cleaned up stale session attachments","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CleanupStaleSessionAttachmentsResponse"}}}}}}},"/v1/session-attachments/{attachmentId}/events":{"get":{"operationId":"listSessionAttachmentEvents","security":[{"bearerAuth":[]},{"devSubject":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"attachmentId","in":"path"}],"responses":{"200":{"description":"Session attachment event logs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventLogListResponse"}}}}}}},"/v1/session-attachments/{attachmentId}/detach":{"post":{"operationId":"detachSessionAttachment","security":[{"bearerAuth":[]},{"devSubject":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"attachmentId","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DetachSessionAttachmentRequest"}}}},"responses":{"202":{"description":"Detached session attachment","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DetachedSessionAttachment"}}}}}}}},"webhooks":{}}