Add the option to find board email address via API

Converted to a Feature Request

You can email updates to an item by sending to the email here:

Similarly, you can create items in a board by email using the email address found here:

Both of these should be exposed in the GraphQL API, but I can only find the one for items:

query get_board_items($ids: [ID!]!) {
  account {
    slug
  }
  boards(ids: $ids) {
    id
    # email # THIS IS INVALID !!!
    items_page (limit: 1)  {
      items {
        id
        email
      }
    }
  }
  me {
    id
  }
}

With variables:

{
  "ids": [
    "1870827708"
  ]
}

Produces:

{
  "data": {
    "account": {
      "slug": "dsapps-develop"
    },
    "boards": [
      {
        "id": "1870827708",
        "items_page": {
          "items": [
            {
              "id": "1941585297",
              "email": "dsapps_pulse_194XXX97_943XXX7f12839c1c53ef__60XXX4@euc1.mx.monday.com"
            }
          ]
        }
      }
    ],
    "me": {
      "id": "60XXX4"
    }
  },
  ...
}

But the email property is not available in the boards object.

:backhand_index_pointing_right: How can I get the email for the board?

If it’s not available in the API, perhaps it can be constructed from something?

It appears that the email address is in the following format:

`${slug}_board_${boardId}_${someGuid}__${myUserId}@${region}.mx.monday.com`

We already have slug, boardId, & myUserId.

Perhaps we can get the missing elements from the API?

  • someGuid - no idea what this is
  • region - where you’re hostedau, euc, or us

Cc: @dipro please convert to a feature request if not currently possible

So right now its exposed only on the item level and not on board level (probably will be added in the future)
if it helps, you can build the second address since there is a template for it -
board-[boardId]@[domain].[region]. monday.com
eventually it looks like that-
board-7876531672@monday.us.monday.com
(this is the address that can be use by account members only. unlike the first address that anyone can send to it on behalf of the user)

Hope it helps,
Omer

2 Likes

@OmerK thank you for the details.

Also does domain mean account slug???

Could you convert this into a feature request please?

yes:) and converted

1 Like

@OmerK Just one more thing. Is region in the following format - au, eu, us?

So that would give:

board-7876531672@myslug.au.monday.com
board-7876531672@myslug.eu.monday.com
board-7876531672@myslug.us.monday.com

…because for EU hosted accounts, we currently have dsapps_pulse_194XXX97_943XXX7f12839c1c53ef__60XXX4@euc1.mx.monday.com

That’s euc1 rather than eu - which is available by decoding the shortLivedToken and using the rgn property from within:

{
  "shortLived": true,
  "uid": <number>,
  "actid": <number>,
  "aid": <number>,
  "aai": <number>,
  "rgn": "euc1",         // This value here
  "exp": <number>,
  "iat": <number>
}