Everything an AI agent can do with the Fullstory API.

A reference guide for building AI agents: every method, how to authenticate, and the permissions each one needs.

Endpoints33
API versionv2
Last updated23 June 2026
Orientation

How the Fullstory API works.

The Fullstory API is how an app or AI agent works with a Fullstory account: listing a user's sessions, reading the events captured in a session, sending users and custom events back in, and generating AI summaries of what a person did. Access is granted through a server API key, and the key's permission level, Standard, Architect, or Admin, decides which methods it can call and how far it can read or export. Fullstory can also push account activity, like a segment alert or a note added to a session, to a registered webhook endpoint.

33Endpoints
9Capability groups
20Read
13Write
3Permissions
Authentication
Every call carries a server API key in an Authorization header using Basic auth, not a Bearer token. The key format is ., where the prefix (na1 for the US, eu1 for the EU) routes the request to the right data center, so a single domain, api.fullstory.com, serves every account. The key is server-side only and must never be exposed in client code.
Permissions
Access is governed by a key's permission level, not a list of scopes. The three levels are a hierarchy: Standard can send users and events and list sessions, Architect adds reading and exporting user data, segments, and raw exports on Enterprise plans, and Admin adds privacy-critical configuration. A higher level can call everything the lower levels can, and a key without the needed level gets a 403.
Versioning
Fullstory introduced version 2 of its Server API in August 2023, its first major version bump, and serves it alongside version 1. The modern session, user, and event methods live on v2, while the segment, export, and webhook methods are still on v1. The two run together, so a single integration can call both.
Data model
The API works with sessions, users, and events. A session is identified by the canonical user_id:session_id form, and its captured events can be read or turned into AI context and summaries. A user is upserted by create, can hold up to 500 custom properties, and can be imported in bulk (up to 50,000 per request) or as a stream. Custom server events are stitched into a user's or session's timeline, and outbound webhooks push account activity such as segment alerts.
Connect & authenticate

Connection & authentication methods.

How an app or AI agent connects to Fullstory determines what it can reach. There is the Server API for sending and reading data, a set of outbound webhooks for receiving events, and a hosted server that exposes Fullstory tools to agents, and each is governed by the key behind it and the permission level that key carries.

Ways to connect

Server API

The Server API answers at https://api.fullstory.com, where the modern methods sit under v2 and the segment, export, and webhook methods remain on v1. A request authenticates with an API key sent in an Authorization header using Basic auth, and the key is automatically routed to the account's data center.

Best forConnecting an app or AI agent to Fullstory.
Governed byThe API key and the permission level it carries.
Docs ↗

Webhooks

Fullstory POSTs an event to an HTTPS endpoint registered through the Webhooks API when something happens in the account, such as a saved segment crossing an active-user threshold or a teammate adding a note. Each delivery carries a Fullstory-Signature header with the organization id, a Unix timestamp, and a base64 HMAC-SHA256 signature, which the receiver recomputes with the shared secret to confirm the request came from Fullstory and is recent.

Best forReceiving Fullstory events at an app or AI agent.
Governed byThe shared secret on the webhook endpoint.
Docs ↗

MCP server

A hosted Model Context Protocol server at https://api.fullstory.com/mcp/fullstory connects AI clients like Claude, Cursor, and ChatGPT to Fullstory behavioral data, so they can ask natural-language questions without leaving the workflow. It authenticates through an OAuth flow, exposes analytics tools such as compute_metric, and depends on StoryAI being enabled. As of June 2026 it is in private beta and must be enabled per account.

Best forConnecting an AI agent to Fullstory through MCP.
Governed byThe OAuth grant and the account's enabled features.
Docs ↗
Authentication

API key (Basic auth)

A server API key authenticates every call, sent in an Authorization header using Basic auth. The key format is ., where the prefix (such as na1 for the US or eu1 for the EU) routes the request to the account's data center; a key created before August 2022 may lack a prefix and defaults to the US. The key is server-side and must never be exposed in client code.

TokenAPI key (.)
Best forServer-side calls to the Server API.
Docs ↗

Key permission level (Standard / Architect / Admin)

Every API key carries one of three permission levels that form a hierarchy: Standard can send data and list sessions, Architect adds reading and exporting user data, segments, and raw exports (Enterprise plans), and Admin adds privacy-critical configuration. A higher level can call every endpoint available to the levels below it, so the level is what bounds an agent.

TokenPermission level on the API key
Best forScoping a key to the access an integration needs.
Docs ↗

MCP OAuth

The hosted MCP server authenticates a connecting AI client through an OAuth authorization flow rather than an API key, and the tools an agent sees depend on StoryAI being enabled for the organization.

TokenOAuth access token
Best forAI clients connecting through the MCP server.
Docs ↗
Capability map

What an AI agent can do in Fullstory.

The Fullstory API is split into areas an agent can act on, like sessions, users, events, segments, and exports. Each area has its own methods, and reading session replay or exporting segment data returns the behavior of real, identifiable people.

Sessions

5 endpoints

List a user's recent sessions, read the full set of captured events for a session, and generate AI context and summaries from a session.

Reads here return real session replay and the behavior of identifiable people.
View endpoints

Summary profiles

5 endpoints

Create, read, list, update, and delete the prompt-and-context profiles that drive AI session summaries.

A write here changes how sessions are summarized for every caller using the profile.
View endpoints

Users

8 endpoints

Create or update a user, read and list users, delete a user, and import users in bulk or as a stream.

A write here changes real user records, and a delete removes a person's data.
View endpoints

Events

3 endpoints

Create a single custom event tied to a user or session, and import events in bulk through a batch job.

A write here adds real event data into a user's or session's timeline.
View endpoints

Segments (v1)

3 endpoints

List and read saved segments, and schedule an export of the individuals or events in a segment.

An export here pulls the behavior of every person matching the segment.
View endpoints

Exports (v1)

3 endpoints

Schedule and retrieve raw data exports of user events and pages, and fetch the results of a search export.

An export here returns raw captured behavior for real people.
View endpoints

Webhooks (v1)

4 endpoints

List, read, create, update, and delete the webhook endpoints that receive Fullstory's outbound events.

A write here changes where Fullstory sends event data.
View endpoints

Organization

1 endpoint

Read the account's quota usage for captured sessions and server events.

A read here returns account-level usage figures.
View endpoints

Annotations

1 endpoint

Create an annotation to mark a moment of note on the account timeline.

A write here adds a real annotation visible across the account.
View endpoints
Endpoint reference

Every Fullstory API method.

Filter by method, access, or permission, or search any path. Select a row for version detail, rate limits, the related webhook event, and the source.

MethodEndpointWhat it doesAccessPermissionVersion

Sessions

List a user's recent sessions, read the full set of captured events for a session, and generate AI context and summaries from a session.5

Needs a Standard key or higher. If both uid and email are given, it queries each separately and returns the union.

Acts onsession
Permission (capability)Standard
VersionAvailable since the API’s base version
Webhook eventNone
Rate limitStandard limits apply

Needs a Standard key or higher. The session id is the canonical user_id:session_id form.

Acts onsession
Permission (capability)Standard
VersionAvailable since the API’s base version
Webhook eventNone
Rate limitStandard limits apply

Needs a Standard key or higher. A POST that reads a session and returns a model-ready context, it does not change the session.

Acts onsession
Permission (capability)Standard
VersionAvailable since the API’s base version
Webhook eventNone
Rate limitStandard limits apply

Needs a Standard key or higher, and requires StoryAI to be enabled on the account.

Acts onsession
Permission (capability)Standard
VersionAvailable since the API’s base version
Webhook eventNone
Rate limitStandard limits apply

Needs a Standard key or higher. A POST that returns generated text, it does not change the session.

Acts onsession
Permission (capability)Standard
VersionAvailable since the API’s base version
Webhook eventNone
Rate limitStandard limits apply

Summary profiles

Create, read, list, update, and delete the prompt-and-context profiles that drive AI session summaries.5

Needs a Standard key or higher. The endpoint path uses Fullstory's internal visit_profile name for a summary profile.

Acts onsummary profile
Permission (capability)Standard
VersionAvailable since the API’s base version
Webhook eventNone
Rate limitStandard limits apply

Needs a Standard key or higher.

Acts onsummary profile
Permission (capability)Standard
VersionAvailable since the API’s base version
Webhook eventNone
Rate limitStandard limits apply

Needs a Standard key or higher.

Acts onsummary profile
Permission (capability)Standard
VersionAvailable since the API’s base version
Webhook eventNone
Rate limitStandard limits apply

Needs a Standard key or higher.

Acts onsummary profile
Permission (capability)Standard
VersionAvailable since the API’s base version
Webhook eventNone
Rate limitStandard limits apply

Needs a Standard key or higher.

Acts onsummary profile
Permission (capability)Standard
VersionAvailable since the API’s base version
Webhook eventNone
Rate limitStandard limits apply

Users

Create or update a user, read and list users, delete a user, and import users in bulk or as a stream.8

Needs a Standard key or higher. Up to 500 unique properties are allowed per user.

Acts onuser
Permission (capability)Standard
VersionAvailable since the API’s base version
Webhook eventNone
Rate limitStandard limits apply

Reading user data needs an Architect key or higher, available on Enterprise plans.

Acts onuser
Permission (capability)Architect
VersionAvailable since the API’s base version
Webhook eventNone
Rate limitStandard limits apply

Reading user data needs an Architect key or higher.

Acts onuser
Permission (capability)Architect
VersionAvailable since the API’s base version
Webhook eventNone
Rate limitStandard limits apply

Needs a Standard key or higher.

Acts onuser
Permission (capability)Standard
VersionAvailable since the API’s base version
Webhook eventNone
Rate limitStandard limits apply

Deleting a user needs an Architect key or higher, and removes that person's captured data.

Acts onuser
Permission (capability)Architect
VersionAvailable since the API’s base version
Webhook eventNone
Rate limitStandard limits apply

Needs a Standard key or higher. A batch import accepts up to 50,000 records per request.

Acts onuser import job
Permission (capability)Standard
VersionAvailable since the API’s base version
Webhook eventNone
Rate limitStandard limits apply

Needs a Standard key or higher.

Acts onuser import job
Permission (capability)Standard
VersionAvailable since the API’s base version
Webhook eventNone
Rate limitStandard limits apply

Needs a Standard key or higher.

Acts onuser
Permission (capability)Standard
VersionAvailable since the API’s base version
Webhook eventNone
Rate limitStandard limits apply

Events

Create a single custom event tied to a user or session, and import events in bulk through a batch job.3

Needs a Standard key or higher. A server event counts against the account's server event quota.

Acts onevent
Permission (capability)Standard
VersionAvailable since the API’s base version
Webhook eventNone
Rate limitStandard limits apply

Needs a Standard key or higher. A batch import accepts up to 50,000 records per request.

Acts onevent import job
Permission (capability)Standard
VersionAvailable since the API’s base version
Webhook eventNone
Rate limitStandard limits apply

Needs a Standard key or higher.

Acts onevent import job
Permission (capability)Standard
VersionAvailable since the API’s base version
Webhook eventNone
Rate limitStandard limits apply

Segments (v1)

List and read saved segments, and schedule an export of the individuals or events in a segment.3

A v1 method. Listing and exporting segments needs an Architect key, available on Enterprise plans.

Acts onsegment
Permission (capability)Architect
VersionAvailable since the API’s base version
Webhook eventNone
Rate limitStandard limits apply

A v1 method needing an Architect key.

Acts onsegment
Permission (capability)Architect
VersionAvailable since the API’s base version
Webhook eventNone
Rate limitStandard limits apply

A v1 method needing an Architect key. Segment Export is an Enterprise or Advanced add-on, and the export pulls the behavior of every matching person.

Acts onsegment export
Permission (capability)Architect
VersionAvailable since the API’s base version
Webhook eventNone
Rate limitStandard limits apply

Exports (v1)

Schedule and retrieve raw data exports of user events and pages, and fetch the results of a search export.3

A v1 method needing an Architect key. Returns the rows of a prepared export.

Acts onexport
Permission (capability)Architect
VersionAvailable since the API’s base version
Webhook eventNone
Rate limitStandard limits apply

A legacy v1 Data Export method needing an Architect key. Fullstory recommends the Segment Export API for new work.

Acts onexport
Permission (capability)Architect
VersionAvailable since the API’s base version
Webhook eventNone
Rate limitStandard limits apply

A legacy v1 Data Export method needing an Architect key.

Acts onexport
Permission (capability)Architect
VersionAvailable since the API’s base version
Webhook eventNone
Rate limitStandard limits apply

Webhooks (v1)

List, read, create, update, and delete the webhook endpoints that receive Fullstory's outbound events.4

A v1 Webhooks method. Managing webhook endpoints is an account-configuration action handled with an Admin key.

Acts onwebhook endpoint
Permission (capability)Admin
VersionAvailable since the API’s base version
Webhook eventNone
Rate limitStandard limits apply

A v1 Webhooks method handled with an Admin key. It sets where Fullstory delivers event data.

Acts onwebhook endpoint
Permission (capability)Admin
VersionAvailable since the API’s base version
Webhook eventNone
Rate limitStandard limits apply

A v1 Webhooks method handled with an Admin key.

Acts onwebhook endpoint
Permission (capability)Admin
VersionAvailable since the API’s base version
Webhook eventNone
Rate limitStandard limits apply

A v1 Webhooks method handled with an Admin key.

Acts onwebhook event type
Permission (capability)Admin
VersionAvailable since the API’s base version
Webhook eventNone
Rate limitStandard limits apply

Organization

Read the account's quota usage for captured sessions and server events.1

Needs a Standard key or higher.

Acts onquota
Permission (capability)Standard
VersionAvailable since the API’s base version
Webhook eventNone
Rate limitStandard limits apply

Annotations

Create an annotation to mark a moment of note on the account timeline.1

Needs a Standard key or higher.

Acts onannotation
Permission (capability)Standard
VersionAvailable since the API’s base version
Webhook eventNone
Rate limitStandard limits apply
No endpoints match those filters.
Webhooks

Webhook events.

Fullstory can notify an app when something happens in an account, like a saved segment crossing an active-user threshold or a teammate adding a note to a session. It posts the event to a webhook endpoint registered through the Webhooks API, so an integration learns about activity without polling.

EventWhat it signalsTriggered by
segment.createdFires when a user of Fullstory creates a new segment.In-app only
segment.trend.alertFires when a segment-based alert triggers, such as the active users in a saved segment crossing a configured threshold.In-app only
metric.alertFires when a metric alert triggers.In-app only
note.createdFires when a user of Fullstory makes a note on a recorded session.In-app only
nativemobile.event.crashFires when a native mobile app has crashed.In-app only
No events match that search.
Rate limits & pagination

Rate limits, pagination & request size.

Fullstory limits how fast an app can call, with one limit on requests per second and another that smooths short bursts, plus account quotas on captured sessions and on server events.

Request rate

Fullstory guards the API against bursts of traffic with two limiters: one caps the number of requests received in any given second, set high enough that it should not be hit under realistic load, and another smooths short bursts that exceed the standard rate and then recharges over time. Sending many requests in quick succession returns an HTTP 429, and the response includes a Retry-After header giving the number of seconds to wait before retrying. Separately, the account has quotas on captured sessions and on server events, and a request that exceeds the server event quota also returns 429.

Pagination

List endpoints return a page of results with a token to fetch the next page, and an endpoint that supports it accepts a limit parameter to set the page size. List Sessions returns up to limit of a user's most recent sessions, queried by uid and/or email.

Request size

A batch import job, for users or for events, accepts up to 50,000 records per request. A user may carry up to 500 unique custom properties. Per-endpoint payload limits, where they apply, are stated on each endpoint's reference page.

Errors

Status codes & error handling.

The status codes an agent should handle, and what to do about each.

StatusCodeMeaningWhat to do
400bad_requestInvalid input has been provided in the request.Read the code and message in the response body, fix the input, and retry.
401unauthorizedAccess to the resource is unauthorized, usually a missing or invalid API key.Send a valid API key in the Authorization header using Basic auth.
403forbiddenAccess is not allowed due to insufficient permissions on the key.Use a key with a higher permission level, such as Architect for reading or exporting user data.
404not_foundThe requested resource does not exist.Verify the id in the path and that the resource belongs to this account.
429too_many_requestsA rate limit or the server event quota was exceeded. The response carries a Retry-After header with the seconds to wait.Wait the number of seconds given in the Retry-After header, then retry with backoff.
500internal_errorA server error was encountered on Fullstory's side.Retry with backoff, and contact Fullstory support if it persists.
Versioning & freshness

Version history.

Fullstory introduced version 2 of its Server API in August 2023, its first major version bump, served alongside the earlier version 1 that still carries the segment, export, and webhook methods.

Version history

What changed, and when

Latest versionv2
v2Current version
Server API v2 (current)

Fullstory released version 2 of the Server API in August 2023, the first major version bump in its history. It is initially focused on enhanced data capture and processing, drops the type suffixes v1 required on custom properties, and lets a user be created without a prior session. Sessions, users, and events live on v2, served alongside the v1 segment, export, and webhook methods.

What changed
  • Introduced the v2 Users API: create or update, get, list, delete, plus batch and stream imports.
  • Introduced the v2 Events API: create one event and batch-import events.
  • Added session methods: list sessions, get session events, and AI context and summaries.
  • Removed the type suffixes that v1 required on custom property names.
2026-05
Customer Agents MCP server

In May 2026 Fullstory added a Customer Agents MCP server, giving AI-powered tools real-time behavioral context from user sessions.

2026-04
Fullstory MCP server (private beta)

In April 2026 Fullstory launched its MCP server, connecting AI clients like Claude Code and Cursor directly to Fullstory product data through an OAuth flow. It is in private beta and must be enabled per account.

2023-08
Server API v2 announced

August 2023: Fullstory announced version 2 of the API, its first major version bump, covering the new users and events endpoints.

Build new integrations on v2, and use v1 for the export, segment, and webhook methods v2 does not yet cover.

Fullstory release notes ↗
Questions

Fullstory API, answered.

How do I authenticate with the Fullstory API?+
Send the server API key in an Authorization header using Basic auth, written as 'Authorization: Basic {YOUR_API_KEY}'. The key format is ., where the prefix routes the request to the account's data center: na1 for the US (the default) and eu1 for the EU. A key created before August 2022 may have no prefix and defaults to the US. The key is server-side and must never appear in client code.
What do the Standard, Architect, and Admin key levels mean?+
They are the three permission levels a key can have, and they nest. Standard can send data, such as users and events, and list sessions. Architect adds viewing and exporting user data, privacy settings, segments, and raw and search exports, and is available on Enterprise plans. Admin adds privacy-critical configuration, like element block rules. A higher level can call every endpoint the lower levels can, so the level is what bounds an agent's reach.
What is the difference between the v1 and v2 APIs?+
Version 2, released in August 2023, is the modern Server API and holds the session, user, and event methods, including user creation without a prior session and cleaner custom-property handling. Version 1 remains for the methods v2 does not yet cover, mainly segments, data and segment exports, and webhook endpoint management. Both are served from api.fullstory.com, so an integration can mix v2 and v1 calls.
How does Fullstory rate limit, and what happens at the limit?+
Fullstory runs one limiter on requests per second, set high enough that normal load should not hit it, and another that absorbs short bursts and recharges over time. Going over returns an HTTP 429 with a Retry-After header giving the seconds to wait before retrying. The account also has quotas on captured sessions and on server events, and exceeding the server event quota returns 429 as well.
How do I receive events instead of polling?+
Register a webhook endpoint through the v1 Webhooks API and choose the events it should receive, such as segment.created, segment.trend.alert, metric.alert, or note.created. Fullstory POSTs each event to the endpoint with a Fullstory-Signature header carrying the organization id, a Unix timestamp, and a base64 HMAC-SHA256 signature. The receiver recomputes the signature with the shared secret and checks the timestamp is recent to confirm the request came from Fullstory.
Does Fullstory have an official MCP server for AI agents?+
Yes. The hosted Fullstory MCP server at api.fullstory.com/mcp/fullstory connects AI clients like Claude, Cursor, and ChatGPT to behavioral data so they can answer natural-language questions about the product experience. It authenticates through an OAuth flow and exposes analytics tools such as compute_metric, and the tools available depend on StoryAI being enabled. As of June 2026 it is in private beta and must be enabled per account.
How do I export segment or raw event data?+
Use the v1 methods with an Architect key. Schedule a segment export with POST /segments/v1/exports to pull the individuals or events matching a saved segment, then fetch the rows with GET /search/v1/exports/{id}/results. Segment Export is an Enterprise or Advanced add-on. The older raw Data Export endpoints under /api/v1/export still exist, but Fullstory recommends the Segment Export API for new work.
Related

More analytics API guides for agents

What is Bollard AI?

Control what every AI agent can do in Fullstory.

Bollard AI sits between a team's AI agents and Fullstory. Grant each agent exactly the access it needs, read or write, resource by resource, and every call is checked and logged.

  • Set read, write, or full access per agent, never a shared Fullstory key.
  • Denied by default, so an agent reaches only what has been explicitly allowed.
  • Every call recorded in plain English: who, what, where, and the decision.
Fullstory
Insights Agent
Read session events ResourceOffReadFull use
Send users and events ActionOffReadFull use
Export segment data ResourceOffReadFull use
Delete a user ActionOffReadFull use
Per-agent access, set in Bollard AI, not in Fullstory