Error 401 using API Session Token in Google Apps Script

Hi @Domarys
I don't know how App Script work, but the header should be Content-Type.
You might learn something from this: API POST /api/card/:card-id/query/:export-format with parameters