Skip to main content
POST
/
v1
/
retell
/
call
JavaScript
import Roark from '@roarkanalytics/sdk';

const client = new Roark({
  bearerToken: 'My Bearer Token',
});

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

retellCallEndedPayload
object
required

Raw Retell data forwarded directly from the Retell call_ended webhook

properties
object

Optional metadata (key-value pairs) to include with the call. Useful for filtering and display in call details.

skipAlreadyImported
boolean
default:false

Skip already imported Retell calls with the same Retell call id.

Response

Created Retell call upload job

data
object
required

Retell call upload response

I