Skip to main content

Hello, I would like to know how I can construct a url to a board from the board id.


My app queries monday.com and allows the user to select the board using the monday.com API. At the moment this is the query we are using:


            query: `query 
{ boards (${options || ''})
{
name
description
id
workspace_id
}
}`,

Since I have the board_id how can I construct a url so that I can link the user to the specific board?


I have tried https://monday.com/boards/${board_id}


but this generates a broken link

@pasiem,


You have to add your account portion to the beginning, e.g.:


https://my-company.monday.com/boards/123456789

Hi @pasiem,


@JCorrell is indeed correct. You will need your monday.com account name to put in front of “.monday.com” in order for it to work.


@pasiem


Great question!


I wanted to also jump in on the fun here and clarify that you could use another API query to get the account slug and construct the URL using the board_id and the slug. Here’s a query you could use to get the account slug/URL:


query { 
boards {
owner {
account {
slug
}
}
}
}

If my full account URL is “example.monday.com”, the result of the query above would be “example”. So you could use:


https://${slug}.monday.com/boards/${boardId}


To construct the complete URL with the board ID included. Happy building!


-Alex


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.