Skip to content
IBM i logo

Connectors / Developer tools · HTTP Connector

IBM i integration and API

Run a CL command and start a session in IBM i. Connect IBM i to the rest of your developer tools stack with Tray.ai.

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

IBM i, formerly OS/400, is the operating system for IBM Power servers, with a built-in Db2 database and an RSE API for remote access. Tray.ai connects to IBM i through the HTTP Connector, so your workflows can call the IBM i API alongside the rest of your stack.

  • Run an SQL statement on IBM i to pull new orders into your cloud data warehouse every hour.
  • Write a file to the IBM i server when your e-commerce platform receives a new order.
  • Run a CL command to start a nightly batch job once your finance system finishes its daily close.
  • Read a file from IBM i and load its contents into your reporting database.
Connects through
HTTP Connector
Authentication
A bearer token or basic authentication

Set it up

Connect IBM i to Tray.ai

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

Save IBM i's API token

Save the token IBM i 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.

Import a request from IBM i's docs

Add an HTTP Client step and paste a cURL example from IBM i's API docs. Tray.ai fills in the method, URL, headers, and query.

Start with “List a directory”

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

Hand it to an AI agent

Wrap “Read a file” and “Write a file” 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 IBM i

Connect IBM i with Snowflake and Salesforce

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

Copy new IBM i orders to Snowflake

When

On a schedule

Then

  1. Run an SQL statement to select new orders
  2. Load the rows into Snowflake

With Snowflake

Send closed Salesforce deals to IBM i as order files

When

A deal closes in Salesforce

Then

  1. Build an order file from the deal's products
  2. Write a file with the order to the IFS import folder

With Salesforce

Apps you can build on IBM i data

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

Order inquiry screen

Lets staff look up orders in the IBM i Db2 database by customer or order number.

IFS file browser

Lists folders in the integrated file system and lets ops staff open a file to read it.

Object finder

Lets developers search QSYS libraries for programs and files by name.

IBM i MCP server for AI agents

Build an MCP server on IBM i 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 a directory
  • Run a CL command
  • Start a session
  • Read a file
  • Write a file
  • Run an SQL statement
  • Search QSYS objects
  • Manage a session

What the IBM i API covers

3 resources and 8 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.

IFS files

  • List a directory
  • Read a file
  • Write a file

Commands and database

  • Run a CL command
  • Run an SQL statement
  • Search QSYS objects

Sessions

  • Start a session
  • Manage a session

Checked against IBM i's own documentation on 2026-11-07

www.ibm.com/support/pages/introducing-rse-api

Frequently asked questions

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

The IBM i API documents 8 actions across 3 resources (IFS files, Commands and database, Sessions). For example: List a directory; Run a CL command; Start a session. A workflow can make any documented call through the HTTP Connector.

How does Tray.ai authenticate with IBM i?

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

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