Skip to main content
IBM Quantum Platform
This is the API reference for the Qiskit Runtime REST API on the new IBM Quantum Platform, which replaces the REST APIs for IBM Quantum Platform (Classic) Qiskit Runtime and IBM Cloud Qiskit Runtime. For more details, including how to migrate, visit the guide Migrate to the new Qiskit Runtime REST API.

Accounts


Get account configuration

Get the current account information. If no account information is found, returns the default configuration.

Path Parameters

Name, TypeDescription
id
Required
string

Account id (without a/ prefix)

Query Parameters

Name, TypeDescription
plan_id
string

Obtain the account configuration only for the specified plan

HTTP Response Status Codes

Status codeDescription
200Account configuration successfully retrieved
400Bad Request
401Unauthorized
404Not Found
500Internal error

Code samples

GET
/v1/accounts/{id}
curl -X GET \
  /api/v1/accounts/{id} \
  -H 'Authorization: Bearer YOUR-TOKEN' \
  -H 'Accept: application/json'

Responses

{
  "plans": [
    {
      "plan_id": "plan-id-1",
      "usage_allocation_seconds": 200,
      "unallocated_usage_seconds": 200,
      "backends": [
        "ibm_backend"
      ],
      "max_ttl": 28800,
      "active_ttl": 28800,
      "interactive_ttl": 60
    },
    {
      "plan_id": "plan-id-2",
      "usage_allocation_seconds": 1000,
      "unallocated_usage_seconds": 150,
      "backends": [
        "backend1",
        "backend2"
      ]
    }
  ]
}
Was this page helpful?
Report a bug or request content on GitHub.