Skip to content
EditionGuard logo

Connectors / E-commerce · HTTP Connector

EditionGuard integration and API

Generate download links, create a transaction and create a master link in EditionGuard.

What can you do with EditionGuard on Tray.ai?

EditionGuard is an eBook DRM and delivery service that protects EPUB and PDF files and hands buyers secure download links after a sale. Tray.ai connects to EditionGuard through the HTTP Connector, so your workflows can call the EditionGuard API alongside the rest of your stack.

  • Deliver a book link to each buyer as soon as your online store marks the order paid.
  • Upload a book whenever the production team saves a finished EPUB to your shared drive.
  • List transactions each month so finance can reconcile eBook sales in your accounting system.
Connects through
HTTP Connector
Authentication
An API key in a request header
Base URL
https://app.editionguard.com/api/v2

Set it up

Connect EditionGuard to Tray.ai

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

Step 1

Save EditionGuard's API key

Save the key as a Tray.ai authentication. The HTTP Client puts it in the request header, read from $.auth. The key stays out of the workflow and out of the logs.

Step 2

Point the HTTP Client at the API

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

Step 3

Start with “List books”

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

Step 4

Hand it to an AI agent

Wrap “Upload a book” and “Update a book” in workflows, and Tray.ai's Agent Gateway for MCP publishes them as governed tools Claude and other AI agents can call.

Workflows to build with EditionGuard

Connect EditionGuard with Shopify, Stripe and Gmail

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

Deliver EditionGuard eBooks for paid Shopify orders

When

An order is paid in Shopify

Then

  1. Create a transaction in EditionGuard for the order
  2. Deliver a book link to the buyer in EditionGuard

With Shopify

Deliver EditionGuard eBooks after Stripe payments

When

A payment succeeds in Stripe

Then

  1. Generate download links in EditionGuard
  2. Send the buyer an email with the links from Gmail

With Stripe and Gmail

Apps you can build on EditionGuard data

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

eBook order lookup

Finds a transaction and lets support resend the book download link to the buyer.

Catalog manager

Lists protected books and lets the team upload new titles or update existing ones.

Review copy sender

Lets marketing pick several books and send their download links to a reviewer at once.

Give your AI agents EditionGuard tools

Build an MCP server on EditionGuard 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

  • List books
  • List transactions
  • List master links
  • Deliver a book link
  • Upload a book
  • Update a book
  • Delete a book
  • Generate download links

What the EditionGuard API covers

4 resources and 16 documented actions, each one a call the HTTP Connector can make from a Tray.ai workflow. Connecting it takes a few clicks: here's how.

Books

  • List books
  • Upload a book
  • Update a book
  • Delete a book
  • Generate download links

Transactions

  • List transactions
  • Create a transaction
  • Get a transaction
  • Update a transaction
  • Delete a transaction

Master links

  • List master links
  • Create a master link
  • Update a master link
  • Delete a master link

Book delivery

  • Deliver a book link
  • Deliver multiple book links

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

app.editionguard.com/docs/api

Frequently asked questions

What can a Tray.ai workflow do in EditionGuard?

+

The EditionGuard API documents 16 actions across 4 resources (Books, Transactions, Master links, Book delivery). For example: List books; List transactions; List master links. A workflow can make any documented call through the HTTP Connector.

How does Tray.ai authenticate with EditionGuard?

+

The EditionGuard 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.

See EditionGuard 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.