You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guides/cloud-setup-untrusted.mdx
+15-15Lines changed: 15 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,21 +51,21 @@ To initialize the service in this situation, use code like the following:
51
51
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.
52
52
53
53
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' \
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
+
```
69
69
70
70
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.
0 commit comments