GET {opco}/api/v1/Token?username={username}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
username | string |
Required |
|
opco | string |
None. |
Body Parameters
None.
Response Information
Resource Description
TokenDTOName | Description | Type | Additional information |
---|---|---|---|
Token | string |
None. |
|
ValidUntil | date |
None. |
|
HoursValidFor | integer |
None. |
|
GLToken | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "token": "sample string 1", "validUntil": "2025-04-03T02:17:43.1563526-12:00", "hoursValidFor": 2, "glToken": "sample string 3" }
application/xml, text/xml
Sample:
<TokenDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ExternalAPI.Models.Token.v1"> <GLToken>sample string 3</GLToken> <HoursValidFor>2</HoursValidFor> <Token>sample string 1</Token> </TokenDTO>