Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/cloud/agent/quickstart.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ console.log(result.output);
```
```bash curl
curl -X POST https://api.browser-use.com/api/v3/sessions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Browser-Use-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"task": "List the top 20 posts on Hacker News today with their points"}'
```
Expand Down
6 changes: 3 additions & 3 deletions docs/cloud/legacy/agent.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ const upload = await client.files.sessionUrl(session.id, {
sizeBytes: 1024,
});

await fetch(upload.presignedUrl, {
method: "PUT",
await fetch(upload.url, {
method: "POST",
Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai Bot Mar 30, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2: The snippet now uses POST, but the section explicitly says presigned uploads should use PUT. This makes the example inconsistent and likely incorrect for presigned URLs.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At docs/cloud/legacy/agent.mdx, line 77:

<comment>The snippet now uses POST, but the section explicitly says presigned uploads should use PUT. This makes the example inconsistent and likely incorrect for presigned URLs.</comment>

<file context>
@@ -73,8 +73,8 @@ const upload = await client.files.sessionUrl(session.id, {
-await fetch(upload.presignedUrl, {
-  method: "PUT",
+await fetch(upload.url, {
+  method: "POST",
   body: readFileSync("input.pdf"),
   headers: { "Content-Type": "application/pdf" },
</file context>
Suggested change
method: "POST",
method: "PUT",
Fix with Cubic

body: readFileSync("input.pdf"),
headers: { "Content-Type": "application/pdf" },
});
Expand All @@ -100,7 +100,7 @@ for file in result.output_files:
const result = await client.tasks.get(taskId);
for (const file of result.outputFiles) {
const output = await client.files.taskOutput(taskId, file.id);
console.log(output.presignedUrl);
console.log(output.downloadUrl);
}
```
</CodeGroup>
Expand Down
4 changes: 2 additions & 2 deletions docs/cloud/legacy/public-share.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ Generate a public URL that anyone can open to watch the entire agent session —
<CodeGroup>
```python Python
share = await client.sessions.create_share(session.id)
print(share.url)
print(share.share_url)
```
```typescript TypeScript
const share = await client.sessions.createShare(session.id);
console.log(share.url);
console.log(share.shareUrl);
```
</CodeGroup>
2 changes: 1 addition & 1 deletion docs/open-source/browser-use-cli.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ browser-use open https://abc.trycloudflare.com

## Profile Management

The `profile` subcommand delegates to the [profile-use](https://github.com/browser-use/browser-use-cli) Go binary, which syncs local browser cookies to Browser-Use cloud.
The `profile` subcommand syncs local browser cookies to Browser-Use cloud.

The binary is managed at `~/.browser-use/bin/profile-use` and auto-downloaded on first use.

Expand Down
Loading