Developers

Faraday's API wraps the tedious and confusing complexities of machine learning in intuitive, friendly abstractions with our robust API.

Get started in 5 minutes

@fdy/faraday-js
const configuration = new Configuration({
  headers: { authorization: "Bearer YOUR_API_KEY" },
});
const faraday = new FaradayClient(configuration);
// upload orders, identify customers
await faraday.uploads.createUpload("orders", "orders.csv", file);
const cohort = await faraday.cohorts.createCohort({
  name: "Customers",
  stream_name: "orders",
});
// segmentation for personalization
const personaSet = await faraday.personaSets.createPersonaSet({
  name: "Customers",
  cohort_id: cohort.id,
});
// activation pipeline
const scope = await faraday.scopes.createScope({
  name: "Customers Scores",
  preview: true,
  population: { cohort_ids: [cohort.id] },
  payload: { persona_set_ids: [personaSet.id] },
});

Start here