Platform Integration

Connect the SDK to the AgenticWork platform for full enterprise features.

Overview

Platform integration provides:

  • Authentication and authorization

  • Role-based access control (RBAC)

  • MCP tool servers

  • Flowise workflows

  • Workspace management

  • Telemetry and observability

  • Session persistence

Initialization

Token Authentication

import { AgenticWork } from '@agentic-work/sdk';

const aw = new AgenticWork({
  apiEndpoint: 'https://api.agenticwork.io',
  authToken: process.env.AGENTICWORK_TOKEN
});

await aw.init();

console.log('User:', aw.user?.email);
console.log('Admin:', aw.user?.isAdmin);

OAuth Client Credentials

Admin Impersonation

User Information

Permission Checking

MCP Tool Servers

List Servers

Get All Tools

Execute Tool Directly

Flowise Workflows

List Workflows

Create Workflow

Execute Workflow

Update Workflow

Delete Workflow

Workspaces

List Workspaces

Create Workspace

Get Workspace Details

Model Discovery

Telemetry

Log Custom Events

Log Tool Execution Metrics

Direct Provider Access

The platform provides configured providers:

AgentiCode Configuration

For CLI tools:

Error Handling

Environment Variables

Last updated