Skip to content
  • There are no suggestions because the search field is empty.

Using the Haystack API

See what data you can pull from Haystack with the Public API, and how teams use it for reporting, audits and custom dashboards.

📌 MCP integrations are an add-on service that are licensed separately than the core intranet platform. If you're eager to use an MCP integration, please reach out to your Customer Success Manager (CSM) or support@haystackteam.com for more details.

Overview

The Haystack Public API lets you pull your posts, pages, group audiences and view data out of Haystack and into the tools your team already uses, like a BI dashboard, a spreadsheet or a data warehouse.

The API is read-only. You can retrieve content and engagement data, but you can't create, edit or delete anything through it.

It's built for teams with experience working with APIs, so this article focuses on what's available rather than how to build against it.

Getting access

The Public API is available as an add-on to your Haystack license. Once your team adds it, we'll share the full technical documentation so your developers have everything they need to get started.

Once it's enabled, an admin can find your company's API key in the Admin Console under the Public API tab. Each request uses that key along with the Haystack User ID of the person making the request, which you can find in their profile URL.

Treat your API key like a password, and share it only with the people building or maintaining your integration.

What can you access

Posts

Every post published in a date range you choose, including the title, subtitle, full content, author, group and publish dates

Pages

The same details for knowledge pages

Group audiences

Everyone in a group, with their name, email and status (active, unclaimed or deactivated). You can filter by status.

Views

Who viewed a post or page, how many times, and when they first and most recently viewed it. You can pull views for a single post, a single page, or all posts since a date.

What you can do with it

  • Confirm important announcements landed. Compare a group's members with a post's viewers to see exactly who hasn't opened it yet. This is great for policy updates and benefits deadlines.
  • Report on engagement. See which posts and pages get the most attention, and who's coming back to them.
  • Audit or export content. Pull everything published in a given month or quarter, full content included.
  • Build custom dashboards. Bring Haystack engagement into your BI tool or data warehouse alongside data from your other systems.

What's not available

  • Creating or changing content. The API is read-only, so you can't create, edit, publish or delete posts, pages or users.
  • Comments, reactions, events and files. These aren't included in the API today.
  • A full list of groups or users. Group details come through post data and group audiences.

Looking to create content or search? Try the Haystack MCP

If you need write access or enterprise search, the Haystack MCP may be a better fit. It connects Haystack to the AI tools your team already uses, including Claude, ChatGPT, Microsoft Copilot and Slack, plus custom connectors via OAuth 2.0.

With the MCP, your team can:

  • Search across Haystack. Find people, posts, pages, events, files, links and glossary terms in one place, right from your AI tool.
  • Create content. Draft or publish posts, create pages and set up events without leaving the conversation.

The MCP is available as an add-on. To learn more, check out our MCP Overview article, or reach out to your CSM to talk through whether it's right for your team.

Need help?

If you have questions about the Public API, reach out to our Support team or your CSM. We're happy to help!