POST tokens
DEPRECATED - for new development, please use the Authenticate request which returns a valid JSON response containing a token, issue date, and expiry date. This endpoint will remain for backwards compatibility. It returns a JWT token as a string wrapped in double quotes (").
Request Information
URI Parameters
None.
Body Parameters
TokenRequestVMName | Description | Type | Additional information |
---|---|---|---|
UserName |
A FlowWorks user name. |
string |
None. |
Password |
The password for the FlowWorks user. |
string |
None. |
Request Formats
application/json, text/json
Sample:
{ "UserName": "sample string 1", "Password": "sample string 2" }
application/xml, text/xml
Sample:
<TokenRequestVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FW.WebApi2.ViewModels"> <Password>sample string 2</Password> <UserName>sample string 1</UserName> </TokenRequestVM>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
A string containing the JWT token.
stringResponse Formats
application/json, text/json
Sample:
"sample string 1"
application/xml, text/xml
Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>