API: Embed trainings in members list


Hi, would it be possible to embed trainigs in /members endpoint? In a similar way as /members?embed=activePackages?

Why we need it:
For some machines our members must undergo safety training (BOZP). This training should be periodically renewed (by law). So we need a list of members, whose training will “expire” shortly, so we can notify them.

Right now we have to call /members?trainingCourses=## and then cycle thru every member, call /members/###/?embed=trainings and check member._embedded.trainings.date. Which is inefficient an with hundreds of trained members takes a long time.

Many thanks from Fablab Brno.

Inspiration: Our integrations at FabLab Brno

Hi Jakub,

sure, that shouldn’t be a big deal. I’ll add it to our list for the next release. I’ll let you know as soon as it’s available.

Best regards,


Hi @jakub.stacho,

you can now call /api/v1/members?embed=trainings to fetch members together with their trainings. Together with trainingCourses=… you should be able to get the whole information with a single request.

Best regards,