It’s possible using specklepy or use the combination of GraphQL and REST
specklepy
GraphQL
REST
Some discussions in the below thread