Transware API users must first use the Authentication API to generate a Bearer Token prior to making any requests for invoice, claims, or rating data. The Authentication API will validate the supplied credentials and if valid, create a token that should be passed with all subsequent requests to Transware. The token will be used to identify the requesting user and constrain the available data and features according to the configuration of the user.
Bearer tokens created by the Authentication API are valid for 8 hours, but new tokens can be generated at any time.
| HTTP Method | URL | Authentication Type |
| Post | /api/token | None |
Request Parameters
| Name | Type | Required | Description |
| userName | String | Required | The Transware username of the user requesting a token |
| password | String | Required | The Transware password for the user requesting a token |
Response Parameters
| Name | Type | Description |
| AccessToken | String | The 265-character unique Access Token for the user |
Sample Request
{
"userName": "<username>",
"password": "<password>"
}
Sample Response
{
"AccessToken": "<265-character token string>"
}
