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

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 }}