Using RICOH ProcessDirector REST API documentation
The REST API documentation includes many APIs that an application can use to integrate with RICOH ProcessDirector. You can use the REST API documentation and testing interface to test your parameter settings. When you use the interface to test web services, you access the RICOH ProcessDirector primary server. Actions such as creating, deleting, and enabling objects are executed on the primary server and are reflected in the RICOH ProcessDirector user interface. As a result, we suggest creating objects specifically for testing purposes.
These steps demonstrate how to request the log files for an object using REST APIs. These steps log you in to RICOH ProcessDirector, request the log files for the Sample printer, and log you out.
- Open a Web browser and enter your RICOH ProcessDirector hostname or IP address into the address bar. Add /restapi/ to the end of your hostname or IP address to access the REST API documentation. For example, http://hostname:15080/restapi/
- In the users section, click Expand Operations and find GET /users/login.
- Log in to RICOH ProcessDirector by entering your RICOH ProcessDirector credentials:
- For the name parameter, enter your RICOH ProcessDirector user name.
- For the pwd parameter, enter the password associated with your RICOH ProcessDirector user name.
- Click the Try it Out!The REST API documentation uses the values you enter to build a Curl command and a Request URL. Then it submits the request to the request URL and logs you in.
RICOH ProcessDirector sends a response indicating whether you successfully logged in. The response includes additional information including the token and the actions that this User ID is allowed to do.
- In the Response Body box, find and copy the token value.
- In the objects section, click Expand Operations. Scroll down until you find GET /objects/log/{objectType}/{name}.
- Retrieve the log messages for the Sample printer by entering these parameters:
- For the token parameter, paste the token you copied above.
- For the objectType parameter, type Printer.
- The values for objectType are case-sensitive. You can use the web service GET /util/objecttypes to get a list of object types available on your system. The web service GET /util/objecttypes is found in the util section.
- For the name parameter, type Sample.
- Click the Try it Out!The log entries for the Sample printer are returned in the Response Body box.
The Curl and Request URL values are also returned.
- In the users section, click Expand Operations and find POST /users/logout/{name}.
- Log out of RICOH ProcessDirector:
- For the token parameter, paste the token you copied above.
- For the name parameter, enter your RICOH ProcessDirector user name.
- Click the Try it Out!You are logged out of RICOH ProcessDirector.
-
Example values are included with certain APIs. With example values you can copy a sample string of code into the body field and modify it for testing.
These steps demonstrate how to use a REST API to connect a hot folder. These steps log you in to RICOH ProcessDirector, set the Input Device to accept files from HotFolderPDF, and log you out.
- Open a Web browser and enter your RICOH ProcessDirector hostname or IP address into the address bar. Add /restapi/ to the end of your hostname or IP address to access the REST API documentation. For example, http://hostname:15080/restapi/
- In the users section, click Expand Operations and find GET /users/login.
- Log in to RICOH ProcessDirector by entering your RICOH ProcessDirector credentials:
- For the name parameter, enter your RICOH ProcessDirector user name.
- For the pwd parameter, enter the password associated with your RICOH ProcessDirector user name.
- Click the Try it Out!The REST API documentation uses the values you enter to build a Curl command and a Request URL. Then it submits the request to the request URL and logs you in.
RICOH ProcessDirector sends a response indicating whether you successful logged in. The response includes additional information including the token and the actions that this User ID is allowed to do.
- In the Response Body box, find and copy the token value.
- In the objects section, click Expand Operations. Scroll down until you find POST /objects/{objectType}/connect.
- Connect HotFolderPDF by entering these parameters:
- For the token parameter, paste the token you copied above.
- For the objectType parameter, type InputDevice.The values for objectType are case-sensitive. You can use the web service GET /util/objecttypes to get a list of object types available on your system. The web service GET /util/objecttypes is found in the util section.
- For the body parameter, click the Example Value. The text inside the Example Value is copied into the body parameter. Replace the word “string” with “HotFolderPDF”. Make sure the double quotes are around the name of the object.
- Click the Try it Out!The properties and settings for HotFolderPDF are returned in the Response Body box. The Response Code and Response Headers are also returned.
- In the users section, click Expand Operations and find POST /users/logout/{name}.
- Log out of RICOH ProcessDirector:
- For the token parameter, paste the token you copied above.
- For the name parameter, enter your RICOH ProcessDirector user name.
- Click the Try it Out!You are logged out of RICOH ProcessDirector.