Skip to content

Commit b99463a

Browse files
committed
adjust indents to fix numbering
1 parent 5aae1e8 commit b99463a

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

docs/guides/cloud-setup-untrusted.mdx

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -51,21 +51,21 @@ To initialize the service in this situation, use code like the following:
5151
Follow these steps to use your API key directly to authenticate to the Qiskit Runtime REST API, where `<your_API_KEY>` is the 44-character API_KEY you created and saved from your IBM Quantum Platform dashboard.
5252

5353
1. Use your API key to generate a [bearer token](/docs/api/qiskit-runtime-rest#authentication). A _bearer token_ is a temporary credential that expires after no more than one hour. After the acquired token expires, you must generate a new one to continue calling IBM Cloud or other service APIs. :
54-
```bash
55-
curl -X POST 'https://iam.cloud.ibm.com/identity/token' \
56-
-H 'Content-Type: application/x-www-form-urlencoded' \
57-
-d 'grant_type=urn:ibm:params:oauth:grant-type:apikey&apikey=your_API_KEY'
58-
```
59-
Copy and save the returned bearer token: `"access_token": "<NEW_BEARER_TOKEN>"`
60-
1. Authenticate requests to the Qiskit Runtime REST API by including the CRN and bearer token in the request's headers.
61-
62-
```bash
63-
curl -X 'GET' \
64-
'https://quantum.cloud.ibm.com/api/v1/usage' \
65-
'-H accept: application/json' \
66-
'-H authorization: Bearer <BEARER_TOKEN>' \
67-
'-H Service-CRN: <INSTANCE_CRN>'
68-
```
54+
```bash
55+
curl -X POST 'https://iam.cloud.ibm.com/identity/token' \
56+
-H 'Content-Type: application/x-www-form-urlencoded' \
57+
-d 'grant_type=urn:ibm:params:oauth:grant-type:apikey&apikey=your_API_KEY'
58+
```
59+
Copy and save the returned bearer token: `"access_token": "<NEW_BEARER_TOKEN>"`
60+
1. Authenticate requests to the Qiskit Runtime REST API by including the CRN and bearer token in the request's headers.
61+
62+
```bash
63+
curl -X 'GET' \
64+
'https://quantum.cloud.ibm.com/api/v1/usage' \
65+
'-H accept: application/json' \
66+
'-H authorization: Bearer <BEARER_TOKEN>' \
67+
'-H Service-CRN: <INSTANCE_CRN>'
68+
```
6969

7070
1. Change your API key after each use by [Deleting your existing API key](https://cloud.ibm.com/docs/account?topic=account-userapikey&interface=ui#delete_user_key) and generating a new API key on the [IBM Quantum Platform](https://quantum.cloud.ibm.com/) home page.
7171

0 commit comments

Comments
 (0)