Skip to content
Contentful logo

Connectors / Documents and e-signature · HTTP Connector

Automate Contentful with Tray.ai

Create an entry, create an asset and create a content type in Contentful, and start a workflow when Contentful sends “Entry published”.

What can you do with Contentful on Tray.ai?

Contentful is a headless content management system where teams model structured content, store entries and media, and deliver them to websites and apps through APIs. Tray.ai connects to Contentful through the HTTP Connector, so your workflows can call the Contentful API alongside the rest of your stack.

  • When Contentful sends “Entry published”, clear the matching pages from your CDN cache so the new content shows.
  • When Contentful sends “Entry unpublished”, remove the page from your site search index.
  • Create an entry for each product added to your product information system.
  • Publish an entry once legal signs it off in your review tracker.
Connects through
HTTP Connector
Authentication
A bearer token or OAuth 2.0

Set it up

Connect Contentful to Tray.ai

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

Step 1

Save Contentful's API token

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

Step 2

Import a request from Contentful's docs

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

Step 3

Start with “Get all entries”

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

Step 4

Start workflows from Contentful events

Give Contentful the URL of a Tray.ai webhook trigger. “Entry published” can then start a workflow, and so can 5 other events.

Workflows to build with Contentful

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

Post newly published Contentful entries to Slack

When

Entry published

Then

  1. Post the entry title and link to the content channel in Slack
  2. Add a row to the publishing log in Google Sheets

With Slack and Google Sheets

Create Contentful entries from approved Airtable briefs

When

A brief is approved in Airtable

Then

  1. Create an entry with the brief's fields
  2. Post the draft link to the writer in Slack

With Airtable and Slack

Upload Box assets to Contentful

When

A file is added to a folder in Box

Then

  1. Create an asset from the file
  2. Process an asset
  3. Publish an asset

With Box

Apps you can build on Contentful data

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

Publishing review queue

Lists saved entries by content type and lets an editor publish or unpublish each one.

Asset library check

Lists assets and lets a content team process and publish new uploads.

Publish activity log

Records entries and assets as they are published or deleted so the team can see recent changes.

Give your AI agents Contentful tools

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

  • Get all entries
  • Get all assets
  • Get all content types
  • Get all environments
  • Get all locales
  • Get all webhooks
  • Create an entry
  • Patch an entry

What the Contentful 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.

Entries

  • Get all entries
  • Create an entry
  • Patch an entry
  • Delete an entry
  • Publish an entry
  • Unpublish an entry

Assets

  • Get all assets
  • Create an asset
  • Process an asset
  • Publish an asset
  • Delete an asset

Content types

  • Get all content types
  • Create a content type
  • Get a content type
  • Delete a content type

Environments

  • Get all environments
  • Create an environment
  • Delete an environment

Locales

  • Get all locales
  • Create a locale
  • Delete a locale

Webhooks

  • Get all webhooks
  • Create a webhook
  • Delete a webhook

Events Contentful can send to a Tray.ai webhook trigger

  • Entry published
  • Entry unpublished
  • Entry saved
  • Entry deleted
  • Asset published
  • Asset deleted

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

www.contentful.com/developers/docs/references/content-man…

Frequently asked questions

What can a Tray.ai workflow do in Contentful?

+

The Contentful API documents 24 actions across 6 resources (Entries, Assets, Content types, Environments, Locales, Webhooks). For example: Get all entries; Get all assets; Get all content types. A workflow can make any documented call through the HTTP Connector.

How does Tray.ai authenticate with Contentful?

+

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

Which Contentful events can start a Tray.ai workflow?

+

Contentful sends 6 events to a webhook URL, for example: Entry published; Entry unpublished; Entry saved; Entry deleted; Asset published; Asset deleted. A Tray.ai webhook trigger receives them and starts a workflow.

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