{ "opencollection": "1.0.0", "info": { "name": "Cube Agents API", "version": "1.0.0 (1.0)" }, "items": [ { "info": { "name": "Agents", "type": "folder" }, "items": [ { "info": { "name": "List agent categories.", "type": "http" }, "http": { "method": "GET", "url": "https://api.cubesoftware.com/agents/categories", "headers": [ { "name": "X-Company-ID", "value": "" } ], "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://portal.cubesoftware.com/o/authorize/", "accessTokenUrl": "https://api.cubesoftware.com/o/token/", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Returns agent categories with nested prompts." }, { "info": { "name": "Retrieve a single agent category by slug.", "type": "http" }, "http": { "method": "GET", "url": "https://api.cubesoftware.com/agents/categories/:slug", "headers": [ { "name": "X-Company-ID", "value": "" } ], "params": [ { "name": "slug", "value": "", "type": "path" } ], "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://portal.cubesoftware.com/o/authorize/", "accessTokenUrl": "https://api.cubesoftware.com/o/token/", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Returns a single agent category with nested prompts." }, { "info": { "name": "List credit usage by user", "type": "http" }, "http": { "method": "GET", "url": "https://api.cubesoftware.com/agents/credits/usage", "params": [ { "name": "limit", "value": "", "type": "query", "description": "Number of results to return per page." }, { "name": "page", "value": "", "type": "query", "description": "A page number within the paginated result set." } ], "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://portal.cubesoftware.com/o/authorize/", "accessTokenUrl": "https://api.cubesoftware.com/o/token/", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Returns paginated per-user credit usage for the current billing period." }, { "info": { "name": "Get credit usage for a user", "type": "http" }, "http": { "method": "GET", "url": "https://api.cubesoftware.com/agents/credits/usage/:id", "params": [ { "name": "id", "value": "", "type": "path" } ], "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://portal.cubesoftware.com/o/authorize/", "accessTokenUrl": "https://api.cubesoftware.com/o/token/", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Returns credit usage for a specific user company in the current billing period." }, { "info": { "name": "Own credit usage", "type": "http" }, "http": { "method": "GET", "url": "https://api.cubesoftware.com/agents/credits/usage/me", "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://portal.cubesoftware.com/o/authorize/", "accessTokenUrl": "https://api.cubesoftware.com/o/token/", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Returns credit usage for the current user company for the billing period." }, { "info": { "name": "Credit usage summary", "type": "http" }, "http": { "method": "GET", "url": "https://api.cubesoftware.com/agents/credits/usage/summary", "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://portal.cubesoftware.com/o/authorize/", "accessTokenUrl": "https://api.cubesoftware.com/o/token/", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Returns the current credit allocation and usage broken down by Ask, Build, and MCP tiers." }, { "info": { "name": "Build Widget with AI", "type": "http" }, "http": { "method": "POST", "url": "https://api.cubesoftware.com/agents/widget-builder", "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://portal.cubesoftware.com/o/authorize/", "accessTokenUrl": "https://api.cubesoftware.com/o/token/", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Build a widget definition using AI based on a natural language prompt. The widget is created in memory and returned without being saved to the database. The prompt and agent response are saved as ChatMessages in the specified session." } ] } ], "bundled": true }