About cookies on this site Our websites require some cookies to function properly (required). In addition, other cookies may be used with your consent to analyze site usage, improve the user experience and for advertising. For more information, please review your options. By visiting our website, you agree to our processing of information as described in IBM’sprivacy statement. To provide a smooth navigation, your cookie preferences will be shared across the IBM web domains listed here.
Health
Get version
Get a list of available API versions
Code samples
GET
/v1/versionscurl -X GET \
/api/v1/versions \
-H 'Authorization: Bearer YOUR-TOKEN' \
-H 'Accept: application/json'
import requests
response = requests.request(
"GET",
"/api/v1/versions",
headers={
"Accept": "application/json",
"Authorization": "Bearer YOUR_API_TOKEN_HERE"
},
)
print(response.json())
Responses
{
"versions": [
"0.0.1"
]
}
{
"type": "object",
"properties": {
"versions": {
"example": [
"0.0.1"
],
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"versions"
]
}
Was this page helpful?
Report a bug or request content on GitHub.