You can retrieve the Groovy source code of a user plugin using the Retrieve Plugin Code REST API endpointRetrieve Plugin Code