← All Tools
Sentry DSN Parser & Builder
Parse Sentry DSNs into parts (public key, host, project ID), build the corresponding ingest URLs, and generate the X-Sentry-Auth header. Everything runs locally — no requests are made, keys never leave your browser.
DSN
Paste a Sentry DSN
Format: <scheme>://<public-key>[:<secret>]@<host>[:<port>]/<project-id>
Sample (SaaS)
Self-hosted
Legacy w/secret
Parsed parts
Ingest URLs & headers
URLs
X-Sentry-Auth
curl
SDK init
Envelope endpoint
—
Store endpoint (legacy)
—
Security (CSP) endpoint
—
Minidump endpoint
—
Tunnel path (relay)
—
X-Sentry-Auth header
Included on every request to the ingest API. sentry_version=7 is the current default. The secret key is optional for modern SDKs.
Store event via curl
—
Sends a single minimal event envelope. Useful for health-checking a DSN.
JavaScript
—
Python
—
Go
—
Notes
DSN contains a public key — it's safe to embed in client code but still best practice to keep it out of public repos.
Secret keys (:secret) were deprecated in Sentry 9+ and are no longer used by modern SDKs.
The envelope endpoint is the modern ingest format that carries events, transactions, attachments, and sessions.
For self-hosted deployments, the host portion will be your Sentry domain (e.g. sentry.example.com).