How to Find Your User ID via the v1 API

Overview

For the curious, you can find your user id under "analytics_id" in the /me endpoint of the v1 API.

To do this, you must first login to your CircleCI account. After that, if you visit the following link in browser address, you will see the following output (see example).

Example:

https://circleci.com/api/v1.1/me

{
  "enrolled_betas" : [ ],
  "in_beta_program" : false,
  "selected_email" : "imanemail@youremail.com",
  "avatar_url" : "https://avatars.githubusercontent.com/u/124843?v=4",
  "basic_email_prefs" : "smart",
  "sign_in_count" : 6,
  "github_oauth_scopes" : [ "user:email", "repo" ],
  "email_authentication" : null,
  "analytics_id" : "154f5od2-ea78-5de5-bc25-6883746c20fz",

If you are not logged in, you will see the following error: 

{
  "message" : "You must log in first."
}

Additional Resources

Was this article helpful?
0 out of 1 found this helpful

Comments

0 comments

Please sign in to leave a comment.