{"_id":"5a60f652792a330012d7216d","category":{"_id":"5a60f64d792a330012d72143","version":"5a60f64d792a330012d72140","project":"54ee19c23749bf0d00c76515","__v":0,"sync":{"url":"","isSync":false},"reference":true,"createdAt":"2015-02-25T20:52:57.796Z","from_sync":false,"order":3,"slug":"user-endpoints","title":"User Endpoints"},"project":"54ee19c23749bf0d00c76515","parentDoc":null,"user":"54ee197f67e09c230091e707","version":{"_id":"5a60f64d792a330012d72140","project":"54ee19c23749bf0d00c76515","__v":2,"createdAt":"2018-01-18T19:32:29.915Z","releaseDate":"2018-01-18T19:32:29.915Z","categories":["5a60f64d792a330012d72141","5a60f64d792a330012d72142","5a60f64d792a330012d72143","5a60f64d792a330012d72144","5a60f64d792a330012d72145","5a60f64d792a330012d72146","5a60f64d792a330012d72147","5a660cc7dc0f1c001c2b5568"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"3.0.0","version":"3"},"__v":12,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-02-25T20:53:47.527Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"examples":{"codes":[{"code":"curl -H \"Content-Type: application/json\" -H \"Authorization: 00000000-0000-0000-0000-000000000000\" https://breezy.hr/public/api/v3/user","language":"curl"}]},"method":"get","results":{"codes":[{"name":"","code":"{ User }","language":"json","status":200},{"code":"{\n    \"error\": {\n        \"type\": \"missingAccessToken\",\n        \"message\": \"access token is null or empty\"\n    }\n}","language":"json","status":400,"name":"Missing Access Token"},{"name":"User Not Found","status":404,"language":"json","code":"{\n    \"error\": {\n        \"type\": \"userNotFound\",\n        \"message\": \"user not found.\"\n    }\n}"},{"status":401,"language":"json","code":"{\n    \"error\": {\n        \"type\": \"invalidAccessToken\",\n        \"message\": \"access token is invalid\"\n    }\n}"},{"code":"{\n    \"error\": {\n        \"type\": \"getUserError\",\n        \"message\": \"there was an unknown error getting user.\"\n    }\n}","language":"json","status":500}]},"settings":"","auth":"required","params":[{"_id":"576002c14715f61700ae854f","ref":"","in":"query","required":false,"desc":"user id to lookup (if blank look up by auth token)","default":"","type":"string","name":"user_id"}],"url":"/v:version/user"},"isReference":true,"order":0,"body":"","excerpt":"Retrieve the authenticated user or another user by id","slug":"user","type":"get","title":"/user"}

get/user

Retrieve the authenticated user or another user by id

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Query Params

user_id:
string
user id to lookup (if blank look up by auth token)

Examples


Result Format


User Information

Try It Out

get
{{ tryResults.results }}
Method{{ tryResults.method }}
Request Headers
{{ tryResults.requestHeaders }}
URL{{ tryResults.url }}
Request Data
{{ tryResults.data }}
Status
Response Headers
{{ tryResults.responseHeaders }}