Accessing the REST interface requires a security token, which can be generated using the FME Server token service.The security token is a string of encrypted information sent between client and server to manage authentication.
For information about requesting a security token, seeToken Servicein the FME Server Reference Manual orFME REST Securityin the FME Server Developer's Guide.
The following example is a GET request to list all available repositories, and includes the security token parameter:
httpRequest.open("GET", "/fmerest/repositories.json?token="+token_, true);