Get User Info

Get information for the authenticated user.

Endpoint

MethodURL
GETaccount

Get information for the authenticated user.

Parameters

Path parameters

None

Query string parameters

None



Sample Request

curl --location --request GET 'http://<servername>/snaponline/api/account' \
--header 'X-USERNAME: {USERNAME}' \
--header 'X-API-KEY: {APIKEY}'\
--header 'X-VERSION: 2.0'

(In the above code, replace {APIKEY} with your actual API key and {USERNAME} with your actual username.)

Sample Response

200 OK with body:

{
 "username": "jbloggs@snapsurveys.com", 
 "fullname": "Joe Bloggs",
 "emailAddress": "jbloggs@snapsurveys.com"
}

Response Definitions

Response ItemDescriptionData Type
usernameThe username for the user.String
fullnameThe full name of the user.String
emailAddressThe email address of the user.String

HTTP Status Codes

  • 200 OK

Other API calls

Contents