Loading OneFoundry
Loading OneFoundry
APIs for teammates, work products, decisions, connectors, workspace memory, and events.
Install the SDK and create a focused teammate.
1. Install the SDK
npm install @onefoundry/sdk2. Create a teammate
import { OneFoundryClient } from '@onefoundry/sdk';
const onefoundry = new OneFoundryClient({
apiKey: process.env.ONEFOUNDRY_API_KEY,
});
// Hire a teammate for one focused outcome
const teammate = await onefoundry.teammates.create({
role: 'research',
outcome: 'Prepare a cited market brief for the executive team',
});
console.log(teammate.id);from onefoundry_sdk import OneFoundryClient
client = OneFoundryClient(api_key="your-api-key")
# Hire a teammate for one focused outcome
teammate = client.teammates.create(
role="research",
outcome="Prepare a cited market brief for the executive team",
)
print(teammate.id)curl -X POST https://api.onefoundry.app/v1/teammates \
-H "Authorization: Bearer your-api-key" \
-H "Content-Type: application/json" \
-d '{
"role": "research",
"outcome": "Prepare a cited market brief for the executive team"
}'Create teammates, assign work, read run state, and inspect receipts.
Create, refresh, and retrieve saved outputs like briefs, lists, reports, and dashboard previews.
Read and write workspace memory with consent, source links, and retention controls.
Subscribe to teammate runs, decisions, receipts, and monitor triggers.
OAuth and workspace authentication with scoped permissions.
Manage users, roles, budgets, audit logs, and connector status programmatically.
/v1/teammates/v1/work-products/v1/decisions/{id}/approve/v1/runs/{id}/v1/events/subscribeUse the public examples to understand teammate creation, work-product retrieval, decision approval, and event subscriptions before connecting production systems.
Define custom APIs, classify permissions, test safely, and publish connector access only after review.
Use the docs, inspect examples, and bring us the workflow you want OneFoundry to support next.