How to get space_id on server side

Hi team, can you help me please to get space on the server side? I need to do smth like to get data based on space.

		path: '/api/get_data',
		validate: false,
	async (context, req, response) => {
                const space = someFunctionThatHelpsToGetSpaceOnServerSide()
                const result = await{
                    index: space + "management-data"       
		return response.ok({
			body: result

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.