curl --request GET \
--url https://api.openworklabs.com/v1/me/desktop-config \
--header 'x-api-key: <api-key>'import requests
url = "https://api.openworklabs.com/v1/me/desktop-config"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.openworklabs.com/v1/me/desktop-config', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.openworklabs.com/v1/me/desktop-config",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.openworklabs.com/v1/me/desktop-config"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.openworklabs.com/v1/me/desktop-config")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.openworklabs.com/v1/me/desktop-config")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"allowCustomProviders": true,
"allowLocalModels": true,
"allowZenModel": true,
"allowMultipleWorkspaces": true,
"allowControlSettings": true,
"allowManageExtensions": true,
"allowBuiltInExtensions": true,
"allowAlphaUpdates": true,
"showWelcomePage": true,
"execution": {
"commands": "allow",
"blockedCommands": [],
"browserOrigins": [
"<string>"
],
"blockBrowserUploads": false
},
"allowedDesktopVersions": [
"<string>"
],
"brandAppName": "<string>",
"brandLogoUrl": "<string>",
"brandIconUrl": "<string>",
"brandAccentColor": "blue",
"automationsEnabled": true,
"desktopAutomationsEnabled": true,
"cloudAutomationsEnabled": true,
"dashboardEnabled": true,
"connectEnabled": true,
"opencodeV2Only": true,
"localProviderMirror": true,
"removeOpencodeZen": true,
"onboardingPrompts": [
"<string>"
],
"onboardingPromptDescriptions": [
"<string>"
],
"agentPermissions": {
"rules": [
{
"action": "<string>",
"resource": "<string>",
"effect": "allow",
"source": "<string>"
}
]
},
"browserUploadPermissions": {
"enabled": true,
"organizationId": "<string>",
"memberId": "<string>"
},
"fileSendPermissions": {
"enabled": true,
"organizationId": "<string>",
"memberId": "<string>"
},
"defaultModel": {
"providerID": "<string>",
"modelID": "<string>",
"source": "team",
"teamName": "<string>"
}
}{
"error": "unauthorized"
}Get current user's desktop config
Returns the authenticated desktop app restrictions for the caller’s active organization, including the caller’s agent permissions as ordered OpenCode permission rules and the model new chats start with (defaultModel, applied by OpenCode v2 desktops only) when the organization has chosen one the caller can use. Computer use, Mac app scripting and outside-folder rules follow the organization’s agent permission settings. X-OpenWork-Browser-Upload-Permissions: 1 clients receive browserUploadPermissions with the verified organization and member scope, and the organization’s browser_upload rules. Older clients receive a conservative website block when an active managed upload rule cannot be enforced.
curl --request GET \
--url https://api.openworklabs.com/v1/me/desktop-config \
--header 'x-api-key: <api-key>'import requests
url = "https://api.openworklabs.com/v1/me/desktop-config"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.openworklabs.com/v1/me/desktop-config', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.openworklabs.com/v1/me/desktop-config",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.openworklabs.com/v1/me/desktop-config"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.openworklabs.com/v1/me/desktop-config")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.openworklabs.com/v1/me/desktop-config")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"allowCustomProviders": true,
"allowLocalModels": true,
"allowZenModel": true,
"allowMultipleWorkspaces": true,
"allowControlSettings": true,
"allowManageExtensions": true,
"allowBuiltInExtensions": true,
"allowAlphaUpdates": true,
"showWelcomePage": true,
"execution": {
"commands": "allow",
"blockedCommands": [],
"browserOrigins": [
"<string>"
],
"blockBrowserUploads": false
},
"allowedDesktopVersions": [
"<string>"
],
"brandAppName": "<string>",
"brandLogoUrl": "<string>",
"brandIconUrl": "<string>",
"brandAccentColor": "blue",
"automationsEnabled": true,
"desktopAutomationsEnabled": true,
"cloudAutomationsEnabled": true,
"dashboardEnabled": true,
"connectEnabled": true,
"opencodeV2Only": true,
"localProviderMirror": true,
"removeOpencodeZen": true,
"onboardingPrompts": [
"<string>"
],
"onboardingPromptDescriptions": [
"<string>"
],
"agentPermissions": {
"rules": [
{
"action": "<string>",
"resource": "<string>",
"effect": "allow",
"source": "<string>"
}
]
},
"browserUploadPermissions": {
"enabled": true,
"organizationId": "<string>",
"memberId": "<string>"
},
"fileSendPermissions": {
"enabled": true,
"organizationId": "<string>",
"memberId": "<string>"
},
"defaultModel": {
"providerID": "<string>",
"modelID": "<string>",
"source": "team",
"teamName": "<string>"
}
}{
"error": "unauthorized"
}Authorizations
Response
Current user desktop config returned successfully.
Was this page helpful?