Skip to main content
This guide covers breaking changes when migrating from the qBraid V1 API to V2.

What’s Changed

Authentication and Response Structure

Base URL

Authentication Header

Response Envelope

V2 responses are wrapped in a standard envelope:
V1 returned raw payloads without this wrapper.

Devices

The new API v2 makes the device objects more descriptive and standardized. We include fields like paradigm, modality, and pricingModel to better categorize devices. We have also standardized the device identifiers to use QRNs (qBraid Resource Names) for consistency across the platform.

Routes

Identifier

Response Fields

V2 adds: V2 renames:
  • typedeviceType (values: SIMULATOR, QPU)

Jobs

Quantum jobs responses have been re-organized and use QRNs as identifiers. The job submission format has also changed to explicitly specify the program format rather than using the openQasm or bitcode fields.

Routes

Request Body

V1:
V2:
Key differences:
  • qbraidDeviceIddeviceQrn (QRN format)
  • openQasm/bitcodeprogram.data with explicit program.format
  • circuitNumQubits removed (inferred from program)

Response Fields

V2 adds these fields to job responses:

What’s the Same

  • API key authentication model (header-based)
  • Core job lifecycle: create → poll status → get result
  • shots, tags, status fields
  • Job statuses: INITIALIZING, QUEUED, RUNNING, COMPLETED, FAILED, CANCELLED
  • Device statuses: ONLINE, OFFLINE, UNAVAILABLE

Deprecated Endpoints

The following V1 endpoints are not available in V2:

Quick Migration Checklist

  1. Update base URL to https://api-v2.qbraid.com/api/v1
  2. Change auth header from api-key to X-API-KEY
  3. Replace qbraidDeviceId with deviceQrn using QRN format
  4. Wrap program in { "format": "...", "data": "..." } object
  5. Update route paths (/quantum-jobs/jobs, /quantum-devices/devices)
  6. Handle new response envelope (response.data instead of raw payload)
  7. Remove any chat endpoint integrations