Retrieve a workspace by id or identifier
curl --request GET \
--url http://localhost:{port}/workspaces/{id-or-identifier} \
--header 'Authorization: Bearer <token>'import requests
url = "http://localhost:{port}/workspaces/{id-or-identifier}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost:{port}/workspaces/{id-or-identifier}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "62437",
CURLOPT_URL => "http://localhost:{port}/workspaces/{id-or-identifier}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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 := "http://localhost:{port}/workspaces/{id-or-identifier}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://localhost:{port}/workspaces/{id-or-identifier}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:{port}/workspaces/{id-or-identifier}")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "d4add56e-c345-4ac9-b392-7a890a60559a",
"identifier": "delay",
"name": "Delay Technologies",
"owner_id": "98d91cd7-860d-4869-937a-5af32eff2f4a",
"workspace_type": "multi_user",
"domain_name": "d3lay.com",
"created_at": "2023-05-06T00:00:00Z",
"updated_at": "2023-05-06T00:00:00Z",
"created_by": "98d91cd7-860d-4869-937a-5af32eff2f4a",
"updated_by": "98d91cd7-860d-4869-937a-5af32eff2f4a"
}Workspace
Retrieve a workspace by id or identifier
GET
/
workspaces
/
{id-or-identifier}
Retrieve a workspace by id or identifier
curl --request GET \
--url http://localhost:{port}/workspaces/{id-or-identifier} \
--header 'Authorization: Bearer <token>'import requests
url = "http://localhost:{port}/workspaces/{id-or-identifier}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost:{port}/workspaces/{id-or-identifier}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "62437",
CURLOPT_URL => "http://localhost:{port}/workspaces/{id-or-identifier}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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 := "http://localhost:{port}/workspaces/{id-or-identifier}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://localhost:{port}/workspaces/{id-or-identifier}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:{port}/workspaces/{id-or-identifier}")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "d4add56e-c345-4ac9-b392-7a890a60559a",
"identifier": "delay",
"name": "Delay Technologies",
"owner_id": "98d91cd7-860d-4869-937a-5af32eff2f4a",
"workspace_type": "multi_user",
"domain_name": "d3lay.com",
"created_at": "2023-05-06T00:00:00Z",
"updated_at": "2023-05-06T00:00:00Z",
"created_by": "98d91cd7-860d-4869-937a-5af32eff2f4a",
"updated_by": "98d91cd7-860d-4869-937a-5af32eff2f4a"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Your API version
Available options:
v1 Available options:
application/json, application/xml, application/x-www-form-urlencoded, application/octet-stream, application/pdf, text/plain, text/html, multipart/form-data Path Parameters
Response
Success
Example:
"98d91cd7-860d-4869-937a-5af32eff2f4a"
Example:
"delay"
Example:
"Delay Technologies"
Available options:
single_user, multi_user Example:
"multi_user"
Example:
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
REQUIRE metadata permissions
Example:
"98d91cd7-860d-4869-937a-5af32eff2f4a"
REQUIRE metadata permissions
Example:
"98d91cd7-860d-4869-937a-5af32eff2f4a"
Was this page helpful?