Skip to content
IBM Db2 logo

Connectors / Data and analytics · HTTP Connector

Automate IBM Db2 with Tray.ai

Create a service in IBM Db2. Connect IBM Db2 to the rest of your data and analytics stack with Tray.ai.

What can you do with IBM Db2 on Tray.ai?

IBM Db2 is a relational database from IBM whose REST server lets you publish SQL statements as REST services and call them over HTTP, returning JSON. Tray.ai connects to IBM Db2 through the HTTP Connector, so your workflows can call the IBM Db2 API alongside the rest of your stack.

  • Run a service that queries Db2 for stock levels and update product availability in your online store.
  • Run a service each night that returns new orders from Db2 and load them into your data warehouse.
Connects through
HTTP Connector
Authentication
A bearer token
Base URL
https://{rest_hostname}:50050/v1

Set it up

Connect IBM Db2 to Tray.ai

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

Step 1

Save IBM Db2's API token

Save the token IBM Db2 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://{rest_hostname}:50050/v1 as the base URL. Or paste a cURL example from IBM Db2's API docs, and Tray.ai fills in the method, URL, and headers.

Step 3

Start with “List services”

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

Give your AI agents IBM Db2 tools

Build an MCP server on IBM Db2 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 services
  • Grant service permissions
  • Create a service
  • Update a service
  • Delete a service
  • Run a service
  • Revoke service permissions

What the IBM Db2 API covers

2 resources and 7 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.

REST services

  • List services
  • Create a service
  • Update a service
  • Delete a service
  • Run a service

Service permissions

  • Grant service permissions
  • Revoke service permissions

Checked against IBM Db2's own documentation on 2026-10-22

www.ibm.com/docs/en/SSEPGG_11.5.0/com.ibm.db2.luw.admin.r…

Frequently asked questions

What can a Tray.ai workflow do in IBM Db2?

+

The IBM Db2 API documents 7 actions across 2 resources (REST services, Service permissions). For example: List services; Grant service permissions. A workflow can make any documented call through the HTTP Connector.

How does Tray.ai authenticate with IBM Db2?

+

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

See IBM Db2 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.