GET and POST
GET and POST are equivalent. Use POST with a JSON body for operations that create or change objects; use GET for checks and lists when the client supports it. A query string works as well, but a JSON body is easier to read and log.
There is no product quota on profile launches. Input validation, busy-profile protection and Local API access controls still apply.
curl http://127.0.0.1:45678/statuscurl -X POST http://127.0.0.1:45678/api/v2/browser-profile/list -H 'Content-Type: application/json' -d '{"page":1,"page_size":100}'Success and error envelope
A successful call returns code: 0, the message success and a data object. The contents of data depend on the method: a list returns data.list, a launch returns data.ws, and a method that changes a profile can return its fields.
{
"code": 0,
"msg": "success",
"data": {}
}An API error returns code: -1, an empty data object and a message that explains the cause. Ombra sends HTTP 200 for these errors too, so a client that checks only the HTTP status will treat a failed call as a success.
{
"code": -1,
"data": {},
"msg": "<reason>"
}HTTP 404 and 405
A request to an unknown path returns HTTP 404; a known path with an unsupported HTTP method returns HTTP 405. Both use the same envelope with code: -1. These are routing errors, not profile errors.
| Status | When it appears | What to check |
|---|---|---|
| 200 | The request reached a method, including an API-level error | Read code in the body. |
| 404 | The path does not exist | Check the version, the method name and the spelling. |
| 405 | The path exists but does not accept this method | Use GET or POST as documented for the path. |
Headers and access
The server listens on 127.0.0.1 and accepts only the documented Host values: 127.0.0.1, localhost, [::1], local.adspower.net and local.adspower.com. Origin, or Sec-Fetch-Site with cross-site or same-site, marks a request as coming from a page and is rejected. When the API key is enabled, add Authorization: Bearer <key>.
Ordinary page fetch calls cannot reach Local API even when the page knows the port. Run API calls from Node.js, Python, curl or another local process.
Lists and pagination
Lists accept page. Profiles use page_size (1 to 100, one by default); the proxy list uses limit (1 to 200, 50 by default). The response places items in data.list and reports the page and page size. A v2 profile item includes profile_id and name; the v2 launch, stop and update calls use profile_id or profile_no. The v1 calls use user_id or serial_number instead.
Request a page size that matches the task. A value above the limit is rejected with code: -1; it is not a rate-limit error.
A complete request
The following call starts a profile and returns the launch data. Replace YOUR_PROFILE_ID with an ID from the list.
curl -X POST http://127.0.0.1:45678/api/v2/browser-profile/start \
-H 'Content-Type: application/json' \
-d '{"profile_id":"YOUR_PROFILE_ID"}'Read code first. On success, take data.ws.puppeteer. The launch response and state checks are described in Launch and stop a profile. Profile creation and other write calls are in Profiles, groups and proxies.