GET api/Account/Token/Impersonate/{companyId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
companyId

globally unique identifier

Required

Body Parameters

None.

Response Information

Resource Description

TokenResult
NameDescriptionTypeAdditional information
AccessToken

string

None.

TokenType

string

None.

ExpiresIn

unsigned integer

None.

UserName

string

None.

Issued

date

None.

Expires

date

None.

Response Formats

application/json, text/json

Sample:
{
  "access_token": "sample string 1",
  "token_type": "sample string 2",
  "expires_in": 3,
  "userName": "sample string 4",
  ".issued": "2022-05-21T08:34:20.1723634+00:00",
  ".expires": "2022-05-21T08:34:20.1723634+00:00"
}

application/xml, text/xml

Sample:
<TokenResult xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <AccessToken>sample string 1</AccessToken>
  <TokenType>sample string 2</TokenType>
  <ExpiresIn>3</ExpiresIn>
  <UserName>sample string 4</UserName>
  <Issued />
  <Expires />
</TokenResult>