Users
Get user
Get the authenticated user
HTTP Response Status Codes
Status code | Description |
---|---|
200 | User information |
401 | Unauthorized |
500 | Internal server error |
Code samples
GET
/users/mecurl -X GET \
https://api.quantum-computing.ibm.com/runtime/users/me \
-H 'Authorization: Bearer YOUR-TOKEN' \
-H 'Accept: application/json'
import requests
response = requests.request(
"GET",
"https://api.quantum-computing.ibm.com/runtime/users/me",
headers={
"Accept": "application/json",
"Authorization": "Bearer YOUR_API_TOKEN_HERE"
},
)
print(response.json())
Responses
{
"email": "[email protected]",
"instances": [
{
"name": "ibm-q/open/main",
"plan": "premium"
}
]
}
{
"type": "object",
"properties": {
"email": {
"type": "string",
"example": "[email protected]"
},
"instances": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"example": "ibm-q/open/main"
},
"plan": {
"type": "string",
"example": "premium"
}
},
"required": [
"name",
"plan"
]
}
}
},
"required": [
"email",
"instances"
]
}
Was this page helpful?
Report a bug or request content on GitHub.