{"openapi":"3.0.0","info":{"title":"accounts api","version":"1.0.0"},"servers":[{"url":"https://api.tomorrow.io"}],"paths":{"/v4/users/{userId}":{"get":{"summary":"Gets an user by id","parameters":[{"name":"userId","in":"path","required":true,"description":"id of the user","schema":{"$ref":"#/paths/~1v4~1users~1%7BuserId%7D~1move/post/parameters/0/schema"}}],"responses":{"200":{"description":"user response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"user":{"$ref":"#/paths/~1v4~1users/post/responses/201/content/application~1json/schema/properties/data/properties/user"}},"required":["user"]}},"required":["data"]}}}},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}},"put":{"summary":"Updates a user","parameters":[{"$ref":"#/paths/~1v4~1users~1%7BuserId%7D/get/parameters/0"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users~1me/put/requestBody/content/application~1json/schema"}}}},"responses":{"200":{"description":"user response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"user":{"$ref":"#/paths/~1v4~1users/post/responses/201/content/application~1json/schema/properties/data/properties/user"}}}}}}}},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}},"delete":{"summary":"Delete a user","parameters":[{"$ref":"#/paths/~1v4~1users~1%7BuserId%7D/get/parameters/0"}],"responses":{"204":{"description":"succesfully deleted user"},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}}},"/v4/users/find":{"get":{"summary":"Query all users","parameters":[{"name":"term","in":"query","required":true,"description":"search term","schema":{"type":"string","format":"regex"}},{"name":"limit","in":"query","required":false,"schema":{"type":"string","default":100}}],"responses":{"200":{"description":"users response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"users":{"type":"array","items":{"$ref":"#/paths/~1v4~1users/post/responses/201/content/application~1json/schema/properties/data/properties/user"}}},"required":["users"]}},"required":["data"]}}}},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}}},"/v4/users/count":{"get":{"summary":"Counts the active non-deleted users of the account","responses":{"200":{"description":"count response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"count":{"type":"integer"}}}}}}}},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}}},"/v4/users/bulk":{"get":{"summary":"Get users in a bulk","parameters":[{"name":"ids","description":"ids of users to fetch","in":"query","required":true,"schema":{"type":"array","items":{"$ref":"#/paths/~1v4~1users~1%7BuserId%7D~1move/post/parameters/0/schema"},"minItems":1,"maxItems":50}}],"responses":{"200":{"description":"users bulk response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"users":{"type":"array","items":{"$ref":"#/paths/~1v4~1users/post/responses/201/content/application~1json/schema/properties/data/properties/user"}}},"required":["users"]}},"required":["data"]}}}},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}}},"/v4/users":{"get":{"summary":"List all users in the account","responses":{"200":{"description":"users response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"users":{"type":"array","items":{"$ref":"#/paths/~1v4~1users/post/responses/201/content/application~1json/schema/properties/data/properties/user"}}},"required":["users"]}},"required":["data"]}}}},"default":{"description":"error response","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"type":{"type":"string"}},"required":["code","message","type"]}}}}}},"post":{"summary":"Create a lite user","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"phoneNumber":{"type":"string","maxLength":200},"firstName":{"type":"string","minLength":1,"maxLength":200},"lastName":{"type":"string","minLength":1,"maxLength":200},"email":{"type":"string","minLength":1,"maxLength":200},"groupIds":{"type":"array","maxItems":100,"items":{"$ref":"#/paths/~1v4~1users~1%7BuserId%7D~1move/post/parameters/0/schema"}}},"required":["phoneNumber","firstName","lastName","email"],"additionalProperties":false}}}},"responses":{"201":{"description":"Lite user created successfully","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"user":{"allOf":[{"$ref":"#/paths/~1v4~1users~1me~1devices~1%7BdeviceId%7D/post/responses/200/content/application~1json/schema/properties/data/properties/device/allOf/0"},{"type":"object","properties":{"id":{"$ref":"#/paths/~1v4~1users~1%7BuserId%7D~1move/post/parameters/0/schema"},"firstName":{"type":"string"},"lastName":{"type":"string"},"accountId":{"$ref":"#/paths/~1v4~1users~1%7BuserId%7D~1move/post/parameters/0/schema"},"email":{"type":"string"},"phoneNumber":{"type":"string","nullable":true},"isActive":{"type":"boolean"},"features":{"$ref":"#/paths/~1v4~1users~1%7BuserId%7D~1features/post/requestBody/content/application~1json/schema/properties/features"},"settings":{"$ref":"#/paths/~1v4~1users~1me~1settings/put/requestBody/content/application~1json/schema"},"appState":{"$ref":"#/paths/~1v4~1users~1me~1app-state/put/requestBody/content/application~1json/schema"},"role":{"$ref":"#/paths/~1v4~1users~1%7BuserId%7D~1role/put/requestBody/content/application~1json/schema/properties/role"},"expiration":{"type":"string","format":"date-time"},"onboardingStatus":{"type":"string","enum":["started","completed"]},"jobTitle":{"type":"string","minLength":1,"maxLength":50},"metaData":{"nullable":true,"$ref":"#/paths/~1v4~1users~1me~1metadata/put/requestBody/content/application~1json/schema"}}}],"required":["id","firstName","lastName","accountId","email","isActive","role"]}},"required":["user"]}},"required":["data"]}}}},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}}},"/v4/users/me":{"get":{"summary":"Get self","responses":{"200":{"description":"user response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"user":{"$ref":"#/paths/~1v4~1users/post/responses/201/content/application~1json/schema/properties/data/properties/user"}},"required":["user"]}},"required":["data"]}}}},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}},"put":{"summary":"Updates self user","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string"},"phoneNumber":{"type":"string","nullable":true,"maxLength":200},"firstName":{"type":"string","minLength":1,"maxLength":200},"lastName":{"type":"string","minLength":1,"maxLength":200},"jobTitle":{"type":"string","minLength":1,"maxLength":50}},"additionalProperties":false,"minProperties":1}}}},"responses":{"200":{"description":"user response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"user":{"$ref":"#/paths/~1v4~1users/post/responses/201/content/application~1json/schema/properties/data/properties/user"}}}}}}}},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}}},"/v4/users/me/metadata":{"get":{"summary":"Get user metadata","responses":{"200":{"description":"metadata response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"metaData":{"$ref":"#/paths/~1v4~1users~1me~1metadata/put/requestBody/content/application~1json/schema"}}}}}}}},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}},"put":{"summary":"Updates user metadata","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","nullable":true,"additionalProperties":false,"properties":{"hideGaleOnboarding":{"type":"boolean"}}}}}},"responses":{"200":{"description":"metadata response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"metaData":{"$ref":"#/paths/~1v4~1users~1me~1metadata/put/requestBody/content/application~1json/schema"}}}}}}}},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}}},"/v4/users/me/mobile/push-notifications-settings":{"post":{"summary":"Updates self mobile push notifications settings","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"isEnabled":{"type":"boolean"}},"required":["isEnabled"]}}}},"responses":{"200":{"description":"settings response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"settings":{"$ref":"#/paths/~1v4~1users~1me~1settings/put/requestBody/content/application~1json/schema"}}}}}}}},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}}},"/v4/users/{userId}/activate":{"post":{"summary":"Activates a user","parameters":[{"$ref":"#/paths/~1v4~1users~1%7BuserId%7D/get/parameters/0"}],"responses":{"200":{"description":"user response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"user":{"$ref":"#/paths/~1v4~1users/post/responses/201/content/application~1json/schema/properties/data/properties/user"}},"required":["user"]}},"required":["data"]}}}},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}}},"/v4/users/{userId}/deactivate":{"post":{"summary":"deactivates a user","parameters":[{"$ref":"#/paths/~1v4~1users~1%7BuserId%7D/get/parameters/0"}],"responses":{"200":{"description":"user response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"user":{"$ref":"#/paths/~1v4~1users/post/responses/201/content/application~1json/schema/properties/data/properties/user"}},"required":["user"]}},"required":["data"]}}}},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}}},"/v4/users/{userId}/devices":{"get":{"summary":"Get devices of a specific user","parameters":[{"$ref":"#/paths/~1v4~1users~1%7BuserId%7D/get/parameters/0"}],"responses":{"200":{"description":"devices response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"devices":{"type":"array","items":{"$ref":"#/paths/~1v4~1users~1me~1devices~1%7BdeviceId%7D/post/responses/200/content/application~1json/schema/properties/data/properties/device"}}},"required":["devices"]}},"required":["data"]}}}},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}}},"/v4/users/me/devices":{"get":{"summary":"Get self devices","parameters":[{"name":"updatedSince","in":"query","required":false,"description":"earliest update date","schema":{"type":"string"}}],"responses":{"200":{"description":"devices response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"devices":{"type":"array","items":{"$ref":"#/paths/~1v4~1users~1me~1devices~1%7BdeviceId%7D/post/responses/200/content/application~1json/schema/properties/data/properties/device"}}},"required":["devices"]}},"required":["data"]}}}},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}}},"/v4/users/me/devices/{deviceId}":{"delete":{"summary":"Delete user device by deviceId","parameters":[{"name":"deviceId","in":"path","required":true,"description":"ID of the device","schema":{"type":"string"}}],"responses":{"204":{"description":"succesfully deleted device"},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}},"post":{"summary":"Upserts a device","parameters":[{"name":"deviceId","in":"path","required":true,"description":"ID of the device","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"fcmPushToken":{"type":"string"},"platform":{"type":"string","enum":["ANDROID","IOS"]},"appVersion":{"type":"string"},"iosPushToken":{"type":"string"}}}}}},"responses":{"200":{"description":"device response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"device":{"allOf":[{"type":"object","properties":{"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}},{"type":"object","properties":{"id":{"type":"string"},"fcmPushToken":{"type":"string"},"platform":{"type":"string","enum":["ANDROID","IOS"]},"appVersion":{"type":"string"},"iosPushToken":{"type":"string"}}}]}}}}}}}},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}}},"/v4/users/{userId}/settings":{"put":{"summary":"Updates user settings","parameters":[{"$ref":"#/paths/~1v4~1users~1%7BuserId%7D/get/parameters/0"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users~1me~1settings/put/requestBody/content/application~1json/schema"}}}},"responses":{"200":{"description":"settings response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"settings":{"$ref":"#/paths/~1v4~1users~1me~1settings/put/requestBody/content/application~1json/schema"}}}}}}}},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}}},"/v4/users/{userId}/role":{"put":{"summary":"Updates user role","parameters":[{"$ref":"#/paths/~1v4~1users~1%7BuserId%7D/get/parameters/0"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"role":{"type":"string","enum":["account-admin","collaborator","lite-user","root","editor","tomorrow-employee","account-manager","developer"]}}}}}},"responses":{"200":{"description":"role response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"role":{"$ref":"#/paths/~1v4~1users~1%7BuserId%7D~1role/put/requestBody/content/application~1json/schema/properties/role"}}}}}}}},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}}},"/v4/users/me/settings":{"put":{"summary":"Updates self settings","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"units":{"type":"object","properties":{"temperature":{"type":"string","enum":["C","F"]},"speed":{"type":"string","enum":["mph","kph","m/s","m/hr","knots","beaufort"]},"pressure":{"type":"string","enum":["hPa","inHg"]},"distance":{"type":"string","enum":["km","mi"]},"lightningDensity":{"type":"string","enum":["f/km2/5min","f/mi2/5min"]},"flowRate":{"type":"string","enum":["m3/s","ft3/s"]},"cloudHeight":{"type":"string","enum":["ft","m"]},"depth":{"type":"string","enum":["in","cm"]},"precipitationIntensity":{"type":"string","enum":["mm/hr","in/hr"]},"irradiance":{"type":"string","enum":["w/sqm","btu/f2","w/m2"]},"lowLevelAltitude":{"type":"string","enum":["ft","m"]}}},"windDirectionFormat":{"type":"string","enum":["degrees","cardinal","arrows"]},"locationDisplayFormat":{"type":"string","enum":["ADDRESS","DD","DMS","MGRS"]},"timeFormat":{"type":"string","enum":["12h","24h"]},"timezoneAuto":{"type":"boolean"},"notificationsMuted":{"type":"object","properties":{"email":{"type":"boolean"},"sms":{"type":"boolean"},"pushNotification":{"type":"boolean"},"inAppNotification":{"type":"boolean"},"whatsapp":{"type":"boolean"},"reportsEmail":{"type":"boolean"},"dashboardDigestEmail":{"type":"boolean"}}},"notificationsTypes":{"$ref":"#/paths/~1v4~1accounts~1%7BaccountId%7D~1users~1notifications/post/requestBody/content/application~1json/schema/properties/notificationsTypes"},"timezone":{"type":"string"},"isIgnoreNotificationsSchedule":{"type":"boolean"}}}}}},"responses":{"200":{"description":"settings response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"settings":{"$ref":"#/paths/~1v4~1users~1me~1settings/put/requestBody/content/application~1json/schema"}}}}}}}},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}}},"/v4/users/me/app-state":{"put":{"summary":"Updates self application state","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","nullable":true,"additionalProperties":false,"properties":{"timelineExpansion":{"type":"string","enum":["MINIMIZED","MAXIMIZED"]},"timelineMode":{"type":"string"},"timeframeMode":{"type":"string","enum":["LAST_WEEK","LAST_WEEK_MINUTELY","YESTERDAY","YESTERDAY_MINUTELY","NOW","TODAY","TOMORROW","THIS_WEEK","NEXT_WEEK","ALL"]},"timelineMetarTafTab":{"type":"string","enum":["METAR_RAW","METAR_SUMMARY","TAF"]},"isLayersMenuCollapsed":{"type":"boolean"},"flightsFilter":{"type":"object","properties":{"from":{"type":"string"},"to":{"type":"string"},"airline":{"type":"string"}}},"location":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"geometry":{"description":"GeoJson geometry","oneOf":[{"type":"object","description":"GeoJSon Point geometry","externalDocs":{"url":"http://geojson.org/geojson-spec.html#id2"},"properties":{"type":{"type":"string","enum":["Point"]},"coordinates":{"type":"array","items":{"type":"number"},"minItems":2,"maxItems":2}},"required":["type","coordinates"]},{"type":"object","description":"GeoJson polygon geometry","externalDocs":{"url":"http://geojson.org/geojson-spec.html#id4"},"properties":{"type":{"type":"string","enum":["Polygon"]},"coordinates":{"type":"array","minItems":1,"items":{"type":"array","minItems":4,"items":{"$ref":"#/paths/~1v4~1users/get/responses/200/content/application~1json/schema/properties/data/properties/users/items/allOf/1/properties/appState/properties/location/properties/geometry/oneOf/0/properties/coordinates"}}}},"required":["type","coordinates"]},{"type":"object","description":"GeoJSon LineString geometry","externalDocs":{"url":"http://geojson.org/geojson-spec.html#id3"},"properties":{"type":{"type":"string","enum":["LineString"]},"coordinates":{"type":"array","minItems":2,"items":{"oneOf":[{"$ref":"#/paths/~1v4~1users/get/responses/200/content/application~1json/schema/properties/data/properties/users/items/allOf/1/properties/appState/properties/location/properties/geometry/oneOf/0/properties/coordinates"},{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3}]}}},"required":["type","coordinates"]}],"discriminator":{"propertyName":"type"},"required":["type"]}}},"layers":{},"mapMode":{"type":"string","enum":["LIGHT","DARK","SATELLITE"]},"colorTheme":{"type":"string","enum":["light","classic","dark"]},"aggregationsSuffix":{"type":"string","enum":["Min","Max","Avg",null],"nullable":true},"insightInvestigateAggregationsSuffix":{"type":"string","enum":["Min","Max","Avg",null],"nullable":true},"selectedTier":{"type":"string","enum":["CORE","PREMIUM","CUSTOM_TOP_MODELS","aifs","hrrr","ecmwf","excarta","excarta_beta","focus","cbam","cbam_il_1km","cbam_il","cbam_east_africa","cbam_latam","cbam_ph","cbam_mx","bmkg"]},"menuItemKey":{"type":"string","nullable":true},"isProbabilisticChart":{"type":"boolean"},"lastSeenLatestReleases":{"type":"string","format":"date-time","nullable":true},"viewPort":{"type":"object","properties":{"zoom":{"type":"number"},"pitch":{"type":"number"},"lon":{"type":"number"},"lat":{"type":"number"},"bearing":{"type":"number"}}},"selectedTimelineSetup":{"type":"object","properties":{"layers":{"type":"array","items":{"type":"string"}},"setupId":{"type":"string"},"name":{"type":"string"}}},"selectedLayerPerSetupMap":{},"timelineHeight":{"type":"number","nullable":true},"dashboardsSortingMethod":{"type":"string","enum":["priority","calendar-events","a-z","z-a"]},"timelineLayersVisibility":{"type":"boolean"},"selectedView":{"type":"string","nullable":true},"isLegendOpen":{"type":"boolean"},"isSsoUserDetailsUpdated":{"type":"boolean"},"isShowMapHoverValue":{"type":"boolean"},"timelineWeatherMode":{"type":"string","enum":["CHART","SIMPLE"]},"isShowSentinelLocations":{"type":"boolean"},"recentSelectedLocationsIds":{"type":"array","items":{"type":"string"},"maxItems":5},"externalEvents":{"type":"object","properties":{"filters":{"type":"object","properties":{"externalEventCustomAirlines":{"type":"array","items":{"type":"string"}},"externalEventCustomArrivalAirports":{"type":"array","items":{"type":"string"}},"externalEventCustomDepartureAirports":{"type":"array","items":{"type":"string"}},"externalEventCustomFlightNumbers":{"type":"array","items":{"type":"string"}}}}}},"dashboards":{"type":"object","nullable":true,"properties":{"selectorsValues":{"type":"object","additionalProperties":{"type":"object","properties":{"target":{"type":"object","nullable":true,"properties":{"id":{"type":"string"},"type":{"type":"string","enum":["location","view"]}}},"time":{"type":"object","nullable":true,"properties":{"mode":{"type":"string","enum":["day","week"]},"selectedKey":{"type":"string"}}}}}},"lastDashboardId":{"type":"string","nullable":true}}},"selectedInsightDashboardId":{"type":"string","nullable":true},"selectedInsightDashboardIds":{"type":"array","items":{"type":"string"},"nullable":true},"isLocationPanelCollapsed":{"type":"boolean"}}}}}},"responses":{"200":{"description":"application state response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"appState":{"$ref":"#/paths/~1v4~1users~1me~1app-state/put/requestBody/content/application~1json/schema"}}}}}}}},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}}},"/v4/users/{userId}/features":{"post":{"summary":"Adds features to a user","parameters":[{"$ref":"#/paths/~1v4~1users~1%7BuserId%7D/get/parameters/0"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"features":{"type":"array","items":{"type":"string"}}},"required":["features"]}}}},"responses":{"200":{"description":"features response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"features":{"$ref":"#/paths/~1v4~1users~1%7BuserId%7D~1features/post/requestBody/content/application~1json/schema/properties/features"}},"required":["features"]}},"required":["data"]}}}},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}},"delete":{"summary":"Removes features of a user","parameters":[{"$ref":"#/paths/~1v4~1users~1%7BuserId%7D/get/parameters/0"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"features":{"$ref":"#/paths/~1v4~1users~1%7BuserId%7D~1features/post/requestBody/content/application~1json/schema/properties/features"}},"required":["features"]}}}},"responses":{"200":{"description":"features response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"features":{"$ref":"#/paths/~1v4~1users~1%7BuserId%7D~1features/post/requestBody/content/application~1json/schema/properties/features"}},"required":["features"]}},"required":["data"]}}}},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}}},"/v4/users/me/effective-features":{"get":{"summary":"Gets self effective features","responses":{"200":{"description":"effective features response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"features":{"type":"array","items":{"type":"string"}}},"required":["features"]}},"required":["data"]}}}},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}}},"/v4/users/me/effective-permissions":{"get":{"summary":"Gets self effective permissions","responses":{"200":{"description":"effective permissions response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"permissions":{"type":"array","items":{"type":"string"}}},"required":["permissions"]}},"required":["data"]}}}},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}}},"/v4/users/{userId}/move":{"post":{"summary":"Move user to another account","parameters":[{"name":"userId","in":"path","required":true,"description":"ID of the user","schema":{"type":"string","x-entity-id":true}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"accountId":{"$ref":"#/paths/~1v4~1users~1%7BuserId%7D~1move/post/parameters/0/schema"},"groupId":{"$ref":"#/paths/~1v4~1users~1%7BuserId%7D~1move/post/parameters/0/schema"}},"required":["accountId"],"additionalProperties":false}}}},"responses":{"200":{"description":"user response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"user":{"$ref":"#/paths/~1v4~1users/post/responses/201/content/application~1json/schema/properties/data/properties/user"}},"required":["user"]}},"required":["data"]}}}},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}}},"/v4/groups/{groupId}":{"get":{"summary":"Gets a group by id","parameters":[{"name":"groupId","in":"path","required":true,"description":"ID of the group","schema":{"$ref":"#/paths/~1v4~1users~1%7BuserId%7D~1move/post/parameters/0/schema"}}],"responses":{"200":{"description":"group response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/paths/~1v4~1groups/post/responses/200/content/application~1json/schema/properties/data"}},"required":["data"]}}}},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}},"delete":{"summary":"Delete a group","parameters":[{"$ref":"#/paths/~1v4~1groups~1%7BgroupId%7D/get/parameters/0"}],"responses":{"204":{"description":"success deleting group response"},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}},"put":{"summary":"Update a group","parameters":[{"$ref":"#/paths/~1v4~1groups~1%7BgroupId%7D/get/parameters/0"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"userIds":{"type":"array","minItems":1,"items":{"type":"string"}},"name":{"type":"string","minLength":1,"maxLength":200},"notificationsSchedule":{"$ref":"#/paths/~1v4~1groups/post/requestBody/content/application~1json/schema/properties/notificationsSchedule"},"isUsedAccountNotificationsSchedule":{"type":"boolean"},"timezone":{"type":"string","nullable":true},"connectedAssets":{"type":"array","items":{"$ref":"#/paths/~1v4~1groups/post/requestBody/content/application~1json/schema/properties/connectedAssets/items"}}}}}}},"responses":{"200":{"description":"success deleting group response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/paths/~1v4~1groups/post/responses/200/content/application~1json/schema/properties/data"}},"required":["data"]}}}},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}}},"/v4/groups":{"get":{"summary":"List all groups in the account","responses":{"200":{"description":"groups response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"groups":{"type":"array","items":{"allOf":[{"$ref":"#/paths/~1v4~1users~1me~1devices~1%7BdeviceId%7D/post/responses/200/content/application~1json/schema/properties/data/properties/device/allOf/0"},{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"accountId":{"type":"string"},"userIds":{"type":"array","minItems":1,"items":{"type":"string"}},"isActive":{"type":"boolean"},"notificationsSchedule":{"$ref":"#/paths/~1v4~1groups/post/requestBody/content/application~1json/schema/properties/notificationsSchedule"},"isUsedAccountNotificationsSchedule":{"type":"boolean"},"timezone":{"type":"string","nullable":true},"connectedAssets":{"type":"array","items":{"$ref":"#/paths/~1v4~1groups/post/requestBody/content/application~1json/schema/properties/connectedAssets/items"}}},"required":["id","name","accountId","userIds","isActive"]}]}}},"required":["groups"]}},"required":["data"]}}}},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}},"post":{"summary":"create a group","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"userIds":{"type":"array","minItems":1,"items":{"type":"string"}},"name":{"type":"string","minLength":1,"maxLength":200},"notificationsSchedule":{"type":"array","items":{"type":"object","properties":{"startDay":{"type":"string","enum":["sunday","monday","tuesday","wednesday","thursday","friday","saturday"]},"from":{"type":"string","pattern":"^([01]\\d|2[0-3]):([0-5]\\d)$","description":"Time in HH:mm format"},"length":{"type":"number","minimum":1}},"required":["startDay","from","length"]}},"isUsedAccountNotificationsSchedule":{"type":"boolean","default":true},"timezone":{"type":"string","nullable":true},"connectedAssets":{"type":"array","items":{"type":"object","properties":{"feedId":{"type":"string","minLength":1,"description":"Arbitrary feed identifier for connected assets."},"attributes":{"type":"array","minItems":1,"items":{"type":"object","properties":{"attribute":{"type":"string","description":"Allowed connectedAssets.attributes[].attribute. Keep in sync with GROUP_CONNECTED_ASSET_ATTRIBUTE_KEYS in src/consts/groups.js.","enum":["id","tag"]},"values":{"type":"array","minItems":1,"uniqueItems":true,"items":{"type":"string"}}},"additionalProperties":false,"required":["attribute","values"]}}},"additionalProperties":false,"required":["feedId","attributes"]}}},"required":["userIds","name"]}}}},"responses":{"200":{"description":"group response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"group":{"$ref":"#/paths/~1v4~1groups/get/responses/200/content/application~1json/schema/properties/data/properties/groups/items"}},"required":["group"]}},"required":["data"]}}}},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}}},"/v4/groups/bulk":{"get":{"summary":"Get groups in a bulk","parameters":[{"name":"ids","description":"ids of groups to fetch","in":"query","required":true,"schema":{"type":"array","items":{"$ref":"#/paths/~1v4~1users~1%7BuserId%7D~1move/post/parameters/0/schema"},"minItems":1,"maxItems":50}}],"responses":{"200":{"description":"groups bulk response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"groups":{"type":"array","items":{"$ref":"#/paths/~1v4~1groups/get/responses/200/content/application~1json/schema/properties/data/properties/groups/items"}}},"required":["groups"]}},"required":["data"]}}}},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}}},"/v4/groups/find":{"post":{"summary":"Find groups of a given account","description":"Filter by group ids, tags, names, and/or connected assets (feedId + attribute + values).","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"groups":{"type":"array","minItems":1,"maxItems":1000,"items":{"$ref":"#/paths/~1v4~1users~1%7BuserId%7D~1move/post/parameters/0/schema"}},"tags":{"type":"array","items":{"type":"string","minLength":1,"maxLength":50},"minItems":1,"maxItems":100},"names":{"type":"array","items":{"type":"string","minLength":1,"maxLength":200},"minItems":1,"maxItems":50},"connectedAssets":{"type":"array","minItems":1,"items":{"$ref":"#/paths/~1v4~1groups/post/requestBody/content/application~1json/schema/properties/connectedAssets/items"}},"locationIds":{"type":"array","minItems":1,"items":{"type":"string"},"description":"Location IDs to find associated groups. The API fetches each location's tags and builds connectedAssets filters internally."}},"anyOf":[{"required":["groups"]},{"required":["tags"]},{"required":["names"]},{"required":["connectedAssets"]},{"required":["locationIds"]}]}}}},"responses":{"200":{"description":"groups response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"groups":{"type":"array","items":{"$ref":"#/paths/~1v4~1groups/get/responses/200/content/application~1json/schema/properties/data/properties/groups/items"}}},"required":["groups"]}},"required":["data"]}}}},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}}},"/v4/groups/{groupId}/tags/add":{"post":{"summary":"Add tags to group","parameters":[{"name":"groupId","in":"path","description":"ID of the group id to update","required":true,"schema":{"$ref":"#/paths/~1v4~1users~1%7BuserId%7D~1move/post/parameters/0/schema"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"tags":{"$ref":"#/paths/~1v4~1groups~1find/post/requestBody/content/application~1json/schema/properties/tags"}},"additionalProperties":false,"required":["tags"]}}}},"responses":{"204":{"description":"no content"},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}}},"/v4/groups/{groupId}/tags/remove":{"post":{"summary":"Remove tags from group","parameters":[{"name":"groupId","in":"path","description":"ID of the group id to update","required":true,"schema":{"$ref":"#/paths/~1v4~1users~1%7BuserId%7D~1move/post/parameters/0/schema"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1groups~1%7BgroupId%7D~1tags~1add/post/requestBody/content/application~1json/schema"}}}},"responses":{"204":{"description":"no content"},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}}},"/v4/groups/{groupId}/join":{"post":{"summary":"Join group by id","parameters":[{"$ref":"#/paths/~1v4~1groups~1%7BgroupId%7D/get/parameters/0"}],"responses":{"200":{"description":"success response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/paths/~1v4~1groups/post/responses/200/content/application~1json/schema/properties/data"}},"required":["data"]}}}},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}}},"/v4/groups/{groupId}/leave":{"post":{"summary":"Leave group by id","parameters":[{"$ref":"#/paths/~1v4~1groups~1%7BgroupId%7D/get/parameters/0"}],"responses":{"200":{"description":"success response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/paths/~1v4~1groups/post/responses/200/content/application~1json/schema/properties/data"}},"required":["data"]}}}},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}}},"/v4/accounts/me":{"get":{"summary":"Gets self account","responses":{"200":{"description":"account response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/paths/~1v4~1accounts/post/responses/201/content/application~1json/schema/properties/data"}},"required":["data"]}}}},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}}},"/v4/accounts/me/effective-quotas":{"get":{"summary":"Gets self account effective quotas","responses":{"200":{"description":"effective quotas response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"features":{"$ref":"#/paths/~1v4~1accounts~1%7BaccountId%7D~1quotas/put/requestBody/content/application~1json/schema"}},"required":["quotas"]}},"required":["data"]}}}},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}}},"/v4/accounts/me/quotas":{"get":{"summary":"Get all quota information for the authenticated user's account","description":"Returns all quota types with their totals and remaining balances for the authenticated user.","responses":{"200":{"description":"Successfully retrieved quota information","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"quotas":{"type":"object","properties":{"gale":{"type":"object","properties":{"total":{"type":"number","description":"Total allocated quotas"},"remaining":{"type":"number","description":"Current available quotas"}},"required":["total","remaining"]}},"description":"Object with quota types as keys"}},"required":["quotas"]}},"required":["data"]}}}},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}}},"/v4/accounts/{accountId}/quotas/add":{"put":{"summary":"Add quotas to an account","description":"Adds quotas to account.quotas.gale and quota_balances.remainingQuotas. If quotas exist, the amount is added to existing value.","parameters":[{"$ref":"#/paths/~1v4~1accounts~1%7BaccountId%7D/put/parameters/0"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["gale"],"description":"The type of quota"},"amount":{"type":"number","description":"Number of quotas to add (must be greater than 0)","minimum":1,"example":500}},"required":["type","amount"]}}}},"responses":{"200":{"description":"Successfully added quotas","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"quotas":{"type":"object","properties":{"gale":{"$ref":"#/paths/~1v4~1accounts~1me~1quotas/get/responses/200/content/application~1json/schema/properties/data/properties/quotas/properties/gale"}},"description":"Object with quota types as keys"},"updatedAt":{"type":"string","format":"date-time"}},"required":["quotas","updatedAt"]}},"required":["data"]}}}},"400":{"description":"Bad request - invalid input or account not found","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}}},"/v4/accounts/{accountId}/quotas":{"put":{"summary":"Updates the account quotas","parameters":[{"$ref":"#/paths/~1v4~1accounts~1%7BaccountId%7D/put/parameters/0"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"seats":{"type":"number"},"locations":{"type":"number"},"insights":{"type":"number"},"alerts":{"type":"number"},"automatedReports":{"type":"number"}},"additionalProperties":false}}}},"responses":{"200":{"description":"account response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"quotas":{"$ref":"#/paths/~1v4~1accounts~1%7BaccountId%7D~1quotas/put/requestBody/content/application~1json/schema"}},"required":["quotas"]}},"required":["data"]}}}},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}},"delete":{"summary":"Deletes the account quotas","parameters":[{"$ref":"#/paths/~1v4~1accounts~1%7BaccountId%7D/put/parameters/0"}],"responses":{"200":{"description":"account response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1accounts~1%7BaccountId%7D~1quotas/put/responses/200/content/application~1json/schema"}}}},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}}},"/v4/accounts/{accountId}/features":{"post":{"summary":"Adds features to an account","parameters":[{"$ref":"#/paths/~1v4~1accounts~1%7BaccountId%7D/put/parameters/0"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"features":{"type":"array","minItems":1,"maxItems":50,"items":{"type":"string"}}},"required":["features"]}}}},"responses":{"200":{"description":"features response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"features":{"$ref":"#/paths/~1v4~1users~1%7BuserId%7D~1features/post/requestBody/content/application~1json/schema/properties/features"}},"required":["features"]}},"required":["data"]}}}},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}},"delete":{"summary":"Removes features from an account","parameters":[{"$ref":"#/paths/~1v4~1accounts~1%7BaccountId%7D/put/parameters/0"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"features":{"$ref":"#/paths/~1v4~1users~1%7BuserId%7D~1features/post/requestBody/content/application~1json/schema/properties/features"}},"required":["features"]}}}},"responses":{"200":{"description":"features response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"features":{"$ref":"#/paths/~1v4~1users~1%7BuserId%7D~1features/post/requestBody/content/application~1json/schema/properties/features"}},"required":["features"]}},"required":["data"]}}}},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}}},"/v4/accounts/{accountId}/products":{"post":{"summary":"Adds products to an account","parameters":[{"$ref":"#/paths/~1v4~1accounts~1%7BaccountId%7D/put/parameters/0"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"products":{"type":"array","items":{"type":"string","enum":["API","PLATFORM","DAAS"]}}},"required":["products"]}}}},"responses":{"200":{"description":"products response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"products":{"$ref":"#/paths/~1v4~1accounts~1%7BaccountId%7D~1products/post/requestBody/content/application~1json/schema/properties/products"}},"required":["products"]}},"required":["data"]}}}},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}},"delete":{"summary":"Removes products from an account","parameters":[{"$ref":"#/paths/~1v4~1accounts~1%7BaccountId%7D/put/parameters/0"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"products":{"$ref":"#/paths/~1v4~1accounts~1%7BaccountId%7D~1products/post/requestBody/content/application~1json/schema/properties/products"}},"required":["products"]}}}},"responses":{"200":{"description":"products response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"products":{"$ref":"#/paths/~1v4~1accounts~1%7BaccountId%7D~1products/post/requestBody/content/application~1json/schema/properties/products"}},"required":["products"]}},"required":["data"]}}}},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}}},"/v4/accounts/me/limits":{"get":{"summary":"Gets self account limits","responses":{"200":{"description":"limits response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"limits":{"type":"object","properties":{"account":{"type":"object","properties":{"rate":{"$ref":"#/paths/~1v4~1accounts~1%7BaccountId%7D~1rate-limits/put/requestBody/content/application~1json/schema"}},"required":["rate"]},"apps":{"type":"array","items":{"type":"object","properties":{"appId":{"type":"string"},"rate":{"$ref":"#/paths/~1v4~1accounts~1%7BaccountId%7D~1rate-limits/put/requestBody/content/application~1json/schema"}},"required":["appId","rate"]}}},"required":["account"]}},"required":["limits"]}},"required":["data"]}}}},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}}},"/v4/accounts/me/effective-limits":{"get":{"summary":"Gets self account effective limits","responses":{"200":{"description":"effective limits response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"limits":{"type":"object","properties":{"rate":{"$ref":"#/paths/~1v4~1accounts~1%7BaccountId%7D~1rate-limits/put/requestBody/content/application~1json/schema"}},"required":["rate"]}},"required":["limits"]}},"required":["data"]}}}},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}}},"/v4/accounts/me/effective-products":{"get":{"summary":"Gets self account effective products","responses":{"200":{"description":"effective products response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"products":{"$ref":"#/paths/~1v4~1accounts~1%7BaccountId%7D~1products/post/requestBody/content/application~1json/schema/properties/products"}},"required":["products"]}},"required":["data"]}}}},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}}},"/v4/accounts/me/tokens":{"get":{"summary":"Gets self account tokens balance","responses":{"200":{"description":"tokens balance response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"tokens":{"type":"object","properties":{"historical":{"type":"object","properties":{"balance":{"type":"number"},"expiration":{"type":"string","format":"date-time"}}},"eventsTimeline":{"$ref":"#/paths/~1v4~1accounts~1me~1tokens/get/responses/200/content/application~1json/schema/properties/data/properties/tokens/properties/historical"}}}}}},"required":["data"]}}}},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}}},"/v4/accounts/{accountId}/tokens/top-up":{"post":{"summary":"Top-up/Charge account tokens balance according to the given 'amount'","parameters":[{"$ref":"#/paths/~1v4~1accounts~1%7BaccountId%7D/put/parameters/0"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"allOf":[{"type":"object","properties":{"product":{"type":"string","enum":["historical","eventsTimeline","maps","historicalNormals","timeline"]},"amount":{"type":"number"}},"required":["product","amount"]},{"type":"object","properties":{"expiration":{"type":"string","format":"date-time"}},"required":["expiration"]}]}}}},"responses":{"204":{"description":"successfully updated account tokens"},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}}},"/v4/accounts/{accountId}/assign-suite":{"post":{"summary":"Assign a suite to an account based on industry","parameters":[{"$ref":"#/paths/~1v4~1accounts~1%7BaccountId%7D/put/parameters/0"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"suiteId":{"type":"string"}},"additionalProperties":false}}}},"responses":{"200":{"description":"account response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/paths/~1v4~1accounts/post/responses/201/content/application~1json/schema/properties/data"}},"required":["data"]}}}},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}}},"/v4/accounts/{accountId}":{"put":{"summary":"Update an account","parameters":[{"name":"accountId","in":"path","required":true,"description":"id of the account","schema":{"$ref":"#/paths/~1v4~1users~1%7BuserId%7D~1move/post/parameters/0/schema"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"registeredDomain":{"type":"string","nullable":true,"minLength":1,"maxLength":200},"domain":{"type":"string","maxLength":200},"expiration":{"type":"string","format":"date-time"},"externalId":{"type":"string"},"labels":{"type":"array","items":{"$ref":"#/paths/~1v4~1accounts/post/requestBody/content/application~1json/schema/properties/labels/items"}},"systemTags":{"type":"array","items":{"type":"string","maxLength":50},"maxItems":50},"fronteggAccountId":{"type":"string","minLength":1,"maxLength":200},"scimProvisioning":{"type":"boolean"},"industry":{"type":"string","minLength":1,"maxLength":50},"suiteId":{"type":"string","nullable":true}},"additionalProperties":false}}}},"responses":{"200":{"description":"account response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/paths/~1v4~1accounts/post/responses/201/content/application~1json/schema/properties/data"}},"required":["data"]}}}},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}},"get":{"summary":"Gets account by id","parameters":[{"$ref":"#/paths/~1v4~1accounts~1%7BaccountId%7D/put/parameters/0"}],"responses":{"200":{"description":"account response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/paths/~1v4~1accounts/post/responses/201/content/application~1json/schema/properties/data"}},"required":["data"]}}}},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}}},"/v4/accounts":{"get":{"summary":"Gets matching accounts by query params","parameters":[{"name":"name","in":"query","required":false,"description":"only name of the account","schema":{"type":"string"}},{"name":"term","in":"query","required":false,"description":"name or id of account","schema":{"type":"string"}},{"name":"offset","in":"query","required":false,"schema":{"type":"number","default":0}},{"name":"limit","in":"query","required":false,"schema":{"type":"number","default":10}}],"responses":{"200":{"description":"list of matching accounts","content":{"application/json":{"schema":{"type":"object","properties":{"links":{"type":"object","properties":{"next":{"type":"string"},"self":{"type":"string"}},"required":["self"]},"data":{"type":"object","properties":{"accounts":{"type":"array","items":{"allOf":[{"$ref":"#/paths/~1v4~1users~1me~1devices~1%7BdeviceId%7D/post/responses/200/content/application~1json/schema/properties/data/properties/device/allOf/0"},{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"planId":{"type":"string"},"features":{"$ref":"#/paths/~1v4~1users~1%7BuserId%7D~1features/post/requestBody/content/application~1json/schema/properties/features"},"products":{"$ref":"#/paths/~1v4~1accounts~1%7BaccountId%7D~1products/post/requestBody/content/application~1json/schema/properties/products"},"quotas":{"$ref":"#/paths/~1v4~1accounts~1%7BaccountId%7D~1quotas/put/requestBody/content/application~1json/schema"},"settings":{"$ref":"#/paths/~1v4~1accounts~1%7BaccountId%7D~1settings/put/requestBody/content/application~1json/schema"},"isActive":{"type":"boolean"},"expiration":{"type":"string","format":"date-time","nullable":true},"externalId":{"type":"string"},"registeredDomain":{"type":"string","nullable":true},"onboardingStatus":{"$ref":"#/paths/~1v4~1users/post/responses/201/content/application~1json/schema/properties/data/properties/user/allOf/1/properties/onboardingStatus"},"labels":{"type":"array","items":{"$ref":"#/paths/~1v4~1accounts/post/requestBody/content/application~1json/schema/properties/labels/items"}},"systemTags":{"$ref":"#/paths/~1v4~1accounts~1%7BaccountId%7D/put/requestBody/content/application~1json/schema/properties/systemTags"},"apiUsageIntent":{"$ref":"#/paths/~1v4~1accounts~1%7BaccountId%7D~1details/put/requestBody/content/application~1json/schema/properties/apiUsageIntent"},"welcomeSteps":{"$ref":"#/paths/~1v4~1welcome-steps/get/responses/200/content/application~1json/schema/properties/data/properties/welcomeSteps"},"industry":{"type":"string","minLength":1,"maxLength":50},"organizationSize":{"$ref":"#/paths/~1v4~1accounts~1%7BaccountId%7D~1details/put/requestBody/content/application~1json/schema/properties/organizationSize"},"aiContext":{"type":"object","properties":{"operationalInstructions":{"type":"string","maxLength":2000,"description":"Free text operational instructions for AI context"},"language":{"type":"string","maxLength":50,"description":"Language to use for AI responses"}},"additionalProperties":false},"suiteId":{"type":"string","nullable":true},"suite":{"type":"object","nullable":true}},"required":["id","name"]}]}}},"required":["accounts"]}},"required":["data"]}}}},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}},"post":{"summary":"Creates an account","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"planId":{"type":"string","minLength":1,"maxLength":24},"name":{"type":"string","minLength":1,"maxLength":200},"domain":{"type":"string","maxLength":200},"features":{"$ref":"#/paths/~1v4~1users~1%7BuserId%7D~1features/post/requestBody/content/application~1json/schema/properties/features"},"products":{"$ref":"#/paths/~1v4~1accounts~1%7BaccountId%7D~1products/post/requestBody/content/application~1json/schema/properties/products"},"settings":{"$ref":"#/paths/~1v4~1accounts~1%7BaccountId%7D~1settings/put/requestBody/content/application~1json/schema"},"quotas":{"$ref":"#/paths/~1v4~1accounts~1%7BaccountId%7D~1quotas/put/requestBody/content/application~1json/schema"},"externalId":{"type":"string"},"labels":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"string"}},"required":["name","value"]}}},"required":["planId","name"]}}}},"responses":{"201":{"description":"account response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"account":{"$ref":"#/paths/~1v4~1accounts/get/responses/200/content/application~1json/schema/properties/data/properties/accounts/items"}},"required":["account"]}},"required":["data"]}}}},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}}},"/v4/accounts/{accountId}/settings":{"put":{"summary":"Updates the account settings","parameters":[{"$ref":"#/paths/~1v4~1accounts~1%7BaccountId%7D/put/parameters/0"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"lightningPerimeters":{"type":"object","properties":{"radiuses":{"type":"array","items":{"type":"number"},"minItems":3},"metadata":{"type":"array","items":{"type":"object","properties":{"radius":{"type":"number"},"color":{"type":"string"}},"required":["radius"]}}}},"whiteLabel":{"type":"object","properties":{"icon":{"type":"string"},"useBranding":{"type":"boolean"}}},"timelineSetups":{"type":"array","minItems":1,"items":{"type":"object","properties":{"name":{"type":"string","maxLength":50},"layers":{"type":"array","minItems":1,"maxItems":20,"items":{"type":"string"}}},"required":["name","layers"]}},"distributionPreferences":{"type":"object","properties":{"alertUserFavorites":{"type":"boolean"},"lightningAlertsUseSeverity":{"type":"boolean"},"notificationChannels":{"type":"object","properties":{"email":{"$ref":"#/paths/~1v4~1accounts/get/responses/200/content/application~1json/schema/properties/data/properties/accounts/items/allOf/1/properties/settings/properties/distributionPreferences/properties/notificationChannels/properties/sms"},"sms":{"type":"object","properties":{"enabled":{"type":"boolean"},"default":{"type":"boolean"}}},"pushNotification":{"$ref":"#/paths/~1v4~1accounts/get/responses/200/content/application~1json/schema/properties/data/properties/accounts/items/allOf/1/properties/settings/properties/distributionPreferences/properties/notificationChannels/properties/sms"},"inAppNotification":{"$ref":"#/paths/~1v4~1accounts/get/responses/200/content/application~1json/schema/properties/data/properties/accounts/items/allOf/1/properties/settings/properties/distributionPreferences/properties/notificationChannels/properties/sms"},"whatsapp":{"$ref":"#/paths/~1v4~1accounts/get/responses/200/content/application~1json/schema/properties/data/properties/accounts/items/allOf/1/properties/settings/properties/distributionPreferences/properties/notificationChannels/properties/sms"}}},"notificationsSchedule":{"type":"array","items":{"type":"object","items":{"type":"object","properties":{"startDay":{"type":"string","enum":["sunday","monday","tuesday","wednesday","thursday","friday","saturday"]},"from":{"type":"string","pattern":"^([01]\\d|2[0-3]):([0-5]\\d)$","description":"Time in HH:mm format"},"length":{"type":"number","minimum":1}}}}}}},"stormScale":{"type":"string","enum":["pagasa","saffir-simpson"]},"alertSettings":{"type":"object","properties":{"sensitivityConfig":{"type":"object","properties":{"eventMergeThreshold":{"type":"number"},"minEventDuration":{"type":"number"}}},"updatesEnabled":{"type":"boolean"}}},"groupsManagement":{"type":"object","properties":{"usersSelfAssignGroups":{"type":"boolean"}}}}}}}},"responses":{"200":{"description":"account response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"settings":{"$ref":"#/paths/~1v4~1accounts~1%7BaccountId%7D~1settings/put/requestBody/content/application~1json/schema"}},"required":["settings"]}},"required":["data"]}}}},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}}},"/v4/accounts/{accountId}/details":{"put":{"summary":"Updates the account details","parameters":[{"$ref":"#/paths/~1v4~1accounts~1%7BaccountId%7D/put/parameters/0"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"industry":{"type":"string","minLength":1,"maxLength":50},"organizationSize":{"type":"string","enum":["1-10","11-50","51-200","201-500","501-1000"]},"apiUsageIntent":{"type":"string","enum":["PRODUCTS","ML","HISTORICAL","OPERATIONAL","DECISIONS","OTHER"]}}}}}},"responses":{"200":{"description":"account response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/paths/~1v4~1accounts/post/responses/201/content/application~1json/schema/properties/data"}},"required":["data"]}}}},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}}},"/v4/accounts/{accountId}/rate-limits":{"put":{"summary":"Updates the account rate limits","parameters":[{"$ref":"#/paths/~1v4~1accounts~1%7BaccountId%7D/put/parameters/0"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"day":{"type":"integer","minimum":1},"hour":{"type":"integer","minimum":1},"minute":{"type":"integer","minimum":1},"second":{"type":"integer","minimum":1}},"additionalProperties":false}}}},"responses":{"200":{"description":"rate limits response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"limits":{"type":"object","properties":{"rate":{"$ref":"#/paths/~1v4~1accounts~1%7BaccountId%7D~1rate-limits/put/requestBody/content/application~1json/schema"}},"required":["rate"]}},"required":["limits"]}},"required":["data"]}}}},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}},"delete":{"summary":"clears the account rate limits","parameters":[{"$ref":"#/paths/~1v4~1accounts~1%7BaccountId%7D/put/parameters/0"}],"responses":{"200":{"description":"rate limits response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1accounts~1%7BaccountId%7D~1rate-limits/put/responses/200/content/application~1json/schema"}}}},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}}},"/v4/accounts/me/readme":{"get":{"summary":"Gets readme jwt token","responses":{"200":{"description":"token response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"token":{"type":"string","nullable":true}}}}}}}},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}}},"/v4/accounts/{accountId}/users/notifications":{"post":{"summary":"Update all users notification settings","parameters":[{"$ref":"#/paths/~1v4~1accounts~1%7BaccountId%7D/put/parameters/0"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"notificationsMuted":{"type":"object","minProperties":1,"properties":{"email":{"type":"boolean"},"sms":{"type":"boolean"},"pushNotification":{"type":"boolean"},"inAppNotification":{"type":"boolean"},"whatsapp":{"type":"boolean"}}},"notificationsTypes":{"type":"object","properties":{"broadcast":{"type":"object","properties":{"email":{"type":"boolean"},"sms":{"type":"boolean"},"whatsapp":{"type":"boolean"}}},"dashboardDigestEmail":{"type":"object","properties":{"email":{"type":"boolean"}}},"insight":{"type":"object","properties":{"email":{"type":"boolean"},"sms":{"type":"boolean"},"pushNotification":{"type":"boolean"},"whatsapp":{"type":"boolean"}}},"lightning":{"type":"object","properties":{"email":{"type":"boolean"},"sms":{"type":"boolean"},"pushNotification":{"type":"boolean"},"whatsapp":{"type":"boolean"}}},"reportsEmail":{"type":"object","properties":{"email":{"type":"boolean"}}},"severWeather":{"type":"object","properties":{"email":{"type":"boolean"},"pushNotification":{"type":"boolean"}}},"tropical":{"type":"object","properties":{"email":{"type":"boolean"},"sms":{"type":"boolean"},"whatsapp":{"type":"boolean"}}},"volcanic":{"type":"object","properties":{"email":{"type":"boolean"},"sms":{"type":"boolean"},"whatsapp":{"type":"boolean"}}},"airmet":{"type":"object","properties":{"email":{"type":"boolean"},"sms":{"type":"boolean"},"whatsapp":{"type":"boolean"}}},"sigmet":{"type":"object","properties":{"email":{"type":"boolean"},"sms":{"type":"boolean"},"whatsapp":{"type":"boolean"}}},"alertsOnRoutes":{"type":"object","properties":{"email":{"type":"boolean"},"sms":{"type":"boolean"},"whatsapp":{"type":"boolean"}}}}}}}}}},"responses":{"204":{"description":"successfully updated users notification settings"},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}}},"/v4/plans":{"get":{"summary":"Gets all plans","responses":{"200":{"description":"plan response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"plans":{"type":"array","items":{"$ref":"#/paths/~1v4~1plans~1%7BplanId%7D/get/responses/200/content/application~1json/schema/properties/data/properties/plan"}}}}},"required":["data"]}}}},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}}},"/v4/plans/{planId}":{"get":{"summary":"Gets a plan by id","parameters":[{"name":"planId","in":"path","required":true,"description":"ID of the plan","schema":{"$ref":"#/paths/~1v4~1users~1%7BuserId%7D~1move/post/parameters/0/schema"}}],"responses":{"200":{"description":"plan response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"plan":{"type":"object","properties":{"name":{"type":"string"},"features":{"$ref":"#/paths/~1v4~1users~1%7BuserId%7D~1features/post/requestBody/content/application~1json/schema/properties/features"},"quotas":{"$ref":"#/paths/~1v4~1accounts~1%7BaccountId%7D~1quotas/put/requestBody/content/application~1json/schema"}},"required":["name"]}}}},"required":["data"]}}}},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}}},"/v4/webhooks/{webhookId}":{"delete":{"summary":"Delete a webhook","parameters":[{"$ref":"#/paths/~1v4~1webhooks~1%7BwebhookId%7D/put/parameters/0"}],"responses":{"204":{"description":"success deleting webhook response"},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}},"put":{"summary":"Update a webhook","parameters":[{"name":"webhookId","in":"path","required":true,"description":"ID of the webhook","schema":{"$ref":"#/paths/~1v4~1users~1%7BuserId%7D~1move/post/parameters/0/schema"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"url":{"type":"string","format":"uri","maxLength":2000},"isActive":{"type":"boolean"}}}}}},"responses":{"200":{"description":"success deleting webhook response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/paths/~1v4~1webhooks/post/responses/200/content/application~1json/schema/properties/data"}},"required":["data"]}}}},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}}},"/v4/webhooks/{webhookId}/secret":{"get":{"summary":"Get a webhook secret","parameters":[{"$ref":"#/paths/~1v4~1webhooks~1%7BwebhookId%7D/put/parameters/0"}],"responses":{"200":{"description":"webhook secret response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"secret":{"type":"string"}},"required":["secret"]}},"required":["data"]}}}},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}}},"/v4/webhooks/{webhookId}/activate":{"post":{"summary":"Activates a webhook","parameters":[{"$ref":"#/paths/~1v4~1webhooks~1%7BwebhookId%7D/put/parameters/0"}],"responses":{"200":{"description":"webhook response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/paths/~1v4~1webhooks/post/responses/200/content/application~1json/schema/properties/data"}},"required":["data"]}}}},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}}},"/v4/webhooks/{webhookId}/deactivate":{"post":{"summary":"Deactivates a webhook","parameters":[{"$ref":"#/paths/~1v4~1webhooks~1%7BwebhookId%7D/put/parameters/0"}],"responses":{"200":{"description":"webhook response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/paths/~1v4~1webhooks/post/responses/200/content/application~1json/schema/properties/data"}},"required":["data"]}}}},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}}},"/v4/webhooks":{"get":{"summary":"List all webhooks in the account","responses":{"200":{"description":"webhooks response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"webhooks":{"type":"array","items":{"allOf":[{"$ref":"#/paths/~1v4~1users~1me~1devices~1%7BdeviceId%7D/post/responses/200/content/application~1json/schema/properties/data/properties/device/allOf/0"},{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"accountId":{"type":"string"},"url":{"type":"string"},"isActive":{"type":"boolean"}},"required":["id","name","accountId","url","isActive"]}]}}},"required":["webhooks"]}},"required":["data"]}}}},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}},"post":{"summary":"create a webhook","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"url":{"type":"string","format":"uri","maxLength":2000},"secret":{"type":"string"}},"required":["name","url","secret"]}}}},"responses":{"200":{"description":"webhook response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"webhook":{"$ref":"#/paths/~1v4~1webhooks/get/responses/200/content/application~1json/schema/properties/data/properties/webhooks/items"}},"required":["webhook"]}},"required":["data"]}}}},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}}},"/v4/webhooks/find":{"get":{"summary":"Find webhooks","parameters":[{"name":"accountIds","in":"query","required":true,"description":"account ids","schema":{"type":"array","items":{"$ref":"#/paths/~1v4~1users~1%7BuserId%7D~1move/post/parameters/0/schema"}}},{"name":"isActive","in":"query","required":false,"description":"filter only active accounts","schema":{"type":"boolean"}}],"responses":{"200":{"description":"webhooks response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"webhooks":{"type":"array","items":{"$ref":"#/paths/~1v4~1webhooks/get/responses/200/content/application~1json/schema/properties/data/properties/webhooks/items"}}},"required":["webhooks"]}},"required":["data"]}}}},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}}},"/v4/onboarding/account":{"post":{"summary":"Handle onboarding account form submit","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"userFirstName":{"type":"string","minLength":1,"maxLength":200},"userLastName":{"type":"string","minLength":1,"maxLength":200},"accountName":{"type":"string","minLength":1,"maxLength":200},"industry":{"type":"string","maxLength":50},"hackathonProjectDescription":{"type":"string","maxLength":1000}},"required":["userFirstName","userLastName"]}}}},"responses":{"204":{"description":"Account onboarding submit response"},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}}},"/v4/access-control/permissions":{"get":{"summary":"Get the list of available permissions in the platform","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"permissions":{"type":"array","items":{"type":"string"}}},"required":["permissions"]}},"required":["data"]}}}},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}}},"/v4/access-control/roles":{"get":{"summary":"Get the list of available permissions in the platform","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"roles":{"type":"array","items":{"type":"string"}}},"required":["roles"]}},"required":["data"]}}}},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}}},"/v4/welcome-steps":{"get":{"summary":"Gets welcome steps","responses":{"200":{"description":"Welcome Steps Response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"welcomeSteps":{"type":"object","properties":{"firstApiCallCompleted":{"type":"boolean"},"firstWebhookCreated":{"type":"boolean"},"welcomeStepsSkipped":{"type":"boolean"}}}},"required":["welcomeSteps"]}},"required":["data"]}}}},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}},"put":{"summary":"Updates welcome steps","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"welcomeSteps":{"type":"object","properties":{"firstApiCallCompleted":{"type":"boolean"},"firstWebhookCreated":{"type":"boolean"}},"additionalProperties":false},"skip":{"type":"boolean"}},"oneOf":[{"required":["welcomeSteps"]},{"required":["skip"]}]}}}},"responses":{"200":{"description":"Welcome Steps Response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/paths/~1v4~1welcome-steps/get/responses/200/content/application~1json/schema/properties/data"}},"required":["data"]}}}},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}}},"/v4/suites/{suiteId}":{"get":{"summary":"Gets a suite by id","parameters":[{"name":"suiteId","in":"path","required":true,"description":"ID of the suite","schema":{"$ref":"#/paths/~1v4~1users~1%7BuserId%7D~1move/post/parameters/0/schema"}}],"responses":{"200":{"description":"suite response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/paths/~1v4~1suites/post/responses/201/content/application~1json/schema/properties/data"}},"required":["data"]}}}},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}},"put":{"summary":"Update a suite","parameters":[{"$ref":"#/paths/~1v4~1suites~1%7BsuiteId%7D/get/parameters/0"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"displayName":{"type":"string","maxLength":200}},"minProperties":1,"additionalProperties":false}}}},"responses":{"200":{"description":"suite updated response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/paths/~1v4~1suites/post/responses/201/content/application~1json/schema/properties/data"}},"required":["data"]}}}},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}},"delete":{"summary":"Delete a suite","parameters":[{"$ref":"#/paths/~1v4~1suites~1%7BsuiteId%7D/get/parameters/0"}],"responses":{"204":{"description":"success deleting suite response"},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}}},"/v4/suites":{"get":{"summary":"List all suites","responses":{"200":{"description":"suites response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"suites":{"type":"array","items":{"allOf":[{"$ref":"#/paths/~1v4~1users~1me~1devices~1%7BdeviceId%7D/post/responses/200/content/application~1json/schema/properties/data/properties/device/allOf/0"},{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"displayName":{"type":"string"}},"required":["id","name"]}]}}},"required":["suites"]}},"required":["data"]}}}},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}},"post":{"summary":"Create a suite","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"displayName":{"type":"string","maxLength":200}},"required":["name"],"additionalProperties":false}}}},"responses":{"201":{"description":"suite created response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"suite":{"$ref":"#/paths/~1v4~1suites/get/responses/200/content/application~1json/schema/properties/data/properties/suites/items"}},"required":["suite"]}},"required":["data"]}}}},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}}},"/v4/account-access":{"post":{"summary":"Create account access for a user","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["userId","accountId","role"],"properties":{"userId":{"$ref":"#/paths/~1v4~1users~1%7BuserId%7D~1move/post/parameters/0/schema"},"accountId":{"$ref":"#/paths/~1v4~1users~1%7BuserId%7D~1move/post/parameters/0/schema"},"role":{"$ref":"#/paths/~1v4~1account-access/put/requestBody/content/application~1json/schema/properties/role"}}}}}},"responses":{"200":{"description":"account access response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"accountAccess":{"$ref":"#/paths/~1v4~1account-access/put/responses/200/content/application~1json/schema/properties/data/properties/accountAccess"}},"required":["accountAccess"]}},"required":["data"]}}}},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}},"put":{"summary":"Update account access role for a user","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["userId","accountId","role"],"properties":{"userId":{"$ref":"#/paths/~1v4~1users~1%7BuserId%7D~1move/post/parameters/0/schema"},"accountId":{"$ref":"#/paths/~1v4~1users~1%7BuserId%7D~1move/post/parameters/0/schema"},"role":{"type":"string","enum":["collaborator","account-admin"]}}}}}},"responses":{"200":{"description":"account access response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"accountAccess":{"type":"object","properties":{"userId":{"$ref":"#/paths/~1v4~1users~1%7BuserId%7D~1move/post/parameters/0/schema"},"accountId":{"$ref":"#/paths/~1v4~1users~1%7BuserId%7D~1move/post/parameters/0/schema"},"role":{"$ref":"#/paths/~1v4~1account-access/put/requestBody/content/application~1json/schema/properties/role"}},"required":["userId","accountId","role"]}},"required":["accountAccess"]}},"required":["data"]}}}},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}},"delete":{"summary":"Delete account access for a user","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["userId","accountId"],"properties":{"userId":{"$ref":"#/paths/~1v4~1users~1%7BuserId%7D~1move/post/parameters/0/schema"},"accountId":{"$ref":"#/paths/~1v4~1users~1%7BuserId%7D~1move/post/parameters/0/schema"}}}}}},"responses":{"200":{"description":"success response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object"}},"required":["data"]}}}},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}}},"/v4/account-access/query":{"post":{"summary":"Get account access(es) for a user","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"userId":{"$ref":"#/paths/~1v4~1users~1%7BuserId%7D~1move/post/parameters/0/schema"},"accountId":{"$ref":"#/paths/~1v4~1users~1%7BuserId%7D~1move/post/parameters/0/schema"}},"anyOf":[{"required":["userId"]},{"required":["accountId"]}]}}}},"responses":{"200":{"description":"account access response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"accountAccesses":{"type":"array","nullable":true,"items":{"$ref":"#/paths/~1v4~1account-access/put/responses/200/content/application~1json/schema/properties/data/properties/accountAccess"}}},"required":["accountAccesses"]}},"required":["data"]}}}},"default":{"description":"error response","content":{"application/json":{"schema":{"$ref":"#/paths/~1v4~1users/get/responses/default/content/application~1json/schema"}}}}}}}}}