Get Workspace Info
Retrieves information about your current workspace.
GET
/
workspace
Get Workspace Info
curl --request GET \
--url https://prod-api.revenueable.ai/ca/api/v0/workspace \
--header 'X-API-KEY: <x-api-key>'import requests
url = "https://prod-api.revenueable.ai/ca/api/v0/workspace"
headers = {"X-API-KEY": "<x-api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<x-api-key>'}};
fetch('https://prod-api.revenueable.ai/ca/api/v0/workspace', 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://prod-api.revenueable.ai/ca/api/v0/workspace",
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: <x-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://prod-api.revenueable.ai/ca/api/v0/workspace"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-KEY", "<x-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://prod-api.revenueable.ai/ca/api/v0/workspace")
.header("X-API-KEY", "<x-api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://prod-api.revenueable.ai/ca/api/v0/workspace")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-KEY"] = '<x-api-key>'
response = http.request(request)
puts response.read_body{
"workspace_info": {
"id": "d079bcb3-72a3-42dc-9586-edf0328e2973",
"name": "Siddharth @ DesiVocal's Workspace",
"created_at": "2024-12-16T13:03:29.947147+00:00",
"credits": 3025,
"locked_credits": 0,
"api_key": "7251cb4b--f52b-4b47-a230-f626ecad3e85"
}
}{
"error": {
"code": "401 Unauthorized",
"message": "Invalid credentials"
}
}{
"error": {
"code": "500 Internal Server Error",
"message": "An unexpected error occurred on the server."
}
}⌘I
Get Workspace Info
curl --request GET \
--url https://prod-api.revenueable.ai/ca/api/v0/workspace \
--header 'X-API-KEY: <x-api-key>'import requests
url = "https://prod-api.revenueable.ai/ca/api/v0/workspace"
headers = {"X-API-KEY": "<x-api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<x-api-key>'}};
fetch('https://prod-api.revenueable.ai/ca/api/v0/workspace', 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://prod-api.revenueable.ai/ca/api/v0/workspace",
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: <x-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://prod-api.revenueable.ai/ca/api/v0/workspace"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-KEY", "<x-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://prod-api.revenueable.ai/ca/api/v0/workspace")
.header("X-API-KEY", "<x-api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://prod-api.revenueable.ai/ca/api/v0/workspace")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-KEY"] = '<x-api-key>'
response = http.request(request)
puts response.read_body{
"workspace_info": {
"id": "d079bcb3-72a3-42dc-9586-edf0328e2973",
"name": "Siddharth @ DesiVocal's Workspace",
"created_at": "2024-12-16T13:03:29.947147+00:00",
"credits": 3025,
"locked_credits": 0,
"api_key": "7251cb4b--f52b-4b47-a230-f626ecad3e85"
}
}{
"error": {
"code": "401 Unauthorized",
"message": "Invalid credentials"
}
}{
"error": {
"code": "500 Internal Server Error",
"message": "An unexpected error occurred on the server."
}
}