There is an option to query the user details of the user whose API key is being used.

Me queries

Required scope: me:read

You can use me at the root of your query or nest it within another query. This is the fastest way to query for the user details of the connected user.

query {
  me {
    is_guest
    created_at
    name
    id
    }
}
let query = "query { me { is_guest created_at name id}}";

fetch ("https://api.monday.com/v2", {
  method: 'post',
  headers: {
    'Content-Type': 'application/json',
    'Authorization' : 'YOUR_API_KEY_HERE'
   },
   body: JSON.stringify({
     query : query
   })
  })
   .then(res => res.json())
   .then(res => console.log(JSON.stringify(res, null, 2)));

Fields

The me() object has the same fields as the users object.

ArgumentDescription
account Account!The user's account.
birthday DateThe user's date of birth, as set in their profile and returned as YYYY-MM-DD.
country_code StringThe user's country code.
created_at DateWhen the user profile was created, returned as YYYY-MM-DD.
join_date DateThe date the user joined the organization and returned as YYYY-MM-DD
email String!The user's email.
enabled Boolean!Will return true if the user is enabled.
id Int!The user's unique identifier.
is_admin BooleanWill return true if the user is an Admin;
is_guest BooleanWill return true if the user is a guest.
is_pending BooleanWill return true if the user didn't confirm their email yet.
is_view_only BooleanWill return true if the user is a Viewer.
location StringThe user's location.
mobile_phone StringThe user's mobile phone number.
name String!The user's name.
phone StringThe user's phone number.
photo_original StringWill return the URL of the user's uploaded photo in its original size.
photo_small StringWill return the URL of the user's uploaded photo in a small size (150x150 px).
photo_thumb StringWill return the URL of the user's uploaded photo in thumbnail size (100x100 px).
photo_thumb_small StringWill return the URL of the user's uploaded photo a small thumbnail size (50x50 px).
photo_tiny StringWill return the URL of the user's uploaded photo in tiny size (30x30).
teams [Team]The teams the user is a member in.

ids [Int]
A list of the teams' identifiers to reference.
time_zone_identifier StringThe user's timezone identifier.
title StringThe user's title.
url String!The user's profile URL.
utc_hours_diff IntThe user’s UTC hours difference.
current_language StringThe user's language.
email String!The user's email.
enabled Boolean!Will return true if the user is enabled.
encrypt_api_token StringThis is the user's access token. It can be used for building the board's email address.
is_verified BooleanWill return true if the user is verified.
last_activity DateThe last date and time the user was active.

📘

Have questions?

Join our developer community! You can share your questions and learn from fellow users and monday.com product experts.

Don’t forget to search before opening a new topic!