Required scope: me:read
There is an option to query the user details of the user whose API key is being used.
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 (same as the Users 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)));
curl --location --request POST 'https://api.monday.com/v2' \
--header 'Authorization: YourSuperSecretApiKey' \
--header 'Content-Type: application/json' \
--header 'Cookie: __cfduid=d4512e647bd3dd90706f5673d6041f7c51618840981' \
--data-raw '{"query": "query { me { is_guest created_at name id}}"}'
NOTE:
The
me()
field has the same fields as theusers()
field. You can find more information about this field here.
Arguments
Argument | Description |
---|---|
account | The user's account. |
birthday | The user's date of birth, as set in their profile and returned as YYYY-MM-DD. |
country_code | The user's country code. |
created_at | When the user profile was created, returned as YYYY-MM-DD. |
join_date | The date the user joined the organization and returned as YYYY-MM-DD |
email | The user's email. |
enabled | Will return |
id | The user's unique identifier. |
is_admin | Will return true if the user is an Admin; |
is_guest | Will return |
is_pending | Will return |
is_view_only | Will return |
location | The user's location. |
mobile_phone | The user's mobile phone number. |
name | The user's name. |
phone | The user's phone number. |
photo_original | Will return the URL of the user's uploaded photo in its original size. |
photo_small | Will return the URL of the user's uploaded photo in a small size (150x150 px). |
photo_thumb | Will return the URL of the user's uploaded photo in thumbnail size (100x100 px). |
photo_thumb_small | Will return the URL of the user's uploaded photo a small thumbnail size (50x50 px). |
photo_tiny | Will return the URL of the user's uploaded photo in tiny size (30x30). |
teams | The teams the user is a member in. ids |
time_zone_identifier | The user's timezone identifier. |
title | The user's title. |
url | The user's profile URL. |
utc_hours_diff | The user’s UTC hours difference. |
Do you 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 7 days ago