# Faraday integrations: datasets and cohorts

> Create a dataset, create a cohort and create an outcome in Faraday, and start a workflow when Faraday sends “Resource errored”.

**Canonical page:** https://tray.ai/connectors/faraday-integrations/
**Categories:** Data and analytics
**Connects through:** HTTP Connector

## Overview

Faraday is a customer prediction platform that uses first-party and third-party data to score leads, build cohorts and forecast customer behavior. Tray.ai connects to Faraday through the HTTP Connector, so your workflows can call the Faraday API alongside the rest of your stack.

## Use cases

### Datasets

Read, create, update, and delete datasets in Faraday from any Tray.ai workflow. The Faraday API covers calls such as list datasets and create a dataset.

- List datasets
- Create a dataset
- Update a dataset

### Cohorts

Read, create, update, and delete cohorts in Faraday from any Tray.ai workflow. The Faraday API covers calls such as list cohorts and create a cohort.

- List cohorts
- Create a cohort
- Update a cohort

### Outcomes

Read and create outcomes in Faraday from any Tray.ai workflow. The Faraday API covers calls such as list outcomes and create an outcome.

- List outcomes
- Create an outcome
- Download an outcome report

### Targets

Read and create targets in Faraday from any Tray.ai workflow. The Faraday API covers calls such as create a target and look up a target.

- Create a target
- Look up a target
- Download a target CSV

### Uploads

Read, create, and delete uploads in Faraday from any Tray.ai workflow. The Faraday API covers calls such as list uploads and add an upload.

- List uploads
- Add an upload
- Delete an upload

### Webhook endpoints

Read, create, and delete webhook endpoints in Faraday from any Tray.ai workflow. The Faraday API covers calls such as create a webhook endpoint and list webhook endpoints.

- Create a webhook endpoint
- List webhook endpoints
- Delete a webhook endpoint

## Challenges Tray.ai solves

### Keeping Faraday credentials out of logs

A raw API call usually means pasting a key or token into the request, where it ends up in step inputs, logs, and screenshots.

**How Tray.ai helps:** Store Faraday credentials once as a Tray.ai authentication and reference them from the HTTP Connector. Tray.ai masks authentication values in logs, so the secret never shows up in a step's input or output.

### Going from the Faraday API docs to a working call

Translating an example request from API docs into a workflow step means copying the method, URL, headers, and body by hand.

**How Tray.ai helps:** Paste a cURL example from the Faraday API docs into the HTTP Connector and Tray.ai fills in the method, URL, headers, and body for you.

### Handling files and non-JSON responses

Not every API answers in JSON. Some return XML, files, or binary data, or expect a multipart upload.

**How Tray.ai helps:** The HTTP Connector parses JSON and XML responses, returns files you can pass to the next step, and sends multipart form data for uploads.

## Frequently asked questions

### Does Tray.ai connect to Faraday?

Yes. Tray.ai connects to Faraday through the HTTP Connector, which calls the Faraday API directly. Any call the Faraday API documents can run as a step in a Tray.ai workflow.

### How does Tray.ai authenticate with Faraday?

The Faraday API uses a bearer token. You save it once as a Tray.ai authentication, and the HTTP Connector adds it to every request.

### Can I get a dedicated Faraday connector?

Faraday runs through the HTTP Connector rather than a dedicated connector. If your team wants one, the Tray.ai connector SDK can build a dedicated Faraday connector from the Faraday API.

## Learn more

- Intelligent Integration: https://tray.ai/platform/intelligent-ipaas/
- Merlin Agent Builder: https://tray.ai/platform/merlin-agent-builder/
- Agent Gateway for MCP: https://tray.ai/platform/agent-gateway/
- Book a demo: https://tray.ai/contact/
