Get started with Product API

Use Product API to access workspaces, data, workflows, and agents. First obtain the Product API base URL for the current environment and a personal access token (PAT). The base URL must include /newmoi.

export PRODUCT_API_BASE_URL='<Product API Base URL ending in /newmoi>'
export PRODUCT_API_KEY='<your-personal-access-token>'

curl "$PRODUCT_API_BASE_URL/workspaces" \
  -H "X-API-Key: $PRODUCT_API_KEY" \
  -H "Accept: application/json"

The response returns visible workspaces in data.workspaces. Save a selected data.workspaces[].id; later workspace-resource requests also send it with X-Workspace-ID. Do not mix a PAT with a Genesis base URL, Genesis credential, Authorization header, or browser cookie.

Last updated on