Skip to content

docs(api): explain regional routing and regional domains#18653

Open
youdie006 wants to merge 1 commit into
getsentry:masterfrom
youdie006:docs/api-regional-routing
Open

docs(api): explain regional routing and regional domains#18653
youdie006 wants to merge 1 commit into
getsentry:masterfrom
youdie006:docs/api-regional-routing

Conversation

@youdie006

@youdie006 youdie006 commented Jul 7, 2026

Copy link
Copy Markdown

Closes #18630.

Expands the API docs to explain regional routing and regional domains.

  • docs/api/index.mdx — rewrites "Choosing the Right API Base Domain": the global sentry.io vs region-specific domain model (with sentry.io routing to the correct region so existing integrations keep working, and region-specific domains recommended for org data), a Regional Domains table (US / US2 / EU), and a new "Finding Your Organization's Region Programmatically" subsection documenting GET /api/0/users/me/regions/.
  • docs/organization/data-storage-location/index.mdx — links back to the API base-domain section.

Regional domains and the regions endpoint / response shape are grounded in the existing data-storage-location page and the repo's own region handling; illustrative values are labeled as examples rather than invented.


AI disclosure: this PR was drafted with Claude Code (AI-assisted). The changes were verified locally before submitting (see the test plan above).

Document the global vs region-specific domain model, the regional domains,
and how to look up an organization's region programmatically.
@vercel

vercel Bot commented Jul 7, 2026

Copy link
Copy Markdown

@youdie006 is attempting to deploy a commit to the Sentry Team on Vercel.

A member of the Team first needs to authorize it.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ca477d2ba9

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread docs/api/index.mdx
If you're building an integration, CLI, or CI job, resolve the region at runtime instead of hardcoding a domain. Request the list of regions the authenticated user belongs to:

```bash
curl -H 'Authorization: Bearer <auth_token>' https://sentry.io/api/0/users/me/regions/

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Use the public org endpoint for region discovery

For the integrations/CLI/CI scenario described here, this users/me/regions call points external users at an unsupported API: in the Sentry backend, UserRegionsEndpoint.publish_status marks GET as ApiPublishStatus.PRIVATE and the endpoint is documented in code as frontend fan-out support. Publishing it in the public API reference would make third-party tooling depend on a private endpoint that can change or disappear; the region-discovery guidance should use the public organization details response instead.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs(api): expand API documentation to explain regional routing and regional domains

1 participant