List Jira workspaces
Lists your realms and, for each, the Jira workspace connected to it (if any).
No authentication: anyone can call this.
POST
/
v1
/
integrations
/
jira
/
get_workspaces
List Jira workspaces
curl --request POST \
--url https://{host}/v1/integrations/jira/get_workspaces \
--header 'Content-Type: application/json' \
--data '
{
"api_token": "cliq_tok_4f9a…"
}
'import requests
url = "https://{host}/v1/integrations/jira/get_workspaces"
payload = { "api_token": "cliq_tok_4f9a…" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({api_token: 'cliq_tok_4f9a…'})
};
fetch('https://{host}/v1/integrations/jira/get_workspaces', 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://{host}/v1/integrations/jira/get_workspaces",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'api_token' => 'cliq_tok_4f9a…'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://{host}/v1/integrations/jira/get_workspaces"
payload := strings.NewReader("{\n \"api_token\": \"cliq_tok_4f9a…\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://{host}/v1/integrations/jira/get_workspaces")
.header("Content-Type", "application/json")
.body("{\n \"api_token\": \"cliq_tok_4f9a…\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{host}/v1/integrations/jira/get_workspaces")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"api_token\": \"cliq_tok_4f9a…\"\n}"
response = http.request(request)
puts response.read_body{
"ok": true,
"data": {
"workspaces": [
{
"realm_id": "5b0c3a7e-2f4d-4b8e-9a51-7c1d2e3f4a5b",
"realm_slug": "production",
"realm_name": "Production",
"channel_id": "9a8b7c6d-5e4f-4321-8a0b-1c2d3e4f5a6b",
"workspace_id": "1a2b3c4d-acme-cloud",
"connected_at": 1759000000000
}
]
}
}{
"ok": false,
"error": "invalid api_token",
"code": "unauthorized"
}{
"ok": false,
"error": "api_token: Required",
"code": "invalid_params"
}{
"ok": false,
"error": "Internal server error",
"code": "internal_error"
}⌘I
List Jira workspaces
curl --request POST \
--url https://{host}/v1/integrations/jira/get_workspaces \
--header 'Content-Type: application/json' \
--data '
{
"api_token": "cliq_tok_4f9a…"
}
'import requests
url = "https://{host}/v1/integrations/jira/get_workspaces"
payload = { "api_token": "cliq_tok_4f9a…" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({api_token: 'cliq_tok_4f9a…'})
};
fetch('https://{host}/v1/integrations/jira/get_workspaces', 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://{host}/v1/integrations/jira/get_workspaces",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'api_token' => 'cliq_tok_4f9a…'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://{host}/v1/integrations/jira/get_workspaces"
payload := strings.NewReader("{\n \"api_token\": \"cliq_tok_4f9a…\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://{host}/v1/integrations/jira/get_workspaces")
.header("Content-Type", "application/json")
.body("{\n \"api_token\": \"cliq_tok_4f9a…\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{host}/v1/integrations/jira/get_workspaces")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"api_token\": \"cliq_tok_4f9a…\"\n}"
response = http.request(request)
puts response.read_body{
"ok": true,
"data": {
"workspaces": [
{
"realm_id": "5b0c3a7e-2f4d-4b8e-9a51-7c1d2e3f4a5b",
"realm_slug": "production",
"realm_name": "Production",
"channel_id": "9a8b7c6d-5e4f-4321-8a0b-1c2d3e4f5a6b",
"workspace_id": "1a2b3c4d-acme-cloud",
"connected_at": 1759000000000
}
]
}
}{
"ok": false,
"error": "invalid api_token",
"code": "unauthorized"
}{
"ok": false,
"error": "api_token: Required",
"code": "invalid_params"
}{
"ok": false,
"error": "Internal server error",
"code": "internal_error"
}