The https://api.manus.im/apiproxy.v1.ApiProxyService/CallApi endpoint is a central proxy service used by Manus to route requests to internal sandbox services. It acts as an intermediary that handles authentication, routing, and access control.
The endpoint accepts a POST request with a JSON body.
x-sandbox-token: Required. The API token for authentication (usually found in$HOME/.secrets/sandbox_api_token).Content-Type:application/json
The JSON body typically includes:
apiId: String. The ID or name of the internal API to call.body: Object (optional). The request body to be passed to the internal API.query: Object (optional). Query parameters to be passed to the internal API.
Based on reverse-engineered documentation, the proxy can route to several internal services:
- apiId:
/browser/action - body: A
BrowserActionRequestobject. - Example Actions:
navigate,click,input,screenshot,scroll,press_key,select_option,hover.
- apiId:
/terminal/{terminal_id}/write,/terminal/{terminal_id}/reset, etc. - body: Parameters for the terminal command (e.g.,
command,stdin).
- apiId:
/file/upload_to_s3,/file/multipart_upload_to_s3,/file(GET). - body: File path, S3 presigned URL, etc.
- apiId:
/text_editor - body: Action (e.g.,
view,create,write,replace,undo) and file path.
import requests
import json
url = "https://api.manus.im/apiproxy.v1.ApiProxyService/CallApi"
token = "YOUR_SANDBOX_TOKEN"
headers = {
"x-sandbox-token": token,
"Content-Type": "application/json"
}
# Example: Navigate the browser to a URL
payload = {
"apiId": "/browser/action",
"body": {
"action": "navigate",
"url": "https://www.google.com"
}
}
response = requests.post(url, headers=headers, json=payload)
print(response.json())The response is typically a JSON object containing the result of the internal API call. If the call is successful, the data is often nested under a jsonData key.
- https://github.com/whit3rabbit/manus-open
- https://github.com/leonliao/manus-open/blob/9b619acaf2605a9de416944ccba838c277b1dfb9/README.md
- https://github.com/larrykoo711/manus-sandbox-code/
- https://gist.github.com/jlia0/db0a9695b3ca7609c9b1a08dcbf872c9
- https://github.com/dalist1/ai-summarization-challenge/blob/abc04d6a8e42ce556e01b7684066cd052c50b2b6/workspace/input/Manus.im_%20An%20In-Depth%20Analysis%20of%20the%20General%20AI%20Agent.md
- https://github.com/mannaandpoem/OpenManus