Please note: All new registrants to the Panopto Community Forum must be approved by a forum moderator or admin. As such, if you navigate to a feature that is members-only, you may receive an error page if your registration has not yet been approved. We apologize for any inconvenience and are approving new members as quickly as possible.
API error UnsupportedApiVersion
Hi, I have an issue trying to access a session folder.
"Error":{"Code":"UnsupportedApiVersion","Message":"The HTTP resource that matches the request URI...does not support the API version '1'."}
I believe the token is valid but the The /api/v1/... REST API is not enabled on our Panopto cloud tenant (mycollege.hosted.panopto.com)
How can I fix this? How can I request this API to be enable for our hosted account? Thank you.
0
Answers
Hello Maria,
Versioning is enabled for most of our REST APIs. If you could provide the exact URL your are trying to access, along with the parameters, it would help me to debug your problem better.
You can view all the REST APIs on this URL: https://mycollege.hosted.panopto.com/Panopto/api/docs/index.html#/
Regards,
Aishwarya
Hi Aishwarya, I am developing an integration and received
UnsupportedApiVersion
for/api/v1/sessions
. Can you please confirm whether the REST API is enabled for our site (austincc.hosted.panopto.com
)? If not, can it be enabled?I need to list all sessions in a folder. Using the folder ID my command is:
curl -X GET "https://austincc.hosted.panopto.com/Panopto/api/v1/sessions?folderID=MY_FOLDER_ID" -H "Authorization: Bearer MY_ACCESS_TOKEN"
I am looking for this response: "DownloadUrl": "https://austincc.hosted.panopto.com/Panopto/Podcast/Download/..."
When I try https ://austincc.hosted.panopto.com/Panopto/api/v1/sessions/ I always receive this error:
<Error><Error><Code>UnsupportedApiVersion</Code><Message>The HTTP resource that matches the request URI 'http://austincc.hosted.panopto.com/Panopto/api/v1/sessions/' does not support the API version '1'.</Message></Error></Error>
Wouldn't you first get a list of session ID's by using the folder API then iterate through that list to get the DownloadUrl for each session?
/api/v1/folders/{id}/sessions
curl -X GET "https://austincc.hosted.panopto.com/Panopto/api/v1/folders/{MY_FOLDER_ID}/sessions" -H "Authorization: Bearer MY_ACCESS_TOKEN"
Perhaps I'm missing something since I haven't switched to using the REST API but that's how I'd do it with SOAP.
Hi Charles,
Thank you so much for your answer. I try, but again an error. Authorization has been denied.
λ curl -X GET "https://austincc.hosted.panopto.com/Panopto/api/v1/folders/folderID=d93d6486-e219-48d9-89c3-b03d010e487c/sessions" -H "Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6InhYTGt6ejUybGNhWGhZWjR2QVl1bXRYNmQxdyIsImtpZCI6InhYTGt6ejUybGNhWGhZWjR2QVl1bXRYNmQxdyJ9.eyJpc3MiOiJodHRwczovL2F1c3RpbmNjLmhvc3RlZC5wYW5vcHRvLmNvbS9QYW5vcHRvL29hdXRoMiIsImF1ZCI6ImFmNjA3ZThmLWY0YjAtNGZhNi1hYzFmL…"
{"Message":"Authorization has been denied for this request."}
Hi There, I have the authorization code and token, still the system does not allows me to access.
λ curl -v -X GET "https://austincc.hosted.panopto.com/Panopto/api/v1/folders/d93d6486-e219-48d9-89c3-b03d010e487c/sessions" -H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJ….'
Note: Unnecessary use of -X or --request, GET is already inferred.
< HTTP/1.1 401 Unauthorized
< Date: Fri, 11 Apr 2025 21:02:32 GMT
< Content-Type: application/json; charset=utf-8
< Content-Length: 61
< Connection: keep-alive
< Cache-Control: no-cache
< Pragma: no-cache
< Expires: -1
< Strict-Transport-Security: max-age=31536000
< Access-Control-Allow-Credentials: true
< Access-Control-Allow-Origin: https://austincc.hosted.panopto.com
< p3p: CP="Some Browsers Require This In Order to Set Third Party Cookies"
<
{"Message":"Authorization has been denied for this request."}* Connection #0 to host austincc.hosted.panopto.com left intact
I wonder if I need to use a different client type. For this test I am using the Server-side Web Application application. Should I create a Server Application or what client type can authenticate with the client_id and client_secret only?