Skip to content

Connectors / Security and compliance · HTTP Connector

OneTrust integration and API

Create consent receipts, create a purpose and create a task in OneTrust. Connect OneTrust to the rest of your security and compliance stack with Tray.ai.

What can you do with OneTrust on Tray.ai?

OneTrust is a privacy and data governance platform for managing cookie consent, data subject records, consent purposes, data inventories and AI governance. Tray.ai connects to OneTrust through the HTTP Connector, so your workflows can call the OneTrust API alongside the rest of your stack.

  • Create consent receipts when a visitor signs up through a form on your website.
  • Create a task for the privacy team when a data request arrives in your help desk.
  • Search data subjects and update consent preferences in your email marketing tool.
  • Delete a data subject once their deletion request is closed in your privacy process.
Connects through
HTTP Connector
Authentication
OAuth 2.0

Set it up

Connect OneTrust to Tray.ai

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

Sign in to OneTrust with OAuth 2.0

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

Import a request from OneTrust's docs

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

Start with “List data subjects”

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

Hand it to an AI agent

Wrap “Create consent receipts” and “Create consent receipts in bulk” 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 OneTrust

Connect OneTrust with HubSpot, Zendesk, Okta and Slack

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

Record marketing consent from HubSpot forms in OneTrust

When

A form is submitted in HubSpot

Then

  1. Search data subjects by the contact's email
  2. Create consent receipts for the purposes the contact agreed to

With HubSpot

Track privacy requests from Zendesk as OneTrust tasks

When

A ticket is tagged as a privacy request in Zendesk

Then

  1. Search data subjects by the requester's email
  2. Create a task for the privacy team with the ticket details

With Zendesk

Create OneTrust users for new Okta privacy team members

When

A user is added to the privacy group in Okta

Then

  1. Create a user with the person's name and email
  2. Post the new account to the privacy channel in Slack

With Okta and Slack

Apps you can build on OneTrust data

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

Data subject request lookup

Searches data subjects, shows their record and lets the privacy team delete it on request.

Consent purpose register

Lists consent purposes and lets the privacy team update or retire each one.

Privacy task tracker

Creates privacy tasks and lets owners look up and update each one.

Give your AI agents OneTrust tools

Build an MCP server on OneTrust 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

  • Create consent receipts
  • List data subjects
  • List purposes
  • List users
  • Create a task
  • Create consent receipts in bulk
  • Get a data subject
  • Search data subjects

What the OneTrust API covers

5 resources and 18 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.

Consent receipts

  • Create consent receipts
  • Create consent receipts in bulk

Data subjects

  • List data subjects
  • Get a data subject
  • Search data subjects
  • Delete a data subject

Purposes

  • List purposes
  • Create a purpose
  • Update a purpose
  • Publish a purpose
  • Retire a purpose

Users

  • List users
  • Create a user
  • Get a user
  • Update a user

Tasks

  • Create a task
  • Get a task
  • Update a task

Checked against OneTrust's own documentation on 2026-11-07

developer.onetrust.com/onetrust/reference

Frequently asked questions

What can a Tray.ai workflow do in OneTrust?

The OneTrust API documents 18 actions across 5 resources (Consent receipts, Data subjects, Purposes, Users, Tasks). For example: Create consent receipts; List data subjects; List purposes. A workflow can make any documented call through the HTTP Connector.

How does Tray.ai authenticate with OneTrust?

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

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