GET account

Retrieves the account information for the authorized user. This requires an authorization token.

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

The user's account information.

Account
NameDescriptionTypeAdditional information
UserId

Gets or sets the unique identifier for the user.

integer

None.

Username

Gets or sets the unique username for the user.

string

None.

Contact

Gets or sets the primary contact information for the user.

AccountContact

None.

Roles

Gets or sets the roles associated with a user.

Collection of string

None.

Response Formats

application/json, text/json, text/html

Sample:
{
  "userId": 1,
  "username": "sample string 2",
  "contact": {
    "fullName": "sample string 1",
    "company": "sample string 2",
    "street1": "sample string 3",
    "street2": "sample string 4",
    "city": "sample string 5",
    "state": "sample string 6",
    "postalCode": "sample string 7",
    "telephone": "sample string 8",
    "emailAddress": "sample string 9",
    "country": "sample string 10"
  },
  "roles": [
    "sample string 1",
    "sample string 2"
  ]
}

application/xml, text/xml

Sample:
<Account xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Tricycle.Studio.Api.Catalog.Models">
  <Contact>
    <City>sample string 5</City>
    <Company>sample string 2</Company>
    <Country>sample string 10</Country>
    <EmailAddress>sample string 9</EmailAddress>
    <FullName>sample string 1</FullName>
    <PostalCode>sample string 7</PostalCode>
    <State>sample string 6</State>
    <Street1>sample string 3</Street1>
    <Street2>sample string 4</Street2>
    <Telephone>sample string 8</Telephone>
  </Contact>
  <Roles xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Roles>
  <UserId>1</UserId>
  <Username>sample string 2</Username>
</Account>