Get User Info
Get information for the authenticated user.
Endpoint
Method | URL |
---|---|
GET | account |
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 Item | Description | Data Type |
---|---|---|
username | The username for the user. | String |
fullname | The full name of the user. | String |
emailAddress | The email address of the user. | String |
HTTP Status Codes
- 200 OK