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 the Java® and .NET client APIs.
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 and .NET client APIs.
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.
Starting in R2020a, the Java client library supports the RESTful API and protocol buffers.
Starting in R2020b, the .NET client library supports the RESTful API and protocol buffers.
Learn how the request-response model of the RESTful API for MATLAB Production Server works.
Represent supported MATLAB data types in JSON.
Represent MATLAB function signatures in JSON.
List of HTTP status codes and possible errors.