Skip to main content

Is there a way to read the contents of docs from monday doc column within a board using the api?

  • July 7, 2024
  • 1 reply
  • 86 views

I want to fetch the contents of the docs in the monday doc column using the api. Is it possible? Currently only able to fetch the workdocs in a workspace.

1 reply

Matias.Monday
Forum|alt.badge.img
  • monday.com Team Member
  • July 8, 2024

Hello there @manishaghosh,

When you enter your document from the doc column, you will see in the URL something like this:

“https: //yourdomain.monday.com/boards/1111111/pulses/22222222?doc_id=1234567890

If you use that last ID (the doc_id), then you can query for the content of the blocks in your document:

{
  docs(object_ids: [1234567890]) {
    id
    blocks {
      content
      id
      type
    }
  }
}

I hope that helps!

Cheers,
Matias