You can get the ApiVersion in the endpoint
To do this, use httpContext.GetRequestedApiVersion();
https://github.com/dotnet/aspnet-api-versioning/wiki/Accessing-Version-Information
Example:
app.MapPost("/create", ... (HttpContext httpContext ...) =>
{
ApiVersion apiVersion = httpContext.GetRequestedApiVersion();
...
});