Some API endpoints (particularly those which use multipart/form-data still check for a csrf cookie even when it's purely an API call.
For API calls, passing an empty csrf cookie will work as long as the Authorization header is correct. The JSON parsing strictly checks for the presence of molly_csrf field but discards it later on for API functions.