Last updated 7 months ago
Was this helpful?
This feature is available with the .
Your API keys must have either .
The Workspace Management API enables you to view workspace metadata for your Paradime accounts.
This endpoint will return details on the current active workspaces in your Paradime Account.
Example Request
import requests import os # API credentials api_endpoint = "<YOUR_API_ENDPOINT>" api_key = "<YOUR_API_KEY>" api_secret = "<YOUR_API_SECRET>" graphql_query = """ query ListWorkspaces { listWorkspaces { ok workspaces { name uid } } } """ response = requests.post(api_endpoint, json={"query": graphql_query}, headers={ "Content-Type": "application/json", "X-API-KEY": api_key, "X-API-SECRET": api_secret, }) print(response.json())
curl -X POST "<YOUR_API_ENDPOINT>" \ -H "Content-Type: application/json" \ -H "X-API-KEY: <YOUR_API_KEY>" \ -H "X-API-SECRET: <YOUR_API_SECRET>" \ -d '{ "query": "query ListWorkspaces { listWorkspaces { ok workspaces { name uid } } }" }'
{ "data": { "listWorkspaces": { "ok": true, "workspaces": [ { "name": "data-platoform", "uid": "r233tak125coyphm" }, { "name": "finance", "uid": "vxs6x31394cqk2vd" }, { "name": "sales", "uid": "fuqge1jaj1122i5k" } ] } } }