Who is signed in to Workbot
curl --request GET \
--url https://api.openworklabs.com/v1/workbot/session \
--header 'x-api-key: <api-key>'import requests
url = "https://api.openworklabs.com/v1/workbot/session"
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/workbot/session', 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/workbot/session",
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/workbot/session"
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/workbot/session")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.openworklabs.com/v1/workbot/session")
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{
"user": {
"id": "<string>",
"name": "<string>",
"email": "<string>"
},
"organization": {
"id": "<string>",
"name": "<string>",
"brandAppName": "<string>"
},
"memberId": "<string>",
"enabled": true,
"canSchedule": true,
"sideChats": true,
"stepTurns": true,
"sessionCells": true,
"computer": true,
"browser": true,
"browserDemonstrations": true,
"browserRecovery": true,
"browserLiveView": true,
"sandboxGateway": true,
"calendar": true,
"documents": true,
"documentEditing": true,
"nativeDictation": true,
"workspaceAssistant": true,
"guidedNavigation": true,
"driveFiles": true,
"usageRecovery": true,
"activationChecklist": true,
"accountMenu": true,
"workingStatus": true,
"quickReply": true,
"browserChat": true,
"instantOpen": true,
"scrollToBottom": true,
"profileSheet": true,
"centeredProfile": true,
"browserPreview": true,
"remoteTasks": true,
"profileNav": true,
"profileComputers": true,
"deviceActivity": true,
"openworkApps": true,
"quietCalendar": true,
"calmChat": true,
"devices": true,
"commandPalette": true,
"model": "<string>",
"verifyModel": true,
"gatewayModels": true
}{
"error": "unauthorized"
}Workbot
Who is signed in to Workbot
For the Workbot app only. With the access token a person got by signing in to Workbot through Den, returns who they are, the workspace they chose, and their available Workbot tools. enabled is false, with the Calendar, documents, workspace assistant and side chats off, when an admin turned Workbot off for everyone or for the member’s team (Workbot settings per team); every other Workbot route then refuses the member.
GET
/
v1
/
workbot
/
session
Who is signed in to Workbot
curl --request GET \
--url https://api.openworklabs.com/v1/workbot/session \
--header 'x-api-key: <api-key>'import requests
url = "https://api.openworklabs.com/v1/workbot/session"
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/workbot/session', 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/workbot/session",
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/workbot/session"
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/workbot/session")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.openworklabs.com/v1/workbot/session")
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{
"user": {
"id": "<string>",
"name": "<string>",
"email": "<string>"
},
"organization": {
"id": "<string>",
"name": "<string>",
"brandAppName": "<string>"
},
"memberId": "<string>",
"enabled": true,
"canSchedule": true,
"sideChats": true,
"stepTurns": true,
"sessionCells": true,
"computer": true,
"browser": true,
"browserDemonstrations": true,
"browserRecovery": true,
"browserLiveView": true,
"sandboxGateway": true,
"calendar": true,
"documents": true,
"documentEditing": true,
"nativeDictation": true,
"workspaceAssistant": true,
"guidedNavigation": true,
"driveFiles": true,
"usageRecovery": true,
"activationChecklist": true,
"accountMenu": true,
"workingStatus": true,
"quickReply": true,
"browserChat": true,
"instantOpen": true,
"scrollToBottom": true,
"profileSheet": true,
"centeredProfile": true,
"browserPreview": true,
"remoteTasks": true,
"profileNav": true,
"profileComputers": true,
"deviceActivity": true,
"openworkApps": true,
"quietCalendar": true,
"calmChat": true,
"devices": true,
"commandPalette": true,
"model": "<string>",
"verifyModel": true,
"gatewayModels": true
}{
"error": "unauthorized"
}Authorizations
denApiKeybearerAuth
Response
The signed-in person and their workspace.
Was this page helpful?