API call returns a web, full html

So, when I do a request via API, it doesn’t throw error, status code is 200, but…


It returns a full html, with , and . As if it acceded to the web as a user.

The request is a POST to library, from a Laravel framework.

Also, a post to layout works fine both in Laravel, and in plain php, but so far, a post to library, only on plain php, so I think it may be a problem with library but it shouldn’t.