# SegMetrics integrations: contacts, tags and orders

> Add or update a contact, add tags to a contact and add a purchase to a contact in SegMetrics.

**Canonical page:** https://tray.ai/connectors/segmetrics-integrations/
**Categories:** Marketing
**Connects through:** HTTP Connector

## Overview

SegMetrics is a marketing attribution tool that links leads, purchases, and ad spend to each funnel step so marketers can see what every channel earns. Tray.ai connects to SegMetrics through the HTTP Connector, so your workflows can call the SegMetrics API alongside the rest of your stack.

## Use cases

### Contacts

Create and delete contacts in SegMetrics from any Tray.ai workflow. The SegMetrics API covers calls such as add or update a contact and delete a contact.

- Add or update a contact
- Delete a contact

### Tags

Create and delete tags in SegMetrics from any Tray.ai workflow. The SegMetrics API covers calls such as add tags to a contact and remove tags from a contact.

- Add tags to a contact
- Remove tags from a contact

### Orders

Create and delete orders in SegMetrics from any Tray.ai workflow. The SegMetrics API covers calls such as add a purchase to a contact and delete an invoice.

- Add a purchase to a contact
- Delete an invoice

### Subscriptions

Create and delete subscriptions in SegMetrics from any Tray.ai workflow. The SegMetrics API covers calls such as add a subscription and delete a subscription.

- Add a subscription
- Delete a subscription

### Reports

Read and create reports in SegMetrics from any Tray.ai workflow. The SegMetrics API covers calls such as get saved report data and run a report query.

- Get saved report data
- Run a report query

## Challenges Tray.ai solves

### Keeping SegMetrics 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 SegMetrics 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 SegMetrics 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 SegMetrics 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 SegMetrics?

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

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

The SegMetrics API uses an API key in a request header. You save it once as a Tray.ai authentication, and the HTTP Connector adds it to every request.

### Can I get a dedicated SegMetrics connector?

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

## Learn more

- Tray iPaaS: https://tray.ai/platform/ipaas/
- Tray Helix agents: https://tray.ai/helix/agents/
- Agent Gateway for MCP: https://tray.ai/platform/agent-gateway/
- Book a demo: https://tray.ai/contact/
