CarmenCloudClient

from carmen_cloud_client import CarmenCloudClient

A client for the Carmen Cloud API: workspace, members, API keys, billing, usage, stored events, storage settings and hooks.

Example:

client = CarmenCloudClient(CarmenCloudClientOptions(api_key="..."))
workspace = client.workspace.get()
for key in client.api_keys.list_all():
print(key.name)

Methods​

Constructor​

def __init__(self, options: CarmenCloudClientOptions)

get_workspace_id​

def get_workspace_id(self) -> str

The workspace the client operates on.

request​

def request(self, method: str, path: str, query: Optional[dict]=None, body: Optional[Body]=None) -> Any

Sends a request to /workspace/\{workspaceId\}\{path\} and returns the parsed JSON body.