wellbee API

Documentation was generated on 2026-07-19T14:39:34.491Z

Table of contents

Http endpoints

admin

audit

auth

bankid

bulletin-board

clothes

clothing

contact

dev

event

file-service

freja

group

groups

invite

item

languages

license

license-admin

list

lists

logbook

mail

media-library

message

news

notes

notifications

organisation

organisation-admin

photo-diary

pictograms

planner

public

reset-password

staff

staffs

subscription-updates

template

unique-mail

user

video

video-call

wb-pictograms

Service endpoints

audit-service

auth-service

bank-id-service

contact-service

event-service

fruster-stripe-service

fruster-web-bus

interceptor

list-service

mail-service

message-service

password-reset-service

pub

push-service

schedule-service

user-service

video-service

wb-bulletin-board-service

wb-event-service

wb-file-service

wb-license-service

wb-media-library-service

wb-organisation-service

wb-photo-diary-service

wb-translation-service

wb-user-service

wb-video-service

Http endpoints

admin


DELETE to /admin/user/:id

from wb-fruster-user-service.c8a8fc7f

Deletes a user. Response has status code 200 if successful. pub.user-service.user-deleted is published after deletion


GET to /admin/user

from wb-fruster-user-service.c8a8fc7f

Gets users. Response has status code 200 if successful. Note that any query params will be used as a mongo query.


GET to /admin/user/:id

from wb-fruster-user-service.c8a8fc7f

Gets user by id. Response has status code 200 if successful.


POST to /admin/user

from wb-fruster-user-service.c8a8fc7f

Creates a fruster user. Must include a few base fields but can contain any number of custom fields. Response has status code 201 if successful. Automatically splits data between user and profile if configured to.


PUT to /admin/user/:id

from wb-fruster-user-service.c8a8fc7f

Updates a user. Can contain any number of custom fields. Response has status code 200 if successful.

audit


GET to /audit/:userId

from wb-fruster-audit-service.c68c8d17

Gets audit logs for a specific user. The result is sorted on timestamp. Supports pagination.

auth


* to /auth/logout

from wb-auth-service.0257f3bd

Will return a Set-Cookie to instruct browser to expire any existing cookie and delete the session of the token (from cookie or Authorization Bearer-header) from the database. Should be used by both Token and Cookie.

Note: When using the query param logoutId the id is obtained from GET to /auth/active-sessions which can only be done by the logged in user.


GET to /auth/active-sessions

from wb-auth-service.0257f3bd

Gets all active sesssions for the logged in user, typically to be used to list sessions similar to something like google or facebook with the ability to logout any session:

Image should be here: please report missing image 😬

Will return all values as null (expect for id) if user hasn't been active since the session details functionality was implemented (sometime around 2020-06-11).



POST to /auth/app

from wb-auth-service.0257f3bd | Note: Use POST to /auth/token instead

POST to /auth/cookie

from wb-auth-service.0257f3bd

Login for web applications. Logs in with username and password and return JWT in Set-Cookie header. Returns user data in the response body, same as user-service.get-users-by-query with expand: "profile" but for the logged in user.


POST to /auth/disable-tfa/sms

from wb-auth-service.0257f3bd

Disables Two Factor Authentication via SMS for the user. Will remove the sms from the user's two factor authentication methods.


POST to /auth/enable-tfa/sms

from wb-auth-service.0257f3bd

Enables Two Factor Authentication via SMS for the user. Will send a SMS to the provided phone number with a code that the user needs to input to enable TFA. The code is valid for 10 minutes.


POST to /auth/refresh

from wb-auth-service.0257f3bd

Gets a fresh access token by providing a refresh token.


POST to /auth/token

from wb-auth-service.0257f3bd

Login for non web devices such as native mobile apps. Returns an access token to be used as bearer authentication. Response body also contains profile which has the same data as user-service.get-users-by-query with expand: "profile" but for the logged in user.


POST to /auth/verify-tfa/sms

from wb-auth-service.0257f3bd

Verifies the Two Factor Authentication code sent to the user via SMS. Will return a Set-Cookie with the new session token if the code is correct. The code is valid for 10 minutes.


POST to /auth/web

from wb-auth-service.0257f3bd | Note: Use POST to /auth/cookie instead

bankid


GET to /bankid/collect/:type/:orderRef

from wb-bankid-service.d165e6f1

Collects status and returns qr code. Returns status 202 while order is pending, and status 200 when complete, along with completionData


POST to /bankid/auth

from wb-bankid-service.d165e6f1

Initiates a BankID login. Will return details so client can either autostart bankid application or render a qr code which will be scanned from other device running BankID application.


POST to /bankid/sign

from wb-bankid-service.d165e6f1

Initiates a BankID sign order. Will return details so client can either autostart bankid application or render a qr code which will be scanned from other device running BankID application.

bulletin-board


DELETE to /bulletin-board/day/:groupId/:date

from wb-bulletin-board-service.36129c31

Delete the bulletin board information for a specific date


DELETE to /bulletin-board/device/:id

from wb-bulletin-board-service.36129c31

Delete a bulletin board device


GET to /bulletin-board/day/:groupId/:date

from wb-bulletin-board-service.36129c31

Getting a bulletin board inforamtion for a specific day


GET to /bulletin-board/device/registration

from wb-bulletin-board-service.36129c31

Check status of a TV registration, used from TV-app


GET to /bulletin-board/devices/:groupId

from wb-bulletin-board-service.36129c31

List devices for a specific group


GET to /bulletin-board/image/:lat/:lng

from wb-bulletin-board-service.36129c31

Get dash board image


GET to /bulletin-board/image/:lat/:lng/hash

from wb-bulletin-board-service.36129c31

Get current hash value of the data that should be shown on the bulletin board


GET to /bulletin-board/information/:groupId/:date/:lat/:lng

from wb-bulletin-board-service.36129c31

Get all information about a bulletin board screen for a specific day


GET to /bulletin-board/preview/:groupId/:date

from wb-bulletin-board-service.36129c31

TODO: Add description


POST to /bulletin-board/day/:groupId/:date

from wb-bulletin-board-service.36129c31

Update the information on a bulletin board for a specific date


POST to /bulletin-board/device

from wb-bulletin-board-service.36129c31

Create a new BulletinBoardDevice


POST to /bulletin-board/device/activate

from wb-bulletin-board-service.36129c31

Activate a device. Used from TV-app


POST to /bulletin-board/device/registration

from wb-bulletin-board-service.36129c31

Used from TV-app to initiate a TV registration and generate a registration code

clothes


GET to /clothes

from wb-media-library-service.4b362518

Get the clothe media entries.


GET to /clothes/:id

from wb-media-library-service.4b362518

Get a clothes media entry by id.

clothing


GET to /clothing/weather

from wb-clothes-service.f7f3d5c2

Get clothes


GET to /clothing/weather/location

from wb-clothes-service.f7f3d5c2

Get clothes for location


POST to /clothing/weather

from wb-clothes-service.f7f3d5c2

Create a clothing for weather and returns created clothing details


PUT to /clothing/:userId

from wb-clothes-service.f7f3d5c2

Update clothes

contact


DELETE to /contact/:id

from wb-contact-service.633e577b

Delete contact by id


GET to /contact

from wb-contact-service.633e577b

Get contacts for a user


POST to /contact

from wb-contact-service.633e577b

Creates a new contact


PUT to /contact/:id

from wb-contact-service.633e577b

Update contact by id

dev


GET to /dev/log

from wb-api-log-service.259ce3f3

POST to /dev/test-notifications

from wb-service.6a00ab05

Starts a notification test program. Will during every minute for 10 minutes send notifications.

event


DELETE to /event/:id

from wb-event-service.758c60e4

Deletes a calendar event by id. Permission: user for event, admin planner for user or planner with event permissions for user.


DELETE to /event/recurring/:recurringEventId/all

from wb-event-service.758c60e4

Deletes all recurring events in a series. Aka delets the recurring event entry.


DELETE to /event/recurring/:recurringEventId/future

from wb-event-service.758c60e4

deletes all future recurring event in a series. It sets the stopRecurring date of the recurrence event to the startDate of the event being deleted; preventing more events from being generated in the future.


DELETE to /event/recurring/:recurringEventId/one

from wb-event-service.758c60e4

Deletes one recurring event in a series. The recurring series will ignore the deleted event's original startDate and endDate and not add anything there.


GET to /event/:id

from wb-event-service.758c60e4

Gets a calendar event (calendar events & recurring event instances) by id. Permission: user for event, admin planner for user or planner with event permissions for user.


POST to /event

from wb-event-service.758c60e4

Creates a calendar event. Permission: user for event, admin planner for user or planner with event permissions for user.


POST to /event/:id/cancel

from wb-event-service.758c60e4

Cancels a calendar event by id. Permission: user for event, admin planner for user or planner with event permissions for user.


POST to /event/:id/done

from wb-event-service.758c60e4

Marks an event as done or not.


POST to /event/:id/progress

from wb-event-service.758c60e4

Saves progress of an event list items. Sample request json :- { listId1: [itemId1, itemId2], listId2: [itemId3] }


POST to /event/:id/stop-alarm

from wb-service.6a00ab05

Stop alarm for an event, will set lastSnoozedReminder to current date so that repeat alarms are not sent


POST to /event/recurring

from wb-event-service.758c60e4

Converts a normal event to a recurring event. The recurring event will repeat according to the inputted ruleset until the inputted stopRecurring date.


POST to /event/recurring/cancel/:recurringEventId/all

from wb-event-service.758c60e4

Cancel all recurring event in a series.


POST to /event/recurring/cancel/:recurringEventId/future

from wb-event-service.758c60e4

Cancel all future recurring event in a series.


POST to /event/recurring/cancel/:recurringEventId/one

from wb-event-service.758c60e4

Cancel one recurring event in a series.


PUT to /event/:id

from wb-event-service.758c60e4

Updates a calendar event by id. Permission: user for event, admin planner for user or planner with event permissions for user.


PUT to /event/recurring/:recurringEventId/all

from wb-event-service.758c60e4

Updates all recurring events in a series. Aka updates the recurring event entry.


PUT to /event/recurring/:recurringEventId/future

from wb-event-service.758c60e4

Updates all future recurring event in a series. It sets the stopRecurring date of the recurrence event to the startDate of the event being updated. Then a new recurring event is created with its startDate as the same as the previous stopRecurring and the stopRecurring of the original recurring event.


PUT to /event/recurring/:recurringEventId/one

from wb-event-service.758c60e4

Updates one recurring event in a series. It creates a new standard event out of that particular event and decouples it from the recurring series. The recurring series will ignore the created event's original startDate and endDate and not add anything there; even if the created event is moved (time wise).

file-service


GET to /file-service/health

from wb-file-service.916488e2

Gets current health of the service.


POST to /file-service/upload

from wb-file-service.916488e2

Uploads a file. Uses multipart data with the file to be uploaded as a form field called 'file'. Max file size is 50 mb. Returns status code 201 on success.


PUT to /file-service/image/:imageName

from wb-file-service.916488e2

Updates image width, height and/or rotation. Will process images and save in S3.

freja


POST to /freja/login

from wb-fruster-freja-service.a4cd3d41

POST to /freja/login/complete

from wb-fruster-freja-service.a4cd3d41

group


DELETE to /group/:id

from wb-organisation-service.582b2f48

Delete group by id.


GET to /group/:id

from wb-organisation-service.582b2f48

Gets group by id.


POST to /group

from wb-organisation-service.582b2f48

Creates an group for organisation.


PUT to /group/:id

from wb-organisation-service.582b2f48

Update group by id.

groups


GET to /groups

from wb-organisation-service.582b2f48

Get groups


GET to /groups/organisation

from wb-organisation-service.582b2f48

Get groups for users organisation

invite


GET to /invite/:id

from wb-user-service.7fb2335d

Gets an invite by id. Only if an invite is returned, a new planner can be created.

item


DELETE to /item/:id

from wb-list-service.de210bd2

Delete an item by id


GET to /item

from wb-list-service.de210bd2

Get items for an user

languages


GET to /languages

from wb-translation-service.f47aef45

Get list of enabled languages, used to list languages in app/web

license


GET to /license

from wb-license-service.d9f59c0d

Get all licenses


GET to /license/:id

from wb-license-service.d9f59c0d

Get license for given id


GET to /license/:id/organisations

from wb-license-service.d9f59c0d

Returns organisations which has given license id


GET to /license/current-subscription

from wb-license-service.d9f59c0d

Gets the most recent subscription for the logged in users organisation if there is one. Note that corp organisations do not have subscriptions for now.


GET to /license/invoice/:id

from wb-license-service.d9f59c0d

Returns invoice details


GET to /license/organisation/:id/invoices

from wb-license-service.d9f59c0d

Get invoices for the specific organisation


GET to /license/public

from wb-license-service.d9f59c0d

Get licenses for the given query params


POST to /license

from wb-license-service.d9f59c0d

Create license for organisation, right now only organisations of type FAMILIY are supported.


POST to /license/:id/deactivate

from wb-license-service.d9f59c0d

Decativate an active license


POST to /license/:id/subscribe

from wb-license-service.d9f59c0d

Subscribes to a new license. In case there already was an active one. this one will be marked inactive and the new one will get a trial period for the days left on this one.


POST to /license/subscription/:id/unsubscribe

from wb-license-service.d9f59c0d

Unsubscribes the logged in users organisation from their license.


PUT to /license/organisation/:id/switch-license

from wb-license-service.d9f59c0d

Switch license for the organisation


PUT to /license/subscription/:id/payment-method

from wb-license-service.d9f59c0d

license-admin


POST to /license-admin

from wb-user-service.7fb2335d

Creates a license admin. An email with token to set password will be sent out.

list


DELETE to /list/:id

from wb-list-service.de210bd2

Delete a list by id


GET to /list

from wb-list-service.de210bd2 | Note: Use GET to /lists instead.

Get lists for an user . Use http.GET_LISTS instead


GET to /list/:id

from wb-list-service.de210bd2

Gets a list by id


GET to /list/:id

from wb-service.6a00ab05

POST to /list

from wb-list-service.de210bd2

Creates a list for a user


POST to /list/item

from wb-list-service.de210bd2

Creates an item for a user to use in lists


POST to /list/user/:id/organisation-lists

from wb-list-service.de210bd2

Add Organisation lists to a user


PUT to /list/:id

from wb-list-service.de210bd2

Updates a list by id


PUT to /list/item/:id

from wb-list-service.de210bd2

Updates an item

lists


GET to /lists

from wb-list-service.de210bd2

Get lists

logbook


GET to /logbook/user/:id

from wb-audit-service.b6f9add5

Fetches logbook for a user for a configurable time. Current value: latest 24 hours.

mail


GET to /mail/template/:id

from wb-fruster-mail-service.fd3df99f

Get mail template by its id


POST to /mail/template

from wb-fruster-mail-service.fd3df99f

Creates a mail template


PUT to /mail/template/:id

from wb-fruster-mail-service.fd3df99f

Updates mail template

media-library


DELETE to /media-library/:mediaEntryId

from wb-media-library-service.4b362518

Deletes a media entry. The logged in user has to be a normal user (and the user of the media entry) or a planner of the user whose media entry is being updated.


GET to /media-library

from wb-media-library-service.4b362518

Gets media entries for a user by id. If no userId query param is provided, the logged in user's id is used.


POST to /media-library

from wb-media-library-service.4b362518

Adds a media entry to the media library of the inputted user. If logged in user is a normal user; the media entry is added to its library. If the logged in user is a planner; the inputted user of the inputted userId is validated to have logged in user as planner.


POST to /media-library/:mediaEntryId/tag

from wb-media-library-service.4b362518

Adds tag(s) to a media library entry. Tags can be search for using http.get.media-library . Each tag is only added once. Also increments metadata.approximateUses flag and sets metadata.lastUsed.


PUT to /media-library/:mediaEntryId

from wb-media-library-service.4b362518

Updates a media entry. The logged in user has to be a normal user (and the user of the media entry) or a planner of the user whose media entry is being updated.

message


GET to /message/conversation

from wb-fruster-message-service.3dab10ed

Gets all conversations for a user


GET to /message/conversation/:conversationId/message

from wb-fruster-message-service.3dab10ed

Gets all messages in a conversation


POST to /message

from wb-fruster-message-service.3dab10ed

PUT to /message/conversation/:conversationId

from wb-fruster-message-service.3dab10ed

Updates a conversation, currently you can only update name.

Websocket message:

  • ws.out.${userId}.message-service.updated-conversation with ConversationModel (w/ additional updatedBy id) as data - - (enabled: true)

Push notification:

  • Sends push to wb-translation-service.send-translated-push with ConversationModel (w/ additional updatedBy id) as data w/ data.type UPDATED_CONVERSATION - (enabled: true)

Email notifications:

  • call service endpoint with { from: string, to: string[], message: string, templateId: string, subject: string, templateArgs: {conversationId: string, referenceId?: string } as data `)

Pushes and websocket messages are sent to everyone in the conversation except the user who updated it.

news


GET to /news

from wb-news-service.a8f69c5e

Get news item from specified RSS source

notes


DELETE to /notes/:id

from wb-notes-service.9fcbac40

Delete note


GET to /notes

from wb-notes-service.9fcbac40

Get notes


POST to /notes

from wb-notes-service.9fcbac40

Create or update note to the inputted user.

notifications


POST to /notifications/register

from wb-push-service.04a28228

Register a FIREBASE device token (aka registrationToken) and user id.

  • Example of device token: APA91bHUyC8pJNmnEjkDeoeKKjo_i5IXQZef0VkG8aLy3ViYsgY0tuCY4gLGSKsTUuZRWWXyhFscDo-UogugDPfTT04yhPJVR_ELHvGowYXu49c9gvDG7WpUamgvCebLhWppHn8LoLa3H1FbeV6xNSdXh5rl7rABSw

POST to /notifications/unregister

from wb-push-service.04a28228

Unregisters either a FIREBASE device token (aka "registrationToken") or user id.

- If `registrationToken` is used, all users with that registrationToken are removed from push.

- If `userId` (logged in user) is used, all registrationTokens (devices) for that user will be removed from push.

organisation


DELETE to /organisation/:id

from wb-organisation-service.582b2f48

Delete organisation by id.


GET to /organisation

from wb-organisation-service.582b2f48

Get the list of organisations.


GET to /organisation/:id

from wb-organisation-service.582b2f48

Gets an organisation by id.


GET to /organisation/:id/organisation-admins

from wb-user-service.7fb2335d

Get the organisation admins of a organisation by organisation id


GET to /organisation/:id/planner

from wb-user-service.7fb2335d

Get the planners in an organisation by organisation id


GET to /organisation/:id/user

from wb-user-service.7fb2335d

Get the users in an organisation by organisation id


GET to /organisation/fragment

from wb-organisation-service.582b2f48

Gets name and type for logged in user's organisation.


GET to /organisation/statistics

from wb-organisation-service.582b2f48

Get organisation statistics.


POST to /organisation

from wb-organisation-service.582b2f48

Creates an organisation.


PUT to /organisation/:id

from wb-organisation-service.582b2f48

Update organisation by id.

organisation-admin


DELETE to /organisation-admin

from wb-user-service.7fb2335d

Delete an organisation admin


DELETE to /organisation-admin/:id

from wb-user-service.7fb2335d

Delete an organisation admin by id


DELETE to /organisation-admin/:userId/organisation/:orgId

from wb-user-service.7fb2335d

Remove a specific organisation from an organisation admin (multi-org scenario)


GET to /organisation-admin

from wb-user-service.7fb2335d

Get an organisation admins/the logged in organisation admins profile


POST to /organisation-admin

from wb-user-service.7fb2335d

Creates an organisation admin. If password is omitted during create, an email with token to set password will be sent out. Otherwise a welcome-email with link to login is sent.


PUT to /organisation-admin

from wb-user-service.7fb2335d | Note: Use undefined instead.

Update an organisation admin


PUT to /organisation-admin/:id/downgrade

from wb-user-service.7fb2335d

Downgrade an organisation admin to a planner

photo-diary


DELETE to /photo-diary/:id

from wb-photo-diary-service.3fdc93aa

Delete photo diary entry by id


GET to /photo-diary

from wb-photo-diary-service.3fdc93aa

Get photo diary


GET to /photo-diary/:id

from wb-photo-diary-service.3fdc93aa

Get photo diary entry by id


POST to /photo-diary

from wb-photo-diary-service.3fdc93aa

Adds a photo diary entry to the photo diary of the inputted user. If logged in user is a normal user; the photo diary entry is added to its diary . If the logged in user is a planner; the inputted user of the inputted userId is validated to have logged in user as planner.

pictograms


GET to /pictograms

from wb-media-library-service.4b362518

Get pictograms by language. If no language provided english will be returned.

planner


DELETE to /planner/:id

from wb-user-service.7fb2335d

Delete a planner


GET to /planner

from wb-user-service.7fb2335d

Get the planners/the logged in planners profile


POST to /planner/:id

from wb-user-service.7fb2335d

Creates a planner. If password is omitted during create, an email with token to set password will be sent out. Otherwise a welcome-email with link to login is sent.


PUT to /planner/:id

from wb-user-service.7fb2335d | Note: Use undefined instead.

Update a planner by id


PUT to /planner/:id/upgrade

from wb-user-service.7fb2335d

Upgrade a planner to an organisation admin

public


POST to /public/organisation

from wb-organisation-service.582b2f48

Creates an account in wellbee for new users from logged out mode. Creates an organisation, user and subscribes to a license. Right now: The user creating the account will have two roles: USER and ORGANISATION-ADMIN to get full access of the account.

reset-password


GET to /reset-password/:token

from wb-fruster-password-reset.a58514a9

Gets whether or not the provided token is still valid for resetting password. Typically used to display a warning to the user before posting new password that the token is invalid.


POST to /reset-password

from wb-fruster-password-reset.a58514a9

Requests a password reset to by providing a username. Username is configured to be: userName,email.


PUT to /reset-password

from wb-fruster-password-reset.a58514a9

Reset user's password with token from password reset-email.

staff


DELETE to /staff/:id

from wb-organisation-service.582b2f48

Delete a staff


GET to /staff/:id

from wb-organisation-service.582b2f48

Get staff by id


POST to /staff

from wb-organisation-service.582b2f48

Creates a new staff for a group


PUT to /staff/:id

from wb-organisation-service.582b2f48

Update a staff

staffs


GET to /staffs/:groupId

from wb-organisation-service.582b2f48

List staffs in a specific group

subscription-updates


POST to /subscription-updates

from wb-fruster-stripe-service.347d43ff

Webhook for stripe to use. Posts changes according to set up in stripe.

template


DELETE to /template/:id

from wb-event-service.758c60e4

Deletes a calendar event template by id. Permission: user for event, admin planner for user or planner with event permissions for user.


GET to /template

from wb-event-service.758c60e4

Gets calendar event templates for a user. Permission: user for event templates, admin planner for user or planner with event permissions for user.


GET to /template/:id

from wb-event-service.758c60e4

Gets a calendar event template by id. Permission: user of the template, admin planner for user or planner with event permissions for user.


POST to /template

from wb-event-service.758c60e4

Creates a calendar event template. Permission: user who the template will belong to, admin planner for user or planner with event permissions for user.


POST to /template/user/:id/organisation-templates

from wb-event-service.758c60e4

Add Organisation templates to a user


PUT to /template/:id

from wb-event-service.758c60e4

Updates a template by id. Permission: user for event, admin planner for user or planner with event permissions for user.

unique-mail


POST to /unique-mail

from wb-user-service.7fb2335d

Check unique mail address

user


DELETE to /user

from wb-user-service.7fb2335d

Delete the logged in user


DELETE to /user/:id

from wb-user-service.7fb2335d

Delete an user by id


DELETE to /user/:userId/planner

from wb-user-service.7fb2335d

Delete a planner from a user


GET to /user

from wb-user-service.7fb2335d

Get an user (Role: user) by id


GET to /user/:id

from wb-user-service.7fb2335d

Get an user (Role: user) by id


GET to /user/:id/event

from wb-event-service.758c60e4

Gets calendar events. Can be filtered by params. Permission: user for event, admin planner for user or planner with event permissions for user.


GET to /user/emails

from wb-user-service.7fb2335d

Get emails


GET to /user/search

from wb-user-service.7fb2335d

Search users by name, userName and email


GET to /user/video-contacts

from wb-user-service.7fb2335d

Return contact that logged in user is able to have video call with. Will return planners and fellow group member, if they have video enabled. Also includes online status.


POST to /user

from wb-user-service.7fb2335d

Creates an user. If password is omitted during create, an email with token to set password will be sent out. Otherwise a welcome-email with link to login is sent.


POST to /user/:id/invite-planner

from wb-user-service.7fb2335d

Invites a planner to a user. If a planner with that email is already registered in this organisation, the planner will receive an email with a link to accept. If no, that person will get an email with a registration link that will automatically add them as planner for user.


POST to /user/activate-bank-id-login/:userId

from wb-user-service.7fb2335d

Activate BankID login for a user


POST to /user/deactivate-bank-id-login/:userId

from wb-user-service.7fb2335d

Deactivate BankID login for a user


POST to /user/resend-verification/:email

from wb-fruster-user-service.c8a8fc7f

Generates a new email verification token and resends email w/ token to the provided user. Response has status code 200 if successful.


POST to /user/verify/:tokenId

from wb-fruster-user-service.c8a8fc7f

Verifies a user's email address by providing a token sent to the user by email. Response has status code 200 if successful.


PUT to /user

from wb-user-service.7fb2335d

Update user


PUT to /user/:id/details

from wb-user-service.7fb2335d

Update user details by id


PUT to /user/:userId/planner/:plannerId

from wb-user-service.7fb2335d

Update planner's permissions for a user


PUT to /user/update-password

from wb-fruster-user-service.c8a8fc7f

Updates password of auth user's account. Requires to validation of old password before new can be set. Response has status code 202 if successful.

video


POST to /video/:videoSessionId/join

from wb-fruster-video-service.98ed74e8

"Joins" by doing necessary steps to join a video session in the configured framework (TWILIO). Returns everything needed to join on the frontend.

video-call


POST to /video-call

from wb-video-service.ebe5b8af

Create a videocall


POST to /video-call/:id/hang-up

from wb-video-service.ebe5b8af

Should be called when user hangs up from their end or declines a call. Then the other participants get notified about that.


POST to /video-call/:id/join

from wb-video-service.ebe5b8af

Should be called when user hangs up from their end or declines a call. Then the other participants get notified about that.

wb-pictograms


GET to /wb-pictograms

from wb-media-library-service.4b362518

Get all the Wellbee pictograms by language. If no language provided swedish will be returned.

Ws endpoints

out


ws.out.:userId.>

from wb-api-gateway.da6147b1

Sends a message to a client (user) via websocket, if such connection exists. The message is sent to a userId with a label (in place of the >). If sent to ws.out.e3bcf884-8b49-46ae-8546-8dcc65b56932.new-notification (The label being new-notification) the user will receive the message in the handler registered to new-notification. Can be used to send a global message to all connected users by providing a * as userId. To specify a list of users to send to * is used as userId and req.to is set to an array of userIds.

c4d404ef


health.wb-news-service.c4d404ef

from wb-news-service.a8f69c5e

e9893311


health.wb-news-service.e9893311

from wb-news-service.8344b7e3

organisation


ws.get.organisation.fragment

from wb-organisation-service.582b2f48

Gets name and type for logged in user's organisation.

public


ws.out.public.>

from wb-api-gateway.da6147b1

Sends a message to all connected users. Public and non public connections. The > is the label for the message being sent. E.g. ws.out.public.psa (Where the label is psa). This endpoint will make it possible for the public clients to subscribe to the endpoint without knowing their assigned uuid.

Service endpoints

audit-service

|

audit-service.audit-log

from wb-fruster-audit-service.c68c8d17

Creates an audit log entry for a user.


audit-service.delete-audit-logs-by-query

from wb-fruster-audit-service.c68c8d17

Deletes audit logs by query. Used for GDPR cleanup and user data removal. Supports dryRun mode to preview deletions.


audit-service.get-audit-log-by-query

from wb-fruster-audit-service.c68c8d17

Gets audit logs by query. The result is sorted on timestamp. Supports pagination.

auth-service

|

auth-service.decode-token

from wb-auth-service.0257f3bd

Decodes a jwt token.



auth-service.generate-jwt-token-for-user.cookie

from wb-auth-service.0257f3bd

Generates a web JWT token for a user matching the inputted Mongo query. Used for external logins.


auth-service.generate-jwt-token-for-user.token

from wb-auth-service.0257f3bd

Generates a web JWT token for a user matching the inputted Mongo query. Used for external logins.



auth-service.get-session-details-by-user-id

from wb-auth-service.0257f3bd

Gets session details for a user. Will return all values as null if user hasn't been active since the session details functionality was implemented (sometime around 2020-06-11).


auth-service.logout-users-by-id

from wb-auth-service.0257f3bd

Logs out a list of users. Does not matter if user is logged in via cookie or token.


auth-service.refresh-token

from wb-auth-service.0257f3bd

Gets a fresh access token by providing a refresh token.

bank-id-service

|

bank-id-service.auth

from wb-bankid-service.d165e6f1

Internal service endpoint used to initiate a BankID login. Note that since 1st May 2024 BankID requires autostart token or qr instead of personal number.


bank-id-service.collect

from wb-bankid-service.d165e6f1

Collects status and returns qr code. Returns status 202 while order is pending, and status 200 when complete, along with completionData


bank-id-service.sign

from wb-bankid-service.d165e6f1

Internal service endpoint used to initiate a BankID login. Note that since 1st May 2024 BankID requires autostart token or qr instead of personal number.

contact-service

|

contact-service.delete-contacts

from wb-contact-service.633e577b

Delete all contacts by user id


contact-service.post-contact

from wb-contact-service.633e577b

Create a contact for a user

event-service

|

event-service.delete-by-user-ids

from wb-event-service.758c60e4

event-service.get-events

from wb-event-service.758c60e4

Gets events for a query.


event-service.get-future-events

from wb-event-service.758c60e4

Gets future events for a query.


event-service.post-templates

from wb-event-service.758c60e4

Creates templates for user

fruster-stripe-service

|

fruster-stripe-service.charge

from wb-fruster-stripe-service.347d43ff

Charges a customer or a card depending on if source is set to a customer token or a card token.


fruster-stripe-service.create-account

from wb-fruster-stripe-service.347d43ff

Create account at Stripe for a company.


fruster-stripe-service.create-customer

from wb-fruster-stripe-service.347d43ff

Creates customer at Stripe. Uses Payment_method instead of sources for payment set up.


fruster-stripe-service.create-payment-method-intent

from wb-fruster-stripe-service.347d43ff

Payment intents keep track of authorization for cards depended on the cards/countries rules


fruster-stripe-service.create-plan

from wb-fruster-stripe-service.347d43ff

Creates a plan. Plans define the base price, currency, and billing cycle for subscriptions


fruster-stripe-service.create-product

from wb-fruster-stripe-service.347d43ff

Creates a product. Product objects describe items that your customers can subscribe to with a Subscription. An associated Plan determines the product pricing.


fruster-stripe-service.create-subscription

from wb-fruster-stripe-service.347d43ff

Creates a subscription at Stripe. A subscription is when you combine a plan with a customer. It allows you to charge a customer on a recurring basis.


fruster-stripe-service.get-customer

from wb-fruster-stripe-service.347d43ff

Get a customer.


fruster-stripe-service.get-invoice

from wb-fruster-stripe-service.347d43ff

Gets a invoice by id


fruster-stripe-service.get-invoices

from wb-fruster-stripe-service.347d43ff

Gets all invoices of given customer


fruster-stripe-service.get-payment-method

from wb-fruster-stripe-service.347d43ff

Gets the card payment method for given id


fruster-stripe-service.get-payment-methods

from wb-fruster-stripe-service.347d43ff

Gets the card payment method for a customer


fruster-stripe-service.get-subscription

from wb-fruster-stripe-service.347d43ff

Get a specific subscription by


fruster-stripe-service.get-subscriptions

from wb-fruster-stripe-service.347d43ff

Get list of subscriptions of the customer


fruster-stripe-service.get-upcoming-invoice

from wb-fruster-stripe-service.347d43ff

Get upcoming invoice


fruster-stripe-service.refund

from wb-fruster-stripe-service.347d43ff

Refunds an existing charge. Can be partially refunded if amount is set to lower than initial charge.


fruster-stripe-service.unsubscribe

from wb-fruster-stripe-service.347d43ff

Unsubscribes from a subscription. No further payments will be made.


fruster-stripe-service.update-account

from wb-fruster-stripe-service.347d43ff

Updates account at Stripe for a company.


fruster-stripe-service.update-customer

from wb-fruster-stripe-service.347d43ff

Updates customer details. Can be used to simultaniously attach a new default payment method.


fruster-stripe-service.update-subscription

from wb-fruster-stripe-service.347d43ff

Update an existing subscription

fruster-web-bus

|

fruster-web-bus.unregister-client

from wb-api-gateway.da6147b1

Request to (forcefully) unregister (a) websocket client. Can be done by either providing the jwt-token to unregister one connection or the id of the user to unregister all connections for user.

interceptor

|

interceptor.audit.message-send

from wb-audit-service.b6f9add5

Intercepts all post message responses and stores an audit for them with action MESSAGE_SEND

list-service

|

list-service.delete-by-user-ids

from wb-list-service.de210bd2

Delete all lists and items by user ids via service call


list-service.get-lists-by-query

from wb-list-service.de210bd2

list-service.post-lists

from wb-list-service.de210bd2

mail-service

|

mail-service.get-template-by-id

from wb-fruster-mail-service.fd3df99f

Get mail template by its id


mail-service.send

from wb-fruster-mail-service.fd3df99f | Note: Use mail-service.send-mail instead

mail-service.send-mail

from wb-fruster-mail-service.fd3df99f

Sends a mail to one or more mails (emails) addresses

message-service

|

message-service.get-conversations-by-query

from wb-fruster-message-service.3dab10ed

Gets conversations by query

password-reset-service

|

password-reset-service.generate-password-reset

from wb-fruster-password-reset.a58514a9

Works much like the password-reset-service.request-password-reset endpoint but does not send email and returns token in response. Username is configured to be: userName,email


password-reset-service.get-password-reset

from wb-fruster-password-reset.a58514a9

Gets whether or not the provided token is still valid for resetting password. Typically used to display a warning to the user before posting new password that the token is invalid.


password-reset-service.request-password-reset

from wb-fruster-password-reset.a58514a9

Requests a password reset to by providing a username. Username is configured to be: userName,email.


password-reset-service.reset-password

from wb-fruster-password-reset.a58514a9

Reset user's password with token from password reset-email.

pub

|

pub.wb-organisation-service.organisation-deleted

from wb-user-service.7fb2335d

Delete all the accounts associated with an organisation listening to organisation service


pub.wb-user-service.users-deleted

from wb-media-library-service.4b362518

Delete all media entries by user ids via listening to user service


pub.wb-user-service.users-deleted

from wb-list-service.de210bd2

Delete all lists and items by user ids via listening to user service


pub.wb-user-service.users-deleted

from wb-contact-service.633e577b

Delete all contacts by user ids via listening to user service


pub.wb-user-service.users-deleted

from wb-event-service.758c60e4

Deletes all events and templates by user ids via listening to user service

push-service

|

push-service.get-logs

from wb-push-service.04a28228

Get push logs


push-service.send

from wb-push-service.04a28228 | Note: Use push-service.send-notification instead.

Sends a push notification to one or many users.


push-service.send-notification

from wb-push-service.04a28228

Sends a push notification to one or many users.


push-service.unregister

from wb-push-service.04a28228

Unregisters all registrationTokens (devices) for the provided user.

schedule-service

|

schedule-service.create-job

from wb-schedule-service.6116cdef

Creates or updates (upserts) a new job that runs on a given interval or time. Read more about fruster-schedule-service.


schedule-service.remove-job

from wb-schedule-service.6116cdef

Removes a previously scheduled job.

user-service

|

user-service.add-roles

from wb-fruster-user-service.c8a8fc7f

Adds inputted roles to specified user. Can only add roles existing in configuration. Response has status code 202 if successful.


user-service.create-user

from wb-fruster-user-service.c8a8fc7f

Creates a fruster user. Must include a few base fields but can contain any number of custom fields. Response has status code 201 if successful. Automatically splits data between user and profile if configured to.


user-service.delete-user

from wb-fruster-user-service.c8a8fc7f

Deletes a user. Response has status code 200 if successful. pub.user-service.user-deleted is published after deletion


user-service.delete-users-by-query

from wb-fruster-user-service.c8a8fc7f

Deletes users by a query. Response has status code 200 if successful. pub.user-service.user-deleted is published after deletion. Request body is the query to delete with. Cannot use empty query.


user-service.get-by-aggregate

from wb-fruster-user-service.c8a8fc7f

Gets user records by aggregate without process aggregate result


user-service.get-profiles-by-query

from wb-fruster-user-service.c8a8fc7f

Gets profiles by query. Note: Return data may vary depending on the configuration. Configured profile fields: ALL (Everything except the fields configured for user)


user-service.get-scopes

from wb-fruster-user-service.c8a8fc7f

Gets all scopes for specified roles in a flat array. E.g. input ['admin', 'user', 'super-admin'] would return ['', 'admin.', 'profile.get']. Response has status code 200 if successful.


user-service.get-user

from wb-fruster-user-service.c8a8fc7f | Note: Use user-service.get-users-by-query instead.

Gets users by query. Response has status code 200 if successful.


user-service.get-users-by-aggregate

from wb-fruster-user-service.c8a8fc7f

Gets users by aggregate. The result process with view model


user-service.get-users-by-query

from wb-fruster-user-service.c8a8fc7f

Gets users by query. Note: Return data may vary depending on the configuration. Configured user fields: userName,nonRestrictedRoles,personalNumber (Will always return id,email,password,roles,scopes)

Can be expanded to return both user and profile data using expand: "profile" if configured to split the data. If expand is used; the query can be used to query profile fields as well: { "profile.firstName": "Bob" }. With expand; the data is returned {...userData, profile: {...profileData}}. Can fetch only user count without users, using count: true. if count is used returns totalCount with empty users array


user-service.remove-roles

from wb-fruster-user-service.c8a8fc7f

Removes inputted roles from specified user. Cannot remove the last role. Response has status code 202 if successful.


user-service.resend-verification

from wb-fruster-user-service.c8a8fc7f

Generates a new email verification token and resends email w/ token to the provided user. Response has status code 200 if successful.


user-service.set-password

from wb-fruster-user-service.c8a8fc7f

Sets password of a user. Used by password reset service. Note: Updating a user's password should be done w/ the update-password endpoint. Response has status code 202 if successful.


user-service.update-password

from wb-fruster-user-service.c8a8fc7f

Updates password of an account. Requires to validation of old password before new can be set. Response has status code 202 if successful.


user-service.update-profile

from wb-fruster-user-service.c8a8fc7f

Updates a user. Can contain any number of custom fields. Response has status code 200 if successful.


user-service.update-user

from wb-fruster-user-service.c8a8fc7f

Updates a user. Can contain any number of custom fields. Response has status code 200 if successful.


user-service.validate-password

from wb-fruster-user-service.c8a8fc7f

Validates that inputted password becomes the same hash as for an account. Typically used by auth service for login. Response has status code 200 if successful. Validation can be done on userName,email


user-service.verify-email

from wb-fruster-user-service.c8a8fc7f

Verifies a user's email address by providing a token sent to the user by email. Response has status code 200 if successful.

video-service

|

video-service.create-video-session

from wb-fruster-video-service.98ed74e8

Creates a video session between two or more users


video-service.join-video-session

from wb-fruster-video-service.98ed74e8

"Joins" by doing necessary steps to join a video session in the configured framework (TWILIO). Returns everything needed to join on the frontend.

wb-bulletin-board-service

|

wb-bulletin-board-service.weather-forcast

from wb-bulletin-board-service.36129c31

TODO: Add description

wb-event-service

|

wb-event-service.check-event-reminder-alarm

from wb-event-service.758c60e4

Checks for started events (including recurring events) for every 30 seconds and send push notifications for started events within 5 minutes boundary time to the event's startTime.


wb-event-service.check-event-start

from wb-event-service.758c60e4

Checks for starting events (including recurring events) for every minute and send push notifications for started events.


wb-event-service.get-amount-future-events-for-list

from wb-event-service.758c60e4

Get future events amount by listId, within time frame


wb-event-service.get-events-done-logs

from wb-event-service.758c60e4

Get events marked as done in a specific time period until now.

wb-file-service

|

wb-file-service.delete-file

from wb-file-service.916488e2

Delete file from s3 bucket


wb-file-service.get-files

from wb-file-service.916488e2

Get all files in the bucket


wb-file-service.get-signed-url

from wb-file-service.916488e2

Gets an temporary url to a file that will expire after provided or default TTL


wb-file-service.is-processing-completed

from wb-file-service.916488e2

Check whether the video file processing is completed or not

wb-license-service

|

wb-license-service.get-by-query

from wb-license-service.d9f59c0d

Get licenses by query


wb-license-service.get-current-subscription

from wb-license-service.d9f59c0d

wb-license-service.get-organisation-license

from wb-license-service.d9f59c0d

To get license of the given organisation


wb-license-service.get-upcoming-invoice

from wb-license-service.d9f59c0d

Get upcoming invoice.


wb-license-service.handle-subscription-updates

from wb-license-service.d9f59c0d

Get's called from stripe-service after it has been triggered from stipe (webhook)


wb-license-service.subscribe-to-license

from wb-license-service.d9f59c0d

Set up user for stripe subscription. Will create customer and subscription at stripe.


wb-license-service.unsubscribe

from wb-license-service.d9f59c0d

Unsubscribes an organisation from their license.


wb-license-service.update-subscription

from wb-license-service.d9f59c0d

To update an existing subscription

wb-media-library-service

|

wb-media-library-service.add-tags

from wb-media-library-service.4b362518

Adds tag(s) to a media library entry. These tags are used to determine where the media entry has been used. E.g. CALENDAR. Each tag is only added once. Should be used when a media library entry is being linked to something (E.g. when creating a calendar event). Also increments metadata.approximateUses flag and sets metadata.lastUsed.


wb-media-library-service.delete-media-entries-by-user-ids

from wb-media-library-service.4b362518

Delete media entries by user ids.


wb-media-library-service.get-clothes

from wb-media-library-service.4b362518

Gets clothe media entries


wb-media-library-service.get-media-entries-by-query

from wb-media-library-service.4b362518

Gets media entries by query.

wb-organisation-service

|

wb-organisation-service.create-organisation

from wb-organisation-service.582b2f48

Creates an organisation via service call


wb-organisation-service.get-group

from wb-organisation-service.582b2f48

Gets group via service call


wb-organisation-service.get-groups-by-query

from wb-organisation-service.582b2f48

Gets group via service call


wb-organisation-service.get-organisation

from wb-organisation-service.582b2f48

Gets an organisation via service call


wb-organisation-service.get-organisations-by-query

from wb-organisation-service.582b2f48

Gets an organisation via service call


wb-organisation-service.list-staff

from wb-organisation-service.582b2f48

List staffs in a specific group

wb-photo-diary-service

|

wb-photo-diary-service.get-logs

from wb-photo-diary-service.3fdc93aa

Get photo diary entry logs by query

wb-translation-service

|

wb-translation-service.send-translated-push

from wb-translation-service.f47aef45

Send translated push messages

wb-user-service

|

wb-user-service.create-user

from wb-user-service.7fb2335d

Creates an user with org admin scope. Used when creating user for organisation of type Family. Possible to add content to request. Can be used to specify what content the new user should have from the start. Supported values are empty (default) and wellbee. wellbee content is example content provided by Wellbee. Empty is no content at all.


wb-user-service.get-pending-planners

from wb-user-service.7fb2335d

Get pending planners of the organisation


wb-user-service.get-users

from wb-user-service.7fb2335d

Get user details for conversations


wb-user-service.intercept-user-login

from wb-user-service.7fb2335d

Intercepts user login responses to force user to login with BankID if user have BankID activated


wb-user-service.organisation-admin

from wb-user-service.7fb2335d

Creates an organisation admin

wb-video-service

|

wb-video-service.get-call-logs

from wb-video-service.ebe5b8af

To get call logs of the given user