Show / Hide Table of Contents

    How to Login

    Login with username and password

    Values to be replaced:

    • servername.com with your DocuWare server address.
    • PASSWORD with the user password.
    • USERNAME with the user name.
    • CURL_CLIENT with the HostID you want for your application.
    • "C:\Temp\login.cookies" with your wanted path to the cookie jar file.
    curl --location --request POST "https://servername.com/docuware/platform/Account/Logon" ^
    --header "Content-Type: application/x-www-form-urlencoded" ^
    --header "Accept: application/json" ^
    --data-urlencode "LicenseType=" ^
    --data-urlencode "Password=PASSWORD" ^
    --data-urlencode "RedirectToMyselfInCaseOfError=false" ^
    --data-urlencode "RememberMe=false" ^
    --data-urlencode "UserName=USERNAME" ^
    --data-urlencode "HostID=CURL_CLIENT" ^
    --cookie-jar "C:\Temp\login.cookies"
    

    Get Login Token

    Values to be replaced:

    • servername.com with your DocuWare server address.
    • Lifetime with your wished time the token should be valid. Lifetime format day.hour:minute:second.
    • "C:\Temp\login.cookies" with the path to the cookie jar file you defined by the Login.
    curl --location --request POST "https://servername.com/docuware/platform/Organization/LoginToken" ^
    --header "Content-Type: application/json" ^
    --header "Accept: application/json" ^
    --data-raw "{"TargetProducts":["PlatformService"],"Usage":"Multi","Lifetime":"1.00:00:00"}" ^
    --cookie "C:\Temp\login.cookies"
    

    Login with Token

    Values to be replaced:

    • servername.com with your DocuWare server address.
    • PLATFORMGENERATEDTOKEN with the token from the response from Get Login Token.
    • CURL_CLIENT_TOKEN with the HostID you want for your application.
    • "C:\Temp\login.cookies" with the path to the cookie jar file you defined by the Login.
    • "C:\Temp\login_with_token.cookies" with the path you want for the cookie jar file where are the authentication cookies with token stored.
    curl --location --request POST "https://servername.com/docuware/platform/Account/TokenLogOn" \
    --header "Content-Type: application/x-www-form-urlencoded" \
    --header "Accept: application/json" \
    --data-urlencode "Token=PLATFORMGENERATEDTOKEN" \
    --data-urlencode "HostID=CURL_CLIENT_TOKEN" \
    --data-urlencode "LicenseType=PlatformService" \
    --data-urlencode "RememberMe=false" ^
    --cookie "C:\Temp\login.cookies" ^
    --cookie-jar "C:\Temp\login_with_token.cookies"
    
    About Us Contact Imprint Terms Data privacy
    © 2024 DocuWare Corporation powered by DocFX Back to top