Skip to content
Xata logo

Connectors / Data and analytics · HTTP Connector

Automate Xata with Tray.ai

Create a project and create a branch in Xata. Connect Xata to the rest of your data and analytics stack with Tray.ai.

What can you do with Xata on Tray.ai?

Xata is a managed Postgres platform built around fast database branching, letting teams copy production data safely into isolated branches for testing. Tray.ai connects to Xata through the HTTP Connector, so your workflows can call the Xata API alongside the rest of your stack.

  • Create a branch for each pull request opened in your code repository.
  • Delete a branch when its pull request is merged or closed.
  • Get branch metrics and post daily database usage to the engineering team chat.
  • Send an invitation when a new engineer is added in your HR system.
Connects through
HTTP Connector
Authentication
A bearer token
Base URL
https://api.xata.tech

Set it up

Connect Xata to Tray.ai

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

Step 1

Save Xata's API token

Save the token Xata 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.xata.tech as the base URL. Or paste a cURL example from Xata's API docs, and Tray.ai fills in the method, URL, and headers.

Step 3

Start with “List projects”

It's one of 15 documented actions, under Projects. 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 project” and “Get project details” in workflows, and Tray.ai's Agent Gateway for MCP publishes them as governed tools Claude and other AI agents can call.

Apps you can build on Xata data

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

Branch dashboard

Lists Xata projects and branches with branch metrics, and lets a developer create or delete a test branch.

Team access board

Shows Xata organization members and API keys and lets an admin send an invitation.

Give your AI agents Xata tools

Build an MCP server on Xata 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
  • List branches
  • List organizations
  • List API keys
  • Create a project
  • Get project details
  • Update a project
  • Delete a project

What the Xata API covers

4 resources and 15 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
  • Get project details
  • Update a project
  • Delete a project

Branches

  • List branches
  • Create a branch
  • Delete a branch
  • Get branch credentials
  • Get branch metrics

Organizations

  • List organizations
  • List organization members
  • Send an invitation

API keys

  • List API keys
  • Create an API key

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

xata.io/docs/api-reference

Frequently asked questions

What can a Tray.ai workflow do in Xata?

+

The Xata API documents 15 actions across 4 resources (Projects, Branches, Organizations, API keys). For example: List projects; List branches; List organizations. A workflow can make any documented call through the HTTP Connector.

How does Tray.ai authenticate with Xata?

+

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

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