Create a Sentry release and upload JavaScript sourcemaps via the API

domain: docs.sentry.io · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Create an internal integration or obtain an auth token from Sentry Settings > Developer Settings with 'project:releases' scope
  2. POST to 'https://sentry.io/api/0/organizations/{org_slug}/releases/' with Authorization: Bearer YOUR_TOKEN and body '{"version": "<commit_sha_or_version>", "projects": ["<project_slug>"]}'
  3. Upload sourcemap files via POST to '/api/0/organizations/{org_slug}/releases/{version}/files/' as multipart/form-data with fields 'file' (the file binary) and 'name' (the public URL path, e.g. '~/static/app.js.map')
  4. Associate commits by including a 'commits' array in the release creation body or via a separate PATCH request with commit metadata (repository, id, message, author)
  5. Optionally use the Sentry CLI ('sentry-cli releases upload-sourcemaps') to automate steps 2-4 from a CI pipeline using SENTRY_AUTH_TOKEN environment variable

Known gotchas

Related routes

Set up Sentry error tracking with release health and source maps
sentry.io · 4 steps · unrated
Record a Sentry deploy for a release via the API to track release health per environment
docs.sentry.io · 5 steps · unrated
Retrieve and interpret Sentry error budget and release performance data via the Sentry API
sentry.io · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans