Bugsnag JavaScript API

Source maps for minified JavaScript

Operations 2

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /react-native-source-map Upload a React Native source map · React Native source maps #
Ask an LLM
“How do I get readable React Native JavaScript stack traces on BugSnag?”
“Do I need to upload the bundle along with the React Native source map?”
Tell an agent
Upload React Native source map {sourceMap} and bundle {bundle} for platform {platform}.
Upload the {platform} React Native source map {sourceMap} for app version {appVersion}.
POST /sourcemap Upload a browser JavaScript source map · JavaScript source maps #
Ask an LLM
“How do I de-minify browser JavaScript errors on my BugSnag dashboard?”
“Which minified URL should a web source map upload be matched to?”
Tell an agent
Upload source map {sourceMap} for the minified script at {minifiedUrl}.
Upload web source map {sourceMap} for {minifiedUrl} at app version {appVersion}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/bugsnag:bugsnag-javascript-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

bugsnag-javascript-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: '1'
  title: BugSnag - Upload JavaScript API
  description: Upload symbol and mapping files to show full stacktraces in your BugSnag dashboard.
  contact:
    name: BugSnag Support
    email: support@bugsnag.com
servers:
- description: For organizations with projects on app.bugsnag.com
  url: https://upload.bugsnag.com
- description: For organizations with projects on app.bugsnag.smartbear.com
  url: https://upload.bugsnag.smartbear.com
- description: SwaggerHub API Auto Mocking
  url: https://virtserver.swaggerhub.com/smartbear-public/bugsnag-upload-api/1
tags:
- name: JavaScript
  description: Source maps for minified JavaScript
paths:
  /react-native-source-map:
    post:
      summary: React Native source maps
      description: Upload JavaScript source map files to de-obfuscate bundled code in your React Native application and show human-readable stacktraces on your dashboard.
      operationId: uploadReactNativeSourcemap
      tags:
      - JavaScript
      requestBody:
        description: 'One or more of `appVersion`, `appBundleVersion`/`appVersionCode` and `codeBundleId` is required to uniquely identify the uploaded file and allow it to be matched to events from your application.

          '
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              required:
              - apiKey
              - platform
              - sourceMap
              - bundle
              properties:
                bundle:
                  type: string
                  format: file
                  description: The bundled JavaScript file to upload as a [form-data](https://en.wikipedia.org/wiki/MIME#Form-Data) file upload.
                sourceMap:
                  type: string
                  format: file
                  description: The source map file to upload as a [form-data](https://en.wikipedia.org/wiki/MIME#Form-Data).
                apiKey:
                  type: string
                  description: The API key for the application's project in BugSnag.
                platform:
                  type: string
                  enum:
                  - android
                  - ios
                  description: 'The application platform: either `android` or `ios`.'
                appBundleVersion:
                  type: string
                  description: The bundle version (`CFBundleVersion`) of this build of the application (iOS only).
                appVersion:
                  type: string
                  description: The version of the application.
                appVersionCode:
                  type: string
                  description: The version code of this build of the application (Android only).
                codeBundleId:
                  type: string
                  description: 'A unique identifier for the JavaScript bundle.

                    If you use deployment tools to update your JavaScript bundle without changing the native version or build number, use this ID to uniquely identify the update.

                    This same ID must also be set in the configuration in your app, so that errors match the uploaded bundle.

                    '
                dev:
                  type: boolean
                  description: 'Indicates whether the application is a debug or release build. This value should mirror the value used when generating source map files (Default: `false`).'
                  default: false
                overwrite:
                  type: boolean
                  description: 'Whether to ignore and overwrite existing uploads with same identifier, rather than failing if a matching file exists. (Default: `true`)'
                  default: true
                projectRoot:
                  type: string
                  description: The root path of the project on the filesystem where the application was built. This is used to strip part of the path from the beginning of source file names in your dashboard.
      responses:
        '200':
          description: OK
          content:
            text/plain:
              schema:
                type: string
                example: OK
        '400':
          description: A required parameter is missing or the file format is invalid
          content:
            text/plain:
              schema:
                type: string
              examples:
                A required parameter is missing:
                  value: 'missing required param: apiKey'
                A required file is missing:
                  value: 'missing required file: sourceMap'
                Invalid dev field:
                  value: invalid dev value
                Invalid platform field:
                  value: platform must be either 'ios' or 'android'
                Conflicting identifiers provided with codeBundleId:
                  value: <version type> cannot be provided if 'codeBundleId' set
                Conflicting identifiers provided for platform:
                  value: '''<version type>'' should only be specified for <platform> platforms'
                No identifiers provided:
                  value: at least one of 'appVersion', 'appVersionCode', 'appBundleVersion', or 'codeBundleId' must be provided
        '401':
          description: Invalid API key
          content:
            text/plain:
              schema:
                type: string
                example: invalid apiKey
        '409':
          description: Duplicate file already exists with the same identifier (use `overwrite` to replace)
          content:
            text/plain:
              schema:
                type: string
                example: duplicate source map file for <version details>
        '422':
          description: Nothing to upload (e.g. empty file or not uploaded correctly)
          content:
            text/plain:
              schema:
                type: string
                example: Received empty file
  /sourcemap:
    post:
      summary: JavaScript source maps
      description: 'Upload JavaScript source map files to de-obfuscate bundled code and show human-readable stacktraces on your dashboard.

        This is required if source maps are not publicly hosted.'
      operationId: uploadSourcemap
      tags:
      - JavaScript
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              required:
              - apiKey
              - minifiedUrl
              - sourceMap
              properties:
                sourceMap:
                  type: string
                  format: file
                  description: The source map file to upload as a [form-data](https://en.wikipedia.org/wiki/MIME#Form-Data) file upload.
                apiKey:
                  type: string
                  description: The API key for the application's project in BugSnag.
                minifiedUrl:
                  type: string
                  description: The URL of the minified JavaScript file that the source map relates to. Asterisks can be used as a wildcard.
                appVersion:
                  type: string
                  description: The version of the application.
                minifiedFile:
                  type: string
                  format: file
                  description: The minified JavaScript file that the source map relates to.
                overwrite:
                  type: boolean
                  description: 'Whether to ignore and overwrite existing uploads with same identifier, rather than failing if a matching file exists. (Default: `true`)'
                  default: true
                projectRoot:
                  type: string
                  description: The root path of the project on the filesystem where the application was built. This is used to strip part of the path from the beginning of source file names in your dashboard.
                <source>:
                  type: string
                  description: 'The source of each source file referenced by the source map.

                    The field name `<source>` should be the URL used to access the file, and the value should be the source file contents.

                    Asterisks in the field name can be used as a wildcard.

                    '
      responses:
        '202':
          description: Accepted
          content:
            text/plain:
              schema:
                type: string
                example: Accepted
        '400':
          description: A required parameter is missing or the file format is invalid
          content:
            text/plain:
              schema:
                type: string
              examples:
                A required parameter is missing:
                  value: 'missing required param: apiKey'
                Conflicting identifiers provided with codeBundleId:
                  value: only one of 'appVersion' and 'codeBundleId' can be provided"
        '401':
          description: Invalid API key
          content:
            text/plain:
              schema:
                type: string
                example: invalid apiKey
        '409':
          description: Duplicate file already exists with the same identifier (use `overwrite` to replace)
          content:
            text/plain:
              schema:
                type: string
                example: duplicate source map file for <URL> version <app version>
        '422':
          description: Nothing to upload (e.g. empty file or not uploaded correctly)
          content:
            text/plain:
              schema:
                type: string
                example: Received empty file