The MATLAB® Production Server™ RESTful API enables you to evaluate MATLAB functions on remote servers using JSON representation of MATLAB data types and protocol buffers. You can create client programs in any programming language with an HTTP library. Protocol buffer support is available only in Java® client API.
To communicate with MATLAB Production Server, a client must use
RESTful API for the request-response relationship with the server.
JSON to represent MATLAB data types or protocol buffers. Protocol buffer support is available only through the Java client API.
Production Server. To enable CORS on the server, set the appropriate value for the option
cors-allowed-origins in the
main_config server configuration file.
The RESTful API supports both the synchronous and asynchronous execution of requests on the server.
In order to use the RESTful API and JSON functionality, you must be running MATLAB Production Server and MATLAB Runtime for R2016a or later.
In order to use the RESTful API and protocol buffers, you must use the Java client library for R2020a or later.
Learn how the request-response model of the RESTful API for MATLAB Production Server works.
Description of how to represent MATLAB data types in JSON.
Represent MATLAB function signatures in JSON.
List of HTTP status codes and possible errors.