Yep! That URL schema is correct!
It is actually difficult to make an endpoint to return the type based on id. This is because the set of possible IDs (refer to them as hashes internally) is split across two different tables (e.g. it is possible to have an album and image with the same hash).
Hope this clears up things, let me know if you have any additional questions!
Best,
Jasdev