POST/sql in Version4.9.1

I have been able to get an authorization token in using localhost:9047/apiv2/login, but with a POST/sql request: v2 nor v3 did not work to get a JobID, I get an html script as a response instead. Is there a different method to get the Jobid for Dremio v4.9.1?