01
Create a project
Choose an environment and copy the project key from the Refario app.
Send the customer context your application already knows. Refario connects it with provider cost and revenue so every account has a readable profitability record.
import { refario } from "@refariohq/sdk"
const client = refario.init({ endpoint, apiKey })
const run = client.startRun({
workflow: "resolve-order",
customerId: "cus_123",
featureId: "support_agent"
})
run.llmCall({ name, provider, model })
await run.end({ success: true })Start with one real workflow and customer. Validate attribution, add revenue, then expand across the product.
Choose an environment and copy the project key from the Refario app.
Attach customer, workspace, and feature identifiers to the runs you emit.
Enter monthly recurring revenue and plan details, then review the customer’s calculated margin status.
Refario keeps technical usage detail while adding the commercial dimensions required to understand customer profitability.
No credit card. Attribute real AI usage and find the accounts putting your margin at risk.