Getting Started with SAS® Viya® REST APIs

REST APIs provide a way to access the capabilities of SAS Viya using standard, open HTTP network protocols. With SAS' REST APIs, you can create and access SAS resources using any client technology, such as Java, Lua, Python, JavaScript, C, C#, Perl, Scala, or other programming languages. All that is necessary is a standard library for executing HTTP requests and parsing/generating JSON data.


SAS Viya REST APIs target enterprise application developers, who intend to build on the work of model builders and data scientists, to deliver apps based on SAS Viya technology. Create and access SAS resources to integrate the capabilities of SAS Viya into your business processes or to extend and customize SAS Viya to meet specific requirements.

The Cloud Analytics Services (CAS) REST APIs primarily targets data scientists, programmers and administrators, who need to interact with CAS directly and are knowledgeable about CAS actions. The API provides REST access to CAS server and the CAS grid. There are API operations for executing CAS actions, managing the CAS sessions, monitoring the system, and inspecting the CAS grid.

SAS GitHub

GitHub resources for developers

SAS has multiple REST-related repositories on github/sassoftware. Expand the section below for more information and links.

SAS GitHub repository links for REST APIs

Python command-line tools that call the SAS Viya REST APIs - for SAS administrators.

A simple framework for building applications with SAS REST APIs, supported with SAS Viya

A collection of examples using restaf in a nodejs environment.

A complete web application using restaf to explore SAS REST APIs.

restaf-server is a server designed specifically to work with SAS Viya

React components for SAS Viya applications built using restaf

Examples of SAS Viya Applications built with restaf

Python module to build REST interfaces

SAS Viya logo

One underlying code base, programmable in the language of your choice.

Learn more about SAS Viya

SAS Viya logo

Engage in the discussions happening around the power of SAS® Viyaand discover what it can do for you.

Join our Coding on SAS Viya Community

Back to Top