You can use the GET /environments/{{envID}}/externalServices/{{externalServiceID}}/secrets operation to return the secret resource associated with the external service specified by its ID in the request URL.