Is there is a way to access api level middleware in strapi v4.5

So to check required fields validations i am writing middleware. Is there any option to check validation while creating the data?