POST
/
v1
/
retell
/
call
import Roark from '@roarkanalytics/sdk';

const client = new Roark({
  bearerToken: process.env['ROARK_API_BEARER_TOKEN'], // This is the default and can be omitted
});

const response = await client.integrations.createRetellCall({
  retellCallEndedPayload: { event: 'bar', call: 'bar' },
});

console.log(response.data);
{
  "data": {
    "callId": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Retell call upload payload

Response

200
application/json

Created Retell call upload job

The response is of type object.