Empty API response



I’m trying to create tasks and deals via the API, and get an empty response back for both of the POST-requests.

For the Deal, I’m requesting

    {"value":"New Deal Ipsum","name":"dealname"},

Authing through header: Authorization: Bearer %s
and don’t get any response at all from Hubspot. Just empty.

The same thing happens when I try to create a task

  "description":"Creating a test task",
  "name":"Test Task",

No response here either.

A bit hard to debug when you simply get no response at all, what am I doing wrong?..


@kalleericson are you setting the content-type: application/json header in your request?


Silly mistake. Awful haha. Thank you!