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,
"browserDemonstrations": true,
"browserLiveView": true,
"calendar": true,
"documents": true,
"documentEditing": true,
"nativeDictation": true,
"workspaceAssistant": true,
"guidedNavigation": true,
"usageRecovery": true,
"activationChecklist": 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.
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,
"browserDemonstrations": true,
"browserLiveView": true,
"calendar": true,
"documents": true,
"documentEditing": true,
"nativeDictation": true,
"workspaceAssistant": true,
"guidedNavigation": true,
"usageRecovery": true,
"activationChecklist": true,
"model": "<string>",
"verifyModel": true,
"gatewayModels": true
}{
"error": "unauthorized"
}Authorizations
denApiKeybearerAuth
Organization API key passed as the x-api-key header. The raw key is the header value; do not prefix it with Bearer.
Response
The signed-in person and their workspace.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Was this page helpful?