Skip to content
Kartra logo

Connectors / Marketing · HTTP Connector

Kartra integration and API

Create a lead and assign a tag in Kartra, and start a workflow when Kartra sends “Lead buys a product”.

What can you do with Kartra on Tray.ai?

Kartra is an online business platform that combines lead capture, email sequences, checkout, memberships and calendars for people selling courses and services. Tray.ai connects to Kartra through the HTTP Connector, so your workflows can call the Kartra API alongside the rest of your stack. API access comes through Kartra's partner program or API plan, so you need approved credentials first.

  • When Kartra sends “Lead buys a product”, record the sale and the customer in your CRM.
  • When Kartra sends “Transaction refunded”, log the refund in your accounting system.
  • Create a lead in Kartra from each webinar registration.
  • Assign a tag to a lead when they become a paying customer in your billing system.
Connects through
HTTP Connector
Authentication
An API key in the request body
Base URL
https://app.kartra.com/api

Set it up

Connect Kartra to Tray.ai

Each step uses Kartra's own API details, from its documentation.

Save Kartra's API key

Ask Kartra for API access. Once it's approved, save the key as a Tray.ai authentication and add it to the request body from $.auth, so it never sits in the workflow itself.

Point the HTTP Client at the API

Add an HTTP Client step and use https://app.kartra.com/api as the base URL. Or paste a cURL example from Kartra's API docs, and Tray.ai fills in the method, URL, and headers.

Start with “Search for a lead”

It's one of 16 documented actions, under Leads. The response comes back as data the next step can map into your other apps.

Start workflows from Kartra events

Give Kartra the URL of a Tray.ai webhook trigger. “Lead buys a product” can then start a workflow, and so can 5 other events.

Workflows to build with Kartra

Connect Kartra with HubSpot, QuickBooks and Salesforce

Each one uses actions and events from Kartra's own API documentation.

Add Kartra buyers to HubSpot

When

Lead buys a product

Then

  1. Get lead data
  2. Create or update the contact in HubSpot

With HubSpot

Record Kartra refunds in QuickBooks

When

Transaction refunded

Then

  1. Get transaction details
  2. Record the refund in QuickBooks

With QuickBooks

Add new Salesforce leads to a Kartra email sequence

When

A lead is created in Salesforce

Then

  1. Create a lead
  2. Subscribe a lead to a sequence for new prospects

With Salesforce

Apps you can build on Kartra data

Internal tools your team can build with an AI assistant, each one using Kartra calls from its API documentation.

Refund and cancellation desk

Looks up a lead's transactions and lets support refund a payment or cancel a subscription.

Lead segment manager

Shows a lead's tags, lists and sequences and lets marketing assign or remove each one.

Purchase and refund feed

Lists purchases, refunds and cancellations as they happen and links each to the lead's record.

Give your AI agents Kartra tools

Build an MCP server on Kartra in Agent Gateway and choose which actions your agents can call. Every call runs with access control and an audit trail. How Agent Gateway works

  • Create a lead
  • Assign a tag
  • Subscribe a lead to a list
  • Subscribe a lead to a sequence
  • Get transaction details
  • Edit a lead
  • Search for a lead
  • Get lead data

What the Kartra API covers

5 resources and 16 documented actions, each one a call the HTTP Connector can make from a Tray.ai workflow. Kartra gives API access on request, so approved credentials come first. Connecting it takes a few clicks: here's how.

Leads

  • Create a lead
  • Edit a lead
  • Search for a lead
  • Get lead data

Tags

  • Assign a tag
  • Unassign a tag
  • List all tags

Lists

  • Subscribe a lead to a list
  • Unsubscribe a lead from a list
  • List all lists

Sequences

  • Subscribe a lead to a sequence
  • Unsubscribe a lead from a sequence
  • List all sequences

Payments

  • Get transaction details
  • Refund a transaction
  • Cancel a subscription

Events Kartra can send to a Tray.ai webhook trigger

  • Lead buys a product
  • Lead fills in a form
  • Lead is assigned a tag
  • Lead subscribes to a list
  • Subscription cancelled
  • Transaction refunded

Checked against Kartra's own documentation on 2026-10-22

support.kartra.com/en/collections/19655232-developers

Frequently asked questions

What can a Tray.ai workflow do in Kartra?

The Kartra API documents 16 actions across 5 resources (Leads, Tags, Lists, Sequences, Payments). For example: Create a lead; Assign a tag; Subscribe a lead to a list. A workflow can make any documented call through the HTTP Connector.

How does Tray.ai authenticate with Kartra?

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

Which Kartra events can start a Tray.ai workflow?

Kartra sends 6 events to a webhook URL, for example: Lead buys a product; Lead fills in a form; Lead is assigned a tag; Lead subscribes to a list; Subscription cancelled; Transaction refunded. A Tray.ai webhook trigger receives them and starts a workflow.

Do I need special access to the Kartra API?

Yes. Kartra gives API access on request, so you need approved credentials before a Tray.ai workflow can call it.

See Kartra working against your stack.

We'll walk through a tailored demo with your systems plugged in.

Great, a couple more details

This helps us connect you with the right person. Optional, and you can skip it.