Adding audio record to call log

Hi!
I’m trying to attach an audio file to an activity but I am keep getting Invalid multipart payload format error response. Request example:


The same request works in postman, could you help me?

Hi @Alexander
Welcome to the community :wave:
Can you share the complete error message? The following snippet should work fine with Unirest

var unirest = require('unirest');
var req = unirest('POST', 'https://api.pipedrive.com/v1/callLogs/<call_log_id>/recordings')
  .headers({
    'Accept': 'application/json',
    'Authorization': 'Bearer <Token>'
  })
  .attach('file', 'audio.wav')
  .end(function (res) {
    if (res.error) console.log(res.error);
    console.log(res.raw_body);
  });