added
New SDK context field: `mondayCodeHostingURL`
April 28th, 2025
Apps hosted on monday code can access their region-based hosting URL directly from the app context using the SDK.
Call monday.listen('context')
or monday.get('context')
, and check for the new mondayCodeHostingUrl
field in the returned context:
{
"theme": "dark", // or "light" or "black"
"subscription": { // app subscription object for marketplace app
"plan_id": "5",
"renewal_date": "2023-07-10T00:00:00+00:00",
"is_trial": false,
"billing_period": "monthly",
"days_left": 14,
"pricing_version": 5,
"max_units": 100 // maximum number of seats allowed for seat-based plans, null for feature-based plans
},
"account": {
"id": "654646" // unique account ID
},
"user": {
"id": "65464", // unique user ID
"isAdmin": false, // or true
"isGuest": false, // or true
"isViewOnly": false, // or true
"countryCode": "IL", // user's two-letter country code
"currentLanguage": "en", // user's default language
"timeFormat": "24H", // or "12H"
"timeZoneOffset": 3 // time zone offset based on GMT
},
"region": "use1", // availability zone ID
"productKind": "core",
"app": {
"id": 64541082, // unique app ID
"clientId": "d5be5bbc7re646g76b9988a6ad64d780" // unique client ID
},
"appVersion": {
"id": 6458043, // unique app version ID
"name": "New App", // name of the app's current version
"status": "draft", // or "live"
"type": "major", // or "minor"
"versionData": {
"major": 1, // version number
"minor": 0, // version number
"patch": 0, // patch number
"type": "major" // or "minor"
},
"mondayCodeHostingUrl": "https://b325b-service-25854030-b5796b91.us.monday.app" // used only for monday code apps; specifies the region-based hosting URL for server-side code
},
"workspaceId": 1350535, // unique workspace ID
"boardId": 6456619824, // unique board ID
"boardIds": [
6454619824 // list of connected boards
],
"itemId": 64564519872, // unique item ID
"instanceId": 65461164, // unique instance ID for the feature on the board
"instanceType": "item_view" // feature type
}