Skip to content
M-Files logo

Connectors / Documents and e-signature · HTTP Connector

M-Files integration and API

Create an object, upload a file and update object properties in M-Files. Connect M-Files to the rest of your documents and e-signature stack with Tray.ai.

What can you do with M-Files on Tray.ai?

M-Files is a document management system that organizes files and records in vaults by metadata, with versioning, workflows and search. Tray.ai connects to M-Files through the HTTP Connector, so your workflows can call the M-Files API alongside the rest of your stack.

  • Upload a file for each signed contract from your e-signature tool.
  • Update object properties when the deal stage changes in your CRM.
  • Create an object for each new supplier added in your ERP.
Connects through
HTTP Connector
Authentication
An API key in a request header or a bearer token

Set it up

Connect M-Files to Tray.ai

Each step uses M-Files's own API details, from its documentation.

Save M-Files's API key

Save the key as a Tray.ai authentication. The HTTP Client puts it in the request header, read from $.auth. The key stays out of the workflow and out of the logs.

Import a request from M-Files's docs

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

Start with “List objects of a type”

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

Hand it to an AI agent

Wrap “Create an object” and “Get an object version” 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 M-Files

Connect M-Files with DocuSign, Salesforce and NetSuite

Each one uses actions and events from M-Files's own API documentation.

File signed DocuSign agreements in M-Files

When

An envelope is completed in DocuSign

Then

  1. Create an object for the agreement with its metadata
  2. Upload a file with the signed agreement

With DocuSign

Store Salesforce contracts in M-Files

When

A contract is activated in Salesforce

Then

  1. Create an object with the customer and contract dates
  2. Update object properties with the contract status

With Salesforce

Copy NetSuite vendor bills into M-Files

When

A vendor bill is created in NetSuite

Then

  1. Create an object for the invoice with vendor and amount
  2. Upload a file with the bill attachment

With NetSuite

Apps you can build on M-Files data

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

Document lookup tool

Searches vault views by keyword and shows each document's properties with a download link.

Metadata cleanup queue

Lists documents of a type and lets records staff correct their properties.

Document intake form

Lets staff upload a file and file it in the vault as a new document with its metadata.

M-Files MCP server for AI agents

Build an MCP server on M-Files 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 objects of a type
  • Upload a file
  • List view contents
  • Read object properties
  • Create an object
  • Get an object version
  • Download file content
  • Search view contents

What the M-Files API covers

4 resources and 9 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. New to APIs? Read what an API integration is.

Objects

  • List objects of a type
  • Create an object
  • Get an object version

Files

  • Upload a file
  • Download file content

Views

  • List view contents
  • Search view contents

Properties

  • Read object properties
  • Update object properties

Checked against M-Files's own documentation on 2026-11-07

developer.m-files.com/APIs/REST-API/Reference

Frequently asked questions

What can a Tray.ai workflow do in M-Files?

The M-Files API documents 9 actions across 4 resources (Objects, Files, Views, Properties). For example: List objects of a type; Upload a file; List view contents. A workflow can make any documented call through the HTTP Connector.

How does Tray.ai authenticate with M-Files?

The M-Files API uses an API key in a request header and a bearer token. You save it once as a Tray.ai authentication, and the HTTP Connector adds it to every request.

See M-Files 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.