The PeerTube API is built on HTTP(S) and is RESTful. You can use your favorite HTTP/REST library for your programming language to use PeerTube. The spec API is fully compatible with openapi-generator which generates
curl \ -H "Authorization: Bearer $ACCESS_TOKEN" \ https://peertube2.cpy.re/api/v1/users
curl \ -H "Authorization: Bearer $ACCESS_TOKEN" \ https://peertube2.cpy.re/api/v1/abuses
curl \ -H "Authorization: Bearer $ACCESS_TOKEN" \ https://peertube2.cpy.re/api/v1/config