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.
Argument | Description |
---|---|
account Account! | The user's account. |
birthday Date | The user's date of birth, as set in their profile and returned as YYYY-MM-DD. |
country_code String | The user's country code. |
created_at Date | When the user profile was created, returned as YYYY-MM-DD. |
join_date Date | The 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 Boolean | Will return true if the user is an Admin; |
is_guest Boolean | Will return true if the user is a guest. |
is_pending Boolean | Will return true if the user didn't confirm their email yet. |
is_view_only Boolean | Will return true if the user is a Viewer. |
location String | The user's location. |
mobile_phone String | The user's mobile phone number. |
name String! | The user's name. |
phone String | The user's phone number. |
photo_original String | Will return the URL of the user's uploaded photo in its original size. |
photo_small String | Will return the URL of the user's uploaded photo in a small size (150x150 px). |
photo_thumb String | Will return the URL of the user's uploaded photo in thumbnail size (100x100 px). |
photo_thumb_small String | Will return the URL of the user's uploaded photo a small thumbnail size (50x50 px). |
photo_tiny String | Will 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 String | The user's timezone identifier. |
title String | The user's title. |
url String! | The user's profile URL. |
utc_hours_diff Int | The user’s UTC hours difference. |
current_language String | The user's language. |
email String! | The user's email. |
enabled Boolean! | Will return true if the user is enabled. |
encrypt_api_token String | This is the user's access token. It can be used for building the board's email address. |
is_verified Boolean | Will return true if the user is verified. |
last_activity Date | The 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!
Updated 5 days ago