Skip to content
Home » Local API V2 – Extension and Bookmark Interface

Local API V2 – Extension and Bookmark Interface

Get Profile Bookmarks

Endpoint

GET /openapi/v2/profiles/{profileId}/bookmarks

Returns the Bookmark content and Bookmark settings for the specified Profile.

Path Parameters

NameTypeRequiredDescription
profileIdstringYesProfile ID.

Response Example

{
  "code": 0,
  "msg": "success",
  "data": {
    "profile_id": "1876881021063852034",
    "content": {},
    "settings": {}
  },
  "next": null
}

Replace Profile Bookmarks

Endpoint

PUT /openapi/v2/profiles/{profileId}/bookmarks

Replaces the Bookmark content and Bookmark settings for the specified Profile. This operation uses the request body as the source of truth. Use it with caution.

Path Parameters

NameTypeRequiredDescription
profileIdstringYesProfile ID.

Request Parameters

NameTypeRequiredDescription
contentobjectNoBookmark content.
settingsobjectNoBookmark settings.

Request Example

{
  "content": {},
  "settings": {}
}

Copy Bookmarks to a Profile

Endpoint

POST /openapi/v2/profiles/{profileId}/bookmarks/copy

Copies Bookmarks from a source Profile to a target Profile. The profileId in the path is the target Profile ID.

Path Parameters

NameTypeRequiredDescription
profileIdstringYesTarget Profile ID.

Request Parameters

NameTypeRequiredDescription
source_profile_idstringNoSource Profile ID.
include_settingsbooleanNoWhether to copy Bookmark settings as well. The default is true.

Request Example

{
  "source_profile_id": "1876881021063852999",
  "include_settings": true
}

Update Profile Extension Settings

Endpoint

PATCH /openapi/v2/profiles/{profileId}/extensions

Updates the Extension management mode and Extension group for the specified Profile.

Path Parameters

NameTypeRequiredDescription
profileIdstringYesProfile ID.

Request Parameters

NameTypeRequiredDescription
modestringNoExtension mode. Allowed values: allowban.
group_idstringNoExtension group ID. Pass an empty value to leave the Profile unassigned to an Extension group.

Request Example

{
  "mode": "allow",
  "group_id": "1876881021063852888"
}

List Extensions

Endpoint

GET /openapi/v2/extensions

Returns the team’s Extensions.

Query Parameters

NameTypeRequiredDescription
requeststringYesExtension list query parameters.

Response Parameters

data.list contains the Extensions:

NameTypeDescription
idstringExtension ID.
namestringExtension name.
versionstringExtension version.
sourcestringExtension source: localgoogle, or dicloak.
groupsobject[]Groups that contain the Extension.

Add an Extension from a Chrome Web Store Link

Endpoint

POST /openapi/v2/extensions

Adds an Extension to the current team from its Chrome Web Store detail page URL. Once added, the Extension appears in the Extension list and can be assigned to Profiles through Extension groups.

Only Chrome Web Store detail page URLs are currently supported. Uploading local Extension packages is not supported.

Request Parameters

NameTypeRequiredDescription
urlstringYesChrome Web Store Extension detail page URL.
extension_group_idsstring[]NoExtension group IDs. If omitted, the default Extension group is used automatically.
statusstringNoExtension status after it is added. Allowed values: ENABLEDDISABLED. The default is DISABLED.
pin_typestringNoHow the Extension icon is pinned. Allowed values: CUSTOMIZE_PINPINUN_PIN. The default is CUSTOMIZE_PIN.
browser_hidebooleanNoWhether to hide the Extension icon in the browser. The default is false.
hide_role_idstring[]NoIDs of the roles for which the Extension icon is hidden. The default is ["all"] when omitted.

Request Example

{
  "url": "https://chromewebstore.google.com/detail/simpleundoclose/plmkckmepaemlbdcihcfiffecmmnofil",
  "status": "DISABLED"
}

Response Parameters

data contains information about the added Extension:

NameTypeDescription
idstringExtension record ID.
browser_extensions_idstringBase Extension record ID or Extension identifier.
unique_idstringChrome Web Store Extension ID.
extensions_namestringExtension name.
extensions_introducestringExtension description.
download_urlstringExtension package URL.
icon_urlstringExtension icon URL.
md5_hashstringExtension package MD5 hash.
sha256_hashstringExtension package SHA256 hash. An empty string if not returned.
sourcestringExtension source. Always GOOGLE.
statusstringExtension status: ENABLED or DISABLED.
versionstringExtension version.
original_urlstringOriginal Chrome Web Store URL.
pin_typestringHow the Extension icon is pinned.
browser_hidebooleanWhether the Extension icon is hidden.
hide_role_idstring[]IDs of the roles for which the Extension icon is hidden.
extension_group_idsstring[]IDs of the groups that contain the Extension.
already_existsbooleanWhether the Extension already exists in the team.
downloadedbooleanWhether this request downloaded the Extension package.

If the Extension already exists in the team, the endpoint returns the existing Extension information and sets already_exists to true.

List Extension Groups

Endpoint

GET /openapi/v2/extension-groups

Returns the list of Extension groups.

Query Parameters

NameTypeRequiredDescription
requeststringYesExtension group list query parameters.

Response Parameters

data.list contains the Extension groups:

NameTypeDescription
idstringExtension group ID.
namestringExtension group name.
remarkstringRemarks.
created_atstringCreation time.
updated_atstringLast update time.

Delete an Extension

Endpoint

DELETE /openapi/v2/extensions/{extensionId}

Deletes the specified Extension. Profiles that use the Extension may be affected after it is deleted. Use this operation with caution.

Path Parameters

NameTypeRequiredDescription
extensionIdstringYesExtension ID.