bugsnag Sessions API

Report session data to Bugsnag for stability score calculations. Sessions represent periods of user activity and are used to compute crash-free session and user percentages.

Operations 1

POST /sessions Send session data #

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-sessions-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-sessions-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Bugsnag Session Tracking Sessions API
  description: The Bugsnag Session Tracking API enables applications to report session data, which is used to calculate release stability scores in the Bugsnag dashboard. By tracking when user sessions start and end, Bugsnag can determine crash rates and overall application stability. This API works in conjunction with the Error Reporting API to provide a complete picture of application health. Session data is required for accurate stability metrics and crash-free user percentages.
  version: '1.0'
  contact:
    name: Bugsnag Support
    url: https://docs.bugsnag.com/api/sessions/
  termsOfService: https://smartbear.com/terms-of-use/
servers:
- url: https://sessions.bugsnag.com
  description: Bugsnag Sessions Server
security: []
tags:
- name: Sessions
  description: Report session data to Bugsnag for stability score calculations. Sessions represent periods of user activity and are used to compute crash-free session and user percentages.
paths:
  /sessions:
    post:
      operationId: sendSessions
      summary: Send session data
      description: Sends session tracking data to Bugsnag. Session data is used to calculate stability scores and crash-free session and user percentages. Each payload contains notifier information, application and device details, and one or more session records. Session data should be batched and sent periodically rather than on every session start.
      tags:
      - Sessions
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SessionPayload'
      responses:
        '202':
          description: The session data was accepted for processing.
        '400':
          description: The payload was malformed or missing required fields.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: The API key is invalid or missing.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Rate limit exceeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    ErrorResponse:
      type: object
      description: An error response from the session tracking endpoint.
      properties:
        errors:
          type: array
          items:
            type: string
          description: List of error messages describing the problem.
    Notifier:
      type: object
      description: Information about the notifier library reporting sessions.
      required:
      - name
      - version
      - url
      properties:
        name:
          type: string
          description: The name of the notifier library.
          example: Bugsnag Ruby
        version:
          type: string
          description: The version of the notifier library.
          example: 6.24.0
        url:
          type: string
          format: uri
          description: The URL for the notifier library's homepage or repository.
    SessionCount:
      type: object
      description: Represents a batch of sessions that started at the same time. Used for efficient batching of session data.
      required:
      - startedAt
      - sessionsStarted
      properties:
        startedAt:
          type: string
          format: date-time
          description: The ISO 8601 timestamp when the sessions started.
        sessionsStarted:
          type: integer
          minimum: 1
          description: The number of sessions that started at this time.
        user:
          type: object
          description: Information about the user associated with these sessions.
          properties:
            id:
              type: string
              description: A unique identifier for the user.
            name:
              type: string
              description: The user's display name.
            email:
              type: string
              format: email
              description: The user's email address.
    SessionPayload:
      type: object
      description: The top-level session tracking payload. Contains the notifier information, application and device context, and a batch of session counts.
      required:
      - notifier
      - app
      - device
      - sessionCounts
      properties:
        notifier:
          $ref: '#/components/schemas/Notifier'
        app:
          $ref: '#/components/schemas/ApplicationInfo'
        device:
          $ref: '#/components/schemas/DeviceInfo'
        sessionCounts:
          type: array
          description: A batch of session count records. Each record represents sessions started at a specific time.
          minItems: 1
          items:
            $ref: '#/components/schemas/SessionCount'
    ApplicationInfo:
      type: object
      description: Information about the application reporting sessions.
      properties:
        version:
          type: string
          description: The application version string.
        releaseStage:
          type: string
          description: The release stage of the application (e.g., production, staging).
        type:
          type: string
          description: The type of application.
        versionCode:
          type: integer
          description: The numeric version code, for Android applications.
        bundleVersion:
          type: string
          description: The bundle version, for iOS applications.
    DeviceInfo:
      type: object
      description: Information about the device running the application.
      properties:
        hostname:
          type: string
          description: The hostname of the device.
        osName:
          type: string
          description: The name of the operating system.
        osVersion:
          type: string
          description: The version of the operating system.
        manufacturer:
          type: string
          description: The device manufacturer.
        model:
          type: string
          description: The device model name.
        runtimeVersions:
          type: object
          additionalProperties:
            type: string
          description: Runtime version information (e.g., node version, CLR version).
externalDocs:
  description: Bugsnag Session Tracking API Documentation
  url: https://docs.bugsnag.com/api/sessions/