Skip to content
ClickMagick logo

Connectors / Marketing · HTTP Connector

ClickMagick integration and API

Create a project, create a smart link and create a rotator in ClickMagick. Connect ClickMagick to the rest of your marketing stack with Tray.ai.

What can you do with ClickMagick on Tray.ai?

ClickMagick is ad tracking and conversion attribution software that tracks clicks, links and sales across ad campaigns and funnels. Tray.ai connects to ClickMagick through the HTTP Connector, so your workflows can call the ClickMagick API alongside the rest of your stack.

  • Create a smart link in ClickMagick for every new ad campaign your marketing team launches.
  • Get project sales daily and add attributed revenue to your marketing reporting spreadsheet.
  • Create a stats report each week and share campaign performance with the ads team.
Connects through
HTTP Connector
Authentication
An API key in a request header
Base URL
https://api.clickmagick.com/v1

Set it up

Connect ClickMagick to Tray.ai

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

Save ClickMagick'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.

Point the HTTP Client at the API

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

Start with “List projects”

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

Hand it to an AI agent

Wrap “Create a project” and “Create a stats report” 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 ClickMagick

Connect ClickMagick with Google Sheets and Google BigQuery

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

Send weekly ClickMagick stats to Google Sheets

When

On a schedule

Then

  1. Create a stats report for each project
  2. Write clicks and sales by campaign to Google Sheets

With Google Sheets

Load ClickMagick sales and engagement into Google BigQuery

When

On a schedule

Then

  1. Get project sales
  2. Get project engagements
  3. Load the results into Google BigQuery for attribution reporting

With Google BigQuery

Apps you can build on ClickMagick data

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

Ad sales attribution report

Shows sales and actions for each tracking project so a media buyer can see which campaigns convert.

Tracking link manager

Lists smart links and rotators and lets a marketer edit destinations in one place.

Give your AI agents ClickMagick tools

Build an MCP server on ClickMagick 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 projects
  • Get project actions
  • List smart links
  • List rotators
  • List custom domains
  • Create a project
  • Delete a project
  • Create a stats report

What the ClickMagick API covers

5 resources and 18 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.

Projects

  • List projects
  • Create a project
  • Delete a project
  • Create a stats report

Project logs

  • Get project actions
  • Get project sales
  • Get project engagements

Smart Links

  • List smart links
  • Create a smart link
  • Edit a smart link
  • Delete a smart link

Rotators

  • List rotators
  • Create a rotator
  • Edit a rotator
  • Delete a rotator

Custom domains

  • List custom domains
  • Create a custom domain
  • Delete a custom domain

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

api.clickmagick.com/docs

Frequently asked questions

What can a Tray.ai workflow do in ClickMagick?

The ClickMagick API documents 18 actions across 5 resources (Projects, Project logs, Smart Links, Rotators, Custom domains). For example: List projects; Get project actions; List smart links. A workflow can make any documented call through the HTTP Connector.

How does Tray.ai authenticate with ClickMagick?

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