Documentation

Introducing ContentWorkspace
The Future of Flexible Content Management

In today’s fast-paced digital landscape, managing content across a multitude of platforms can be a complex and time-consuming task. Traditional CMS systems often tie content to a specific presentation layer, making it difficult to adapt to new technologies or channels. This is where ContentWorkspace, a cutting-edge headless Content Management System (CMS), comes into play. By decoupling content from its delivery layer, ContentWorkspace empowers developers and content teams alike to create, manage, and distribute content with unparalleled flexibility and efficiency.

You can check below for examples on how to interact with our API endpoints to query your content.

Your API key, company id, and workspace id can be found under your workspace 'Settings', within the Developer's module.
curl --location 'https://api.contentworkspace.com/{model name or id here}' \ --header 'api_key: api_key \ --header 'company_id: company_id' \ --header 'workspace_id: workspace_id'\ --header 'Content-Type: application/json'
const workspaceConfig = new Headers(); workspaceConfig.append("api_key", api_key); workspaceConfig.append("company_id", company_id); workspaceConfig.append("workspace_id", workspace_id); workspaceConfig.append("Content-Type", "application/json"); const requestOptions = { method: "GET", headers: workspaceConfig, redirect: "follow" }; fetch("https://api.contentworkspace.com/{model name or id here}", requestOptions) .then((response) => response.json()) .then((result) => console.log(result.data)) .catch((error) => console.error(error));
OkHttpClient client = new OkHttpClient().newBuilder() .build(); MediaType mediaType = MediaType.APPLICATION_JSON; RequestBody body = RequestBody.create(mediaType, ""); Request request = new Request.Builder() .url("https://api.contentworkspace.com/{model name or id here}") .method("GET", body) .addHeader("api_key", api_key) .addHeader("company_id", company_id) .addHeader("workspace_id", workspace_id) .addHeader("Content-Type", "application/json") .build(); Response response = client.newCall(request).execute();
import http.client conn = http.client.HTTPSConnection("api.contentworkspace.com") payload = '' headers = { 'api_key': api_key, 'company_id': company_id, 'workspace_id': workspace_id, 'Content-Type': 'application/json' } conn.request("GET", "/{model id or name}", payload, headers) res = conn.getresponse() data = res.read() print(data.decode("utf-8"))
Content Query API: https://api.contentworkspace.com
GET
/{model_id or model_name}
Retrieves content records by model id or name and returns a JSON array of objects.
GET
/{model_id or model_name}/{api_id}
Retrieves a single content record by API id and returns an object.
Content Asset API: https://api.contentworkspace.com/sys_asset
GET
/
Queries a list of assets and returns a JSON array of objects.
GET
/{api_id}
Retrieves a single asset record by API id and returns an object.