@robinpath/monday
0.1.2Node.jsPublicMonday.com module for RobinPath.
Monday.com
Monday.com module for RobinPath.
Package: @robinpath/monday | Category: Project Management | Type: Integration
Authentication
monday.setCredentials "your-credentials"
Call this once at the start of your script before using any other function. Credentials persist for the duration of the script execution.
Use Cases
Use the monday module when you need to:
- listBoards -- Use
monday.listBoardsto perform this operation - getBoard -- Use
monday.getBoardto perform this operation - createBoard -- Use
monday.createBoardto perform this operation - listItems -- Use
monday.listItemsto perform this operation - getItem -- Use
monday.getItemto perform this operation
Quick Reference
| Function | Description | Returns |
|---|---|---|
setCredentials | Configure monday credentials. | object |
listBoards | listBoards | object |
getBoard | getBoard | object |
createBoard | createBoard | object |
listItems | listItems | object |
getItem | getItem | object |
createItem | createItem | object |
updateItem | updateItem | object |
deleteItem | deleteItem | object |
listGroups | listGroups | object |
createGroup | createGroup | object |
listColumns | listColumns | object |
createColumn | createColumn | object |
addUpdate | addUpdate | object |
listUpdates | listUpdates | object |
listWorkspaces | listWorkspaces | object |
createSubitem | createSubitem | object |
moveItemToGroup | moveItemToGroup | object |
archiveItem | archiveItem | object |
Functions
setCredentials
Configure monday credentials.
Module: monday | Returns: object -- API response.
monday.setCredentials
| Parameter | Type | Required | Description |
|---|---|---|---|
apiToken | string | Yes | apiToken |
listBoards
listBoards
Module: monday | Returns: object -- API response.
monday.listBoards
| Parameter | Type | Required | Description |
|---|---|---|---|
input | string | No | Input parameter |
getBoard
getBoard
Module: monday | Returns: object -- API response.
monday.getBoard
| Parameter | Type | Required | Description |
|---|---|---|---|
input | string | No | Input parameter |
createBoard
createBoard
Module: monday | Returns: object -- API response.
monday.createBoard
| Parameter | Type | Required | Description |
|---|---|---|---|
input | string | No | Input parameter |
listItems
listItems
Module: monday | Returns: object -- API response.
monday.listItems
| Parameter | Type | Required | Description |
|---|---|---|---|
input | string | No | Input parameter |
getItem
getItem
Module: monday | Returns: object -- API response.
monday.getItem
| Parameter | Type | Required | Description |
|---|---|---|---|
input | string | No | Input parameter |
createItem
createItem
Module: monday | Returns: object -- API response.
monday.createItem
| Parameter | Type | Required | Description |
|---|---|---|---|
input | string | No | Input parameter |
updateItem
updateItem
Module: monday | Returns: object -- API response.
monday.updateItem
| Parameter | Type | Required | Description |
|---|---|---|---|
input | string | No | Input parameter |
deleteItem
deleteItem
Module: monday | Returns: object -- API response.
monday.deleteItem
| Parameter | Type | Required | Description |
|---|---|---|---|
input | string | No | Input parameter |
listGroups
listGroups
Module: monday | Returns: object -- API response.
monday.listGroups
| Parameter | Type | Required | Description |
|---|---|---|---|
input | string | No | Input parameter |
createGroup
createGroup
Module: monday | Returns: object -- API response.
monday.createGroup
| Parameter | Type | Required | Description |
|---|---|---|---|
input | string | No | Input parameter |
listColumns
listColumns
Module: monday | Returns: object -- API response.
monday.listColumns
| Parameter | Type | Required | Description |
|---|---|---|---|
input | string | No | Input parameter |
createColumn
createColumn
Module: monday | Returns: object -- API response.
monday.createColumn
| Parameter | Type | Required | Description |
|---|---|---|---|
input | string | No | Input parameter |
addUpdate
addUpdate
Module: monday | Returns: object -- API response.
monday.addUpdate
| Parameter | Type | Required | Description |
|---|---|---|---|
input | string | No | Input parameter |
listUpdates
listUpdates
Module: monday | Returns: object -- API response.
monday.listUpdates
| Parameter | Type | Required | Description |
|---|---|---|---|
input | string | No | Input parameter |
listWorkspaces
listWorkspaces
Module: monday | Returns: object -- API response.
monday.listWorkspaces
| Parameter | Type | Required | Description |
|---|---|---|---|
input | string | No | Input parameter |
createSubitem
createSubitem
Module: monday | Returns: object -- API response.
monday.createSubitem
| Parameter | Type | Required | Description |
|---|---|---|---|
input | string | No | Input parameter |
moveItemToGroup
moveItemToGroup
Module: monday | Returns: object -- API response.
monday.moveItemToGroup
| Parameter | Type | Required | Description |
|---|---|---|---|
input | string | No | Input parameter |
archiveItem
archiveItem
Module: monday | Returns: object -- API response.
monday.archiveItem
| Parameter | Type | Required | Description |
|---|---|---|---|
input | string | No | Input parameter |
Error Handling
All functions throw on failure. Common errors:
| Error | Cause |
|---|---|
Monday API error (${res.status}): ${t} | Check the error message for details |
monday.setCredentials requires apiToken. | Check the error message for details |
monday.updateItem requires an ID. | Check the error message for details |
monday.deleteItem requires an ID. | Check the error message for details |
monday.moveItemToGroup requires an ID. | Check the error message for details |
monday.archiveItem requires an ID. | Check the error message for details |
Monday: "..." not configured. Call monday.setCredentials first. | Check the error message for details |
@desc "List boards and validate result"
do
set $result as monday.listBoards
if $result != null
print "Success"
else
print "No result"
end
enddo
Recipes
1. List and iterate Boards
Retrieve all items and loop through them.
@desc "Setup authentication"
do
monday.setCredentials $token
enddo
@desc "List boards and iterate results"
do
set $result as monday.listBoards
each $item in $result
print $item
end
enddo
2. Create a new item with createBoard
Create a new resource and capture the result.
@desc "Setup authentication"
do
monday.setCredentials $token
enddo
@desc "Create board"
do
set $result as monday.createBoard
print "Created: " + $result
enddo
3. Create and update workflow
Create an item and then update it.
@desc "Setup authentication"
do
monday.setCredentials $token
enddo
@desc "Create board and update item"
do
set $created as monday.createBoard
# Update the created item
monday.updateItem
enddo
4. Check before creating
List existing items and only create if needed.
@desc "Setup authentication"
do
monday.setCredentials $token
enddo
@desc "List boards and create board"
do
set $existing as monday.listBoards
if $existing == null
monday.createBoard
print "Item created"
else
print "Item already exists"
end
enddo
5. Multi-step Monday.com workflow
Chain multiple monday operations together.
@desc "Setup authentication"
do
monday.setCredentials $token
enddo
@desc "List boards, get board, and more"
do
set $r_listBoards as monday.listBoards
set $r_getBoard as monday.getBoard
set $r_createBoard as monday.createBoard
print "All operations complete"
enddo
6. Safe listBoards with validation
Check results before proceeding.
@desc "Setup authentication"
do
monday.setCredentials $token
enddo
@desc "List boards and validate result"
do
set $result as monday.listBoards
if $result != null
print "Success: " + $result
else
print "Operation returned no data"
end
enddo
Related Modules
- asana -- Asana module for complementary functionality
- clickup -- ClickUp module for complementary functionality
- jira -- Jira module for complementary functionality
- linear -- Linear module for complementary functionality
- todoist -- Todoist module for complementary functionality
Versions (1)
| Version | Tag | Published |
|---|---|---|
| 0.1.2 | latest | 1 months ago |
Related Modules
rightplace
JS@robinpathv0.1.3
RightPlace integration — 130 functions for projects, WordPress, WooCommerce, email, files, git, spreadsheets, stages, docs, automations via rightplace-cli
asana
JS@robinpathv0.1.2
Asana module for RobinPath.
google-sheets
JS@robinpathv0.1.1
Google Sheets module for RobinPath.
airtable
JS@robinpathv0.1.2
Airtable module for RobinPath.
$ robinpath add @robinpath/monday
