# Private Vs Public

When interacting with the API, you’ll notice that many endpoints require a mode to be specified in the path. Where `mode` can either be **`public`** or **`private`**

* **Private Mode**: The browser session is hosted and secured by us.
* **Public Mode**: The browser session is hosted by any external **provider**, which means it might not have the same level of security as private hosting. **Public mode should only be used for non-sensitive tasks**, where user data, cookies, or logins are not involved. Tasks like general browsing or simple automation that doesn't require secure handling of information are suitable for public sessions.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://dev-docs.tasknet.co/getting-started/private-vs-public.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
