Required scope: me:read

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

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 the users() field. You can find more information about this field here.

Arguments

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.


Did this page help you?