For some requests, like creating documents, you need to pass the user credentials to the request so that DOCman can authenticate the user.

To do that, install our basic auth plugin on your site and enable it. You can send the user credentials using basic auth and the user will automatically be logged in and authenticated.

If you are programmatically creating documents using a single user, we suggest you create a new admin user specifically for this purpose.

Basic authentication

GET /en/docman/hierarchical-list HTTP/1.1
Accept: application/json
Cache-Control: no-cache
Authorization: Basic YWRtaW46YWRtaW4=

Note that the Authorization header sends the user credentials in a base64 encoded format.