{"id":22722,"date":"2025-04-17T13:47:48","date_gmt":"2025-04-17T13:47:48","guid":{"rendered":"https:\/\/clockify.me\/help\/?p=22722"},"modified":"2026-01-16T12:53:26","modified_gmt":"2026-01-16T12:53:26","slug":"how-to-find-userid-in-the-api","status":"publish","type":"post","link":"https:\/\/clockify.me\/help\/troubleshooting\/how-to-find-userid-in-the-api","title":{"rendered":"How to find userID via API"},"content":{"rendered":"\n<p class=\"translation-block\">To retrieve the <strong>userID<\/strong> of a user, use the following endpoint:<\/p>\n\n\n\n<p><strong>Endpoint<\/strong>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code><a href=\"https:\/\/docs.clockify.me\/#tag\/User\/operation\/getLoggedUser\">GET<\/a><\/code><a href=\"https:\/\/docs.clockify.me\/#tag\/User\/operation\/getLoggedUser\">https:\/\/api.clockify.me\/api\/v1\/user<\/a><\/code><\/pre>\n\n\n\n<p class=\"note\">This endpoint returns only the currently logged-in user.&nbsp;<\/p>\n\n\n\n<p class=\"translation-block\">To get all users or a specific user&#8217;s ID, use the <code>\/v1\/users<\/code> endpoint to fetch the full user list from the workspace.<\/p>\n","protected":false},"excerpt":{"rendered":"To retrieve the userID of a user, use the following endpoint: Endpoint: This end&#8230;","protected":false},"author":25,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_helpful_status":1,"_searchwp_excluded":"","footnotes":""},"categories":[75],"tags":[],"class_list":["post-22722","post","type-post","status-publish","format-standard","hentry","category-api-response"],"acf":[],"featured_image_src":null,"author_info":{"display_name":"tamara radijevac","author_link":"https:\/\/clockify.me\/help\/author\/tamara-radijevac"},"_links":{"self":[{"href":"https:\/\/clockify.me\/help\/wp-json\/wp\/v2\/posts\/22722","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/clockify.me\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/clockify.me\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/clockify.me\/help\/wp-json\/wp\/v2\/users\/25"}],"replies":[{"embeddable":true,"href":"https:\/\/clockify.me\/help\/wp-json\/wp\/v2\/comments?post=22722"}],"version-history":[{"count":9,"href":"https:\/\/clockify.me\/help\/wp-json\/wp\/v2\/posts\/22722\/revisions"}],"predecessor-version":[{"id":23040,"href":"https:\/\/clockify.me\/help\/wp-json\/wp\/v2\/posts\/22722\/revisions\/23040"}],"wp:attachment":[{"href":"https:\/\/clockify.me\/help\/wp-json\/wp\/v2\/media?parent=22722"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/clockify.me\/help\/wp-json\/wp\/v2\/categories?post=22722"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/clockify.me\/help\/wp-json\/wp\/v2\/tags?post=22722"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}