Get the workspace of the API key
Useful to check that a key works.
GET
/
workspace
Get the workspace of the API key
curl --request GET \
--url https://app.hocdoc.com/api/v1/workspace \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.hocdoc.com/api/v1/workspace', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.hocdoc.com/api/v1/workspace"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"id": "9f1c4b7e-3a52-4d86-b0c1-7e2a9d5f3c18",
"name": "Example GmbH",
"timezone": "Europe/Berlin",
"currency": "EUR"
}
}⌘I
Get the workspace of the API key
curl --request GET \
--url https://app.hocdoc.com/api/v1/workspace \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.hocdoc.com/api/v1/workspace', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.hocdoc.com/api/v1/workspace"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"id": "9f1c4b7e-3a52-4d86-b0c1-7e2a9d5f3c18",
"name": "Example GmbH",
"timezone": "Europe/Berlin",
"currency": "EUR"
}
}