| Last update | Jan 2026 |
| Environment | Any |
| Language | Any HTTP is supported |
| Compilers | None |
| Prerequisites | DSS login, internet access |
| Source code | Below |
This tutorial explains how to request an authentication token from the DSS server.
This is the starting point and a pre-requisite for all the other tutorials.
It also illustrates how to get user information using the token, which is a way to test if it is still valid.
A Postman collection and environment are available in the downloads, but you can also enter HTTP requests manually.
The DSS REST API requires a valid DSS username and password in order to access any of the API capabilities. These username and password are the same as those used for your DSS web GUI, FTP or DSS SOAP API credentials.
The DSS username and password are used to request an authentication token. The received token must be cached, and attached to all following requests to the DSS server.
The tokens are valid for 24 hours, after which a 401 (Unauthorized, Authentication Required) status code is returned. At that point a new token must be requested.
Note: you must provide valid DSS credentials (username and password) in the body of the request.
URL:
Method: POST
Headers:
Body:
The content is in JSON (JavaScript Object Notation) format.
Body:
The returned value is the token.
Notes:
Let us make a request for user information. Making a simple request allows us to test the validity of a token.
URL:
Method: GET
Headers:
Body:
If the token is not valid, or has expired, a 401 (Unauthorized, Authentication Required) status code is returned.