POST
/
sessions
cURL
curl --request POST \
  --url https://api.ionq.co/v0.4/sessions \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "backend": "<string>",
  "settings": {
    "job_count_limit": 123,
    "duration_limit_min": 123,
    "cost_limit": {
      "unit": "<string>",
      "value": 123
    }
  }
}'
{
  "id": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "organization_id": "<string>",
  "backend": "<string>",
  "project_id": "<string>",
  "creator_id": "<string>",
  "ended_at": "2023-11-07T05:31:56Z",
  "ender_id": "<string>",
  "settings": {
    "job_count_limit": 123,
    "duration_limit_min": 123,
    "cost_limit": {
      "unit": "<string>",
      "value": 123
    },
    "expires_at": "2023-11-07T05:31:56Z"
  },
  "active": true,
  "status": "created",
  "started_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

API keys are associated with a user and can be created on the IonQ Quantum Cloud application. To authenticate, prefix your API Key with apiKey and place it in the Authorization request header. Ex: Authorization: apiKey your-api-key

Body

application/json

Response

201 - application/json

Created

The response is of type object.