Skip to content
Oyster logo

Connectors / Human resources · HTTP Connector

Oyster integration and API

Update personal details, create an employment and create an expense in Oyster, and start a workflow when Oyster sends “Expense created”.

What can you do with Oyster on Tray.ai?

Oyster is a global employment platform that lets companies hire, pay, and manage employees and contractors in other countries through its employer of record service. Tray.ai connects to Oyster through the HTTP Connector, so your workflows can call the Oyster API alongside the rest of your stack.

  • When Oyster sends “Expense approved”, record the expense in your accounting system.
  • Create an employment in Oyster when an international candidate accepts an offer in your recruiting system.
  • Create a time off request in Oyster when leave is booked in your HR system.
  • When Oyster sends “Expense created”, notify the employee's manager in your team chat to review it.
Connects through
HTTP Connector
Authentication
OAuth 2.0
Base URL
https://api.oysterhr.com/v1

Set it up

Connect Oyster to Tray.ai

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

Sign in to Oyster with OAuth 2.0

Set up an OAuth 2.0 authentication with the client ID and secret of an OAuth app you register with Oyster. Sign in once and every step reads the token from there.

Point the HTTP Client at the API

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

Start with “List engagements”

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

Start workflows from Oyster events

Give Oyster the URL of a Tray.ai webhook trigger. “Expense created” can then start a workflow, and so can 1 other event.

Workflows to build with Oyster

Connect Oyster with NetSuite, Slack and Xero

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

Send approved Oyster expenses to NetSuite

When

Expense approved

Then

  1. Look up the employee record in NetSuite
  2. Create an expense report in NetSuite for the approved amount

With NetSuite

Notify finance in Slack about new Oyster expenses

When

Expense created

Then

  1. List expenses to get the receipt and category
  2. Post the amount and employee to the finance channel in Slack

With Slack

Record Oyster invoices in Xero

When

On a schedule

Then

  1. List invoices
  2. Get an invoice for each new invoice
  3. Create a bill in Xero

With Xero

Apps you can build on Oyster data

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

Expense approval board

Lists global team expenses and lets a manager approve or decline each one.

Time off approval queue

Lists time off requests for international staff and lets a manager approve or reject each one.

Employer invoice review

Lists employment invoices and lets finance approve or dispute each one.

Give your AI agents Oyster tools

Build an MCP server on Oyster 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 engagements
  • Create an employment
  • List expenses
  • List time off requests
  • List timesheets
  • List invoices
  • Get an engagement
  • Update personal details

What the Oyster API covers

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

Engagements

  • List engagements
  • Get an engagement
  • Update personal details
  • List engagement payslips

Employments

  • Create an employment
  • Submit an employment
  • Update an employment
  • Invite a team member

Expenses

  • List expenses
  • Create an expense
  • Approve an expense
  • Decline an expense

Time off requests

  • List time off requests
  • Create a time off request
  • Approve a request
  • Reject a request

Timesheets

  • List timesheets
  • Create a timesheet
  • Submit a timesheet
  • Delete a timesheet

Invoices

  • List invoices
  • Get an invoice
  • Approve an invoice
  • Dispute an invoice

Events Oyster can send to a Tray.ai webhook trigger

  • Expense created
  • Expense approved

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

docs.oysterhr.com/docs/welcome-to-the-oyster-api

Frequently asked questions

What can a Tray.ai workflow do in Oyster?

The Oyster API documents 24 actions across 6 resources (Engagements, Employments, Expenses, Time off requests, Timesheets, Invoices). For example: List engagements; Create an employment; List expenses. A workflow can make any documented call through the HTTP Connector.

How does Tray.ai authenticate with Oyster?

The Oyster API uses OAuth 2.0. You save it once as a Tray.ai authentication, and the HTTP Connector adds it to every request.

Which Oyster events can start a Tray.ai workflow?

Oyster sends 2 events to a webhook URL, for example: Expense created; Expense approved. A Tray.ai webhook trigger receives them and starts a workflow.

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