API Request Parameter Examples
This article provides examples and explanations of API request parameters to help developers understand how to correctly construct API call requests.
CosLogin Local API Documentation
Updated: 2026-06-18
General Instructions
- Listening address:
127.0.0.1 - Default port:
54345 - Request method: Only supports
POST - Request body: JSON body
- Authentication header:
X-Cos-Local-Token: <local access token> - Client status: Must be logged in, otherwise returns
401 client not logged in
Recommended request headers:
Content-Type: application/json
X-Cos-Local-Token: <local access token>
Uniform response structure:
{
"code": 0,
"msg": "success",
"data": {}
}
Overview of Open APIs
| Category | Local API Path | Description |
|---|---|---|
| Window | POST /browser/open | Open browser window |
| Window | POST /browser/close | Close browser window |
| Window | POST /browser/update | Create or edit window |
| Window | POST /browser/create/batch | Batch create windows |
| Window | POST /browser/batch-create | Batch create window alias |
| Window | POST /browser/createBatch | Batch create window alias |
| Window | POST /browser/update/partial | Partial/batch update windows |
| Window | POST /browser/list | Query window list |
| Window | POST /browser/detail | Query window details |
| Window | POST /browser/delete | Delete window |
| Window | POST /browser/delete/ids | Batch delete windows |
| Window | POST /browser/group/update | Batch modify window groups |
| Window | POST /browser/remark/update | Batch modify window remarks |
| Window | POST /browser/proxy/update | Batch modify window proxies |
| Group | POST /group/list | Query group list |
| Group | POST /group/add | Add group |
| Group | POST /group/edit | Edit group |
| Group | POST /group/delete | Delete group |
| Group | POST /group/detail | Query group details |
| Tag | POST /browserTag/list | Query tag list |
| Tag | POST /browserTag/create | Create tag |
| Tag | POST /browserTag/update | Edit tag |
| Tag | POST /browserTag/delete | Delete tag |
| Tag | POST /browserTag/updateRelation | Update window tag relationship |
Key Updates in This Release
- Added
windowPlatform/window_platformto window creation and batch window creation. - Added
currentPlatform/current_platformto existing window operations. - Added a new batch window creation endpoint
POST /browser/create/batch, while retaining the compatible pathsPOST /browser/batch-createandPOST /browser/createBatch. - Group and tag documentation have been separated into independent pages to facilitate synchronization with the three current online documentations.