Skip to content
FreeAgent logo

Connectors / Finance · HTTP Connector

FreeAgent integration and API

Create an invoice, create a contact and create a bill in FreeAgent. Connect FreeAgent to the rest of your finance stack with Tray.ai.

What can you do with FreeAgent on Tray.ai?

FreeAgent is online accounting software for small businesses, freelancers, and their accountants, covering invoicing, bills, expenses, banking, time tracking, and tax returns. Tray.ai connects to FreeAgent through the HTTP Connector, so your workflows can call the FreeAgent API alongside the rest of your stack.

  • When a project is marked complete in your project tool, create an invoice for the client.
  • Create a contact for each new customer won in your CRM.
  • When an expense is approved in your spend tool, create an expense with the receipt amount.
  • Each week, create a timeslip from hours logged in your time tracking tool.
Connects through
HTTP Connector
Authentication
OAuth 2.0
Base URL
https://api.freeagent.com/v2

Set it up

Connect FreeAgent to Tray.ai

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

Sign in to FreeAgent with OAuth 2.0

Set up an OAuth 2.0 authentication with the client ID and secret of an OAuth app you register with FreeAgent. 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.freeagent.com/v2 as the base URL. Or paste a cURL example from FreeAgent's API docs, and Tray.ai fills in the method, URL, and headers.

Start with “List invoices”

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

Hand it to an AI agent

Wrap “Create an invoice” and “Update an invoice” 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 FreeAgent

Connect FreeAgent with HubSpot, Slack and Gmail

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

Create FreeAgent invoices when a HubSpot deal closes

When

A deal closes in HubSpot

Then

  1. Create a contact for the client if one does not exist
  2. Create an invoice with the deal's line items
  3. Email an invoice to the client

With HubSpot

Post overdue FreeAgent invoices to Slack each week

When

On a schedule

Then

  1. List invoices that are overdue
  2. Post the overdue list to the finance channel in Slack

With Slack

Turn emailed receipts into FreeAgent expenses

When

A receipt arrives in the expenses inbox in Gmail

Then

  1. Create an expense with the amount, date and receipt
  2. Reply in Gmail to confirm the expense was logged

With Gmail

Apps you can build on FreeAgent data

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

Unpaid invoice chaser

Lists unpaid invoices by contact and lets finance email the invoice again to the customer.

Bills due board

Lists bills by due date next to recent bank transactions so finance can see what is due and what has cleared.

Team timesheet tracker

Shows timeslips by person and project and lets staff log new time.

Give your AI agents FreeAgent tools

Build an MCP server on FreeAgent 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 invoices
  • List contacts
  • List bills
  • List expenses
  • List bank transactions
  • List timeslips
  • Create an invoice
  • Update an invoice

What the FreeAgent API covers

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

Invoices

  • List invoices
  • Create an invoice
  • Update an invoice
  • Email an invoice
  • Mark an invoice as sent
  • Delete an invoice

Contacts

  • List contacts
  • Create a contact
  • Update a contact
  • Delete a contact

Bills

  • List bills
  • Create a bill
  • Update a bill
  • Delete a bill

Expenses

  • List expenses
  • Create an expense
  • Update an expense
  • Delete an expense

Bank transactions

  • List bank transactions
  • Get a bank transaction
  • Upload a bank statement

Timeslips

  • List timeslips
  • Create a timeslip
  • Update a timeslip
  • Delete a timeslip

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

dev.freeagent.com/docs

Frequently asked questions

What can a Tray.ai workflow do in FreeAgent?

The FreeAgent API documents 25 actions across 6 resources (Invoices, Contacts, Bills, Expenses, Bank transactions, Timeslips). For example: List invoices; List contacts; List bills. A workflow can make any documented call through the HTTP Connector.

How does Tray.ai authenticate with FreeAgent?

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

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