Get API version
Get a list of compatible CDI versions
GET
/appid-{appId}/apiversionAuthorization
api-keyAPI key · headerrequiredThe core service API token. If you are using a self-hosted core service and you have not generated a token, you can omit the header.
Query parameters
websiteDomainstringapiDomainstringResponses
200get api version
versionsstring[]400error code 400
string401error code 401
string404error code 404
string500error code 500
stringTry it
Server
Authorization
Parameters
Request
curl -X GET "/appid-{appId}/apiversion" \
-H "api-key: YOUR_API_KEY"const response = await fetch("/appid-{appId}/apiversion", {
method: "GET",
headers: {
"api-key": "YOUR_API_KEY"
}
});import requests
response = requests.get(
"/appid-{appId}/apiversion",
headers={
"api-key": "YOUR_API_KEY"
},
)Response
{
"versions": [
[
"2.13"
]
]
}"string""Invalid API key""Not Found""Internal Error"