Learning resourcesReviewed · OpenAI

ChatGPT Sites: Data and connections

This ChatGPT Sites guide helps builders and developers add saved data, sign-in and connected apps, but app integrations require a private workspace site. It explains D1 databases, R2 file storage, ChatGPT identity and service access tokens.

Researched 25 Nov 2026

In short.

Data and connections is a ChatGPT Sites guide for builders and developers adding storage, sign-in or connected apps, with app access restricted to private sites in an enabled workspace. It maps durable records to D1 and files to R2, explains identity headers and server-side authorization, and documents service tokens that pass the sign-in gate without supplying visitor identity. Pricing, capacity limits and runtime reliability are not established by this page, and no behavior was tested.

Researched and written by an AI model and checked by a second AI model. How it works

Coverage includes the complete selected Data and connections page at [https://learn.chatgpt.com/docs/sites/data-and-connections.md], including storage, sign-in, service-token and plugin guidance. Linked documentation indexes, workspace administration guidance and Help Center pages are excluded. Supported connector inventories, commercial terms and implementation behavior beyond this page remain unknown. Nothing was executed or tested.

The overview

identity

Data and connections is documentation for ChatGPT Sites at [https://learn.chatgpt.com/docs/sites/data-and-connections.md]. It teaches how to choose storage, add ChatGPT sign-in, permit service requests and load data from each visitor's connected apps. It is a guide, not a downloadable implementation.

assessment

The guide is useful when deciding how a Sites project should remember information and control access. Its strongest details concern authentication boundaries: where identity arrives, what a service token permits and why sharing a site does not share connected accounts. Database schemas, deployment artifact formats and operational guarantees are not supplied.

users

Beginners can use the need-to-feature table to describe saved progress, uploads or sign-in requirements to ChatGPT. Developers get routes, headers and token behavior relevant to server implementation. Teams building internal dashboards are a particularly clear audience because connected data uses each workspace member's own accounts and permissions.

capabilities

The page maps durable structured records to D1, a relational database, and uploaded files to R2 object storage. Searchable uploads can combine D1 metadata with R2 file contents. It recommends avoiding durable storage for temporary presentation state.

Public sites can offer optional Sign in with ChatGPT while remaining available to signed-out visitors. Private workspace sites can display viewer-specific connected-app data, with account selection and consent from each visitor.

Using it

requirements

An existing project needs confirmation that it can produce compatible deployment artifacts. Connected-app features require plugin use to be enabled in the workspace, a site private to that workspace, workspace membership for visitors and appropriate existing app permissions.

Visitors must sign in and allow the requested connected-app access for dependent features to work. Service-token generation is described as an action for the site owner through ChatGPT Work or Codex. Eligible subscription plans and supported external identity providers are not specified.

mechanism

Sites handles sign-in and sign-out through /signin-with-chatgpt and /signout-with-chatgpt. Signed-in requests carry oai-authenticated-user-email and may carry oai-authenticated-user-full-name. The full name is optional; the page recommends falling back to email and keeping authorization decisions in server-side code.

A service sends its token in OAI-Sites-Authorization using the Bearer scheme. Sites consumes that header and preserves a separate Authorization header for an application's own credential. These requests receive neither signed-in visitor identity headers nor access to visitor-connected apps.

Connected data loads using the visitor's connection and permissions. Sites manages caching and reloading, and cursor-based results use a Load more action by default. Plugin discovery through getContext() returns cached action names, descriptions and schemas without refreshing discovery.

setup

Describe which records must persist, which files users will upload and who should access them. New projects can start with the recommended Sites starter; existing projects first need a deployment compatibility check.

For a connected-app site, name the connector and required behavior, preview with real data, then publish privately to the workspace. For optional public sign-in, request sign-in and sign-out actions, a name-or-email greeting and server-side authorization. These are documented steps; none was performed here.

example

The page proposes an internal issue dashboard showing issues assigned to the current visitor, grouped by priority, with project filters, original issue links and a Refresh button. Each teammate would use their own permitted issue-tracker connection. This illustrates the documented design; there is no measured or executed result.

Assessment & evidence

limitations

Connected-app features are limited to private workspace sites. Visitors may decline app access and continue, but dependent features will fail to function. The page does not enumerate all supported connector actions.

Generating a service token replaces the site's previous token, so every caller using the old value needs updating. The replacement works immediately, but the previous token may remain valid for up to five minutes while cached configuration expires. A token clears the sign-in gate without supplying visitor identity or replacing application authorization.

reasoning

The documented design separates persistence, identity and permission checks. D1 and R2 retain information; ChatGPT sign-in identifies a visitor; server-side code controls application access. Consequently, a background service token fits unattended requests, while features requiring a visitor's connected apps need the normal signed-in experience and workspace permissions.

alternatives

Within Sites, the documented choices include a content-led site without persistent application state, D1 for records, R2 for files and both together for searchable uploads. Identity choices include workspace-authenticated access and optional public ChatGPT sign-in. The page does not compare competing hosting platforms, databases or authentication services.

evidence

The evidence is the complete captured documentation page at [https://learn.chatgpt.com/docs/sites/data-and-connections.md], captured on 2026-11-25 at 11:32:47.329 UTC. It supports the stated feature mappings, access prerequisites, routes, headers and token behavior.

The page supplies documentation and illustrative instructions, without benchmarks, reliability measurements or demonstrated deployment results. No code, site, storage operation, sign-in flow or connector request was executed or tested.

Access & freshness

costs

Costs are unknown. The page gives no subscription prices, storage charges, connector charges, included allowances or usage quotas. It does not establish whether D1, R2, authentication or connected-app usage incurs separate charges.

rights

Sharing a site does not grant access to the owner's connected accounts. Visitors choose their own connected account and permitted access, subject to existing app permissions and workspace settings.

The selected page does not state a documentation license, redistribution permission or data ownership terms. Retention, residency and linked-service contractual terms are also not established.

freshness

The capture establishes what the page stated on 2026-11-25. The supplied text contains no publication date, last-updated date, release identifier or compatibility matrix. Availability and behavior after that capture are unknown.

actions

Before building, identify durable records, uploaded files, intended visitors and required app actions. Confirm project deployment compatibility and workspace plugin permissions. Establish current plan eligibility, costs, quotas and connector support because this page does not supply them.

Before relying on the site, verify that users see only permitted records, declined app access is handled clearly and server-side authorization covers service requests. Keep service tokens in secret storage and out of browser code, URLs and source control; coordinate replacement across callers if a token is exposed.

Evidence for this report

selected-page.txtselected · checked 2026-11-25