GET api/Login?username={username}&password={password}

Login to the API to create a Session Token, the returned Token must be supplied as a Basic Authentication in the headers of the general API functions. Login only needs to be called once every 24-hours. Calling Login multiple times will generate a new Token each time.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
username

Username supplied by PureWay when you signed up to the service.

string

Required

password

Password supplied by PureWay when you signed up to the service.

string

Required

Body Parameters

None.

Response Information

Resource Description

Bearer Token

string

Response 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>