Skip to content
Pantheon logo

Connectors / Developer tools · HTTP Connector

Automate Pantheon with Tray.ai

Create a site, create a multidev environment and create a backup in Pantheon. Connect Pantheon to the rest of your developer tools stack with Tray.ai.

What can you do with Pantheon on Tray.ai?

Pantheon is a hosting platform for Drupal and WordPress sites, with dev, test and live environments, deployments, backups and domain management. Tray.ai connects to Pantheon through the HTTP Connector, so your workflows can call the Pantheon API alongside the rest of your stack.

  • Create a backup in Pantheon before each scheduled release in your deployment calendar.
  • Deploy code to an environment in Pantheon after the change request is approved in your ticketing system.
  • Remove a user from a site in Pantheon when they leave the company in your HR system.
  • Clear an environment's cache in Pantheon after your content team publishes a major update.
Connects through
HTTP Connector
Authentication
A bearer token
Base URL
https://api.pantheon.io/v1

Set it up

Connect Pantheon to Tray.ai

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

Step 1

Save Pantheon's API token

Save the token Pantheon issues as a Tray.ai authentication. The HTTP Client sends it as a bearer token on every call. The token 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://api.pantheon.io/v1 as the base URL. Or paste a cURL example from Pantheon's API docs, and Tray.ai fills in the method, URL, and headers.

Step 3

Start with “Get a site”

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

Step 4

Hand it to an AI agent

Wrap “Create a site” and “Look up a site by name” 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 Pantheon

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

Deploy to Pantheon when a GitHub pull request merges

When

A pull request is merged in GitHub

Then

  1. Deploy code to an environment in Pantheon
  2. Clear an environment's cache
  3. Post the deploy result to the web team channel in Slack

With GitHub and Slack

Create a Pantheon multidev environment for each Jira ticket

When

An issue moves to In progress in Jira

Then

  1. Create a multidev environment named for the issue
  2. Add the environment link to the issue in Jira

With Jira

Back up Pantheon live sites nightly and log them in Google Sheets

When

On a schedule

Then

  1. Create a backup of the live environment
  2. Get a backup download URL
  3. Add the site, date and backup link to the log in Google Sheets

With Google Sheets

Apps you can build on Pantheon data

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

Release request board

Lists a Pantheon site's environments and lets a lead deploy code and clear cache after approval.

Site access review

Lists each Pantheon site's team members and lets an admin change a role or remove a user.

Backup check dashboard

Lists Pantheon backups per environment and lets an admin take a new backup or get a download link.

Give your AI agents Pantheon tools

Build an MCP server on Pantheon 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 site
  • List a site's environments
  • Create a backup
  • Add a domain
  • List a site's team members
  • List a site's workflows
  • Get a site
  • Look up a site by name

What the Pantheon API covers

6 resources and 20 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.

Sites

  • Create a site
  • Get a site
  • Look up a site by name

Environments

  • List a site's environments
  • Create a multidev environment
  • Deploy code to an environment
  • Clear an environment's cache
  • Lock an environment

Backups

  • Create a backup
  • List backups for an environment
  • Get a backup download URL

Domains

  • Add a domain
  • Update a domain
  • Remove a domain

Site team members

  • List a site's team members
  • Add a user to a site
  • Change a user's role
  • Remove a user from a site

Workflows

  • List a site's workflows
  • Get a workflow

Checked against Pantheon's own documentation on 2026-11-07

docs.pantheon.io/guides/public-api

Frequently asked questions

What can a Tray.ai workflow do in Pantheon?

+

The Pantheon API documents 20 actions across 6 resources (Sites, Environments, Backups, Domains, Site team members, Workflows). For example: Create a site; List a site's environments; Create a backup. A workflow can make any documented call through the HTTP Connector.

How does Tray.ai authenticate with Pantheon?

+

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

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