diff --git a/apps/stop.mdx b/apps/stop.mdx
index 4164b3c..8c841e6 100644
--- a/apps/stop.mdx
+++ b/apps/stop.mdx
@@ -2,18 +2,14 @@
title: "Stopping"
---
-import StopInvocation from '/snippets/openapi/patch-invocations-id.mdx';
-
-You can terminate an invocation that's running. You can use this to stop automations or agents stuck in an infinite loop.
+You can terminate an invocation that's running. This is useful for stopping automations or agents stuck in an infinite loop.
Terminating an invocation also destroys any browsers associated with it.
## Via API
-You can also do this via the API:
-
-
+Stopping an invocation via the API is not available yet, but it's coming very soon.
## Via CLI
Use `ctrl-c` in the terminal tab where you launched the invocation.
diff --git a/snippets/openapi/get-deployments.mdx b/snippets/openapi/get-deployments.mdx
index 7cfb64f..bb66cea 100644
--- a/snippets/openapi/get-deployments.mdx
+++ b/snippets/openapi/get-deployments.mdx
@@ -6,9 +6,10 @@ const client = new Kernel({
apiKey: 'My API Key',
});
-const deployments = await client.deployments.list();
-
-console.log(deployments);
+// Automatically fetches more pages as needed.
+for await (const deploymentListResponse of client.deployments.list()) {
+ console.log(deploymentListResponse.id);
+}
```
@@ -18,7 +19,8 @@ from kernel import Kernel
client = Kernel(
api_key="My API Key",
)
-deployments = client.deployments.list()
-print(deployments)
+page = client.deployments.list()
+page = page.items[0]
+print(page.id)
```