
Quickstart
Get Churro baked into your app in under 60 seconds. No preheating required.
1 — Install the SDK
Add the Churro SDK to your project. It's lightweight — think of it as the cinnamon sugar, not the whole churro.
Terminal
npm install @churro/sdk
2 — Initialize the Client
Grab your secret key from the dashboard and fire up the client. Keep this key safe — treat it like your abuela's churro recipe.
TypeScript
import { Churro } from '@churro/sdk';
const churro = new Churro({
apiKey: process.env.CHURRO_SECRET_KEY,
});
3 — Get an Optimized Price
Call the quote endpoint and let Churro do the deep-frying. You'll get back a golden, perfectly-optimized price.
TypeScript
const quote = await churro.quote({
productId: "prod_123",
basePrice: 10000,
currency: "usd",
});
console.log(quote.optimizedPrice);
// => 12400 — that's the golden ratio.
What's Next?
- → Read about Authentication to secure your keys
- → Explore the Endpoints reference for all available routes
- → Check out our SDKs for Python and Go