Javascript
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.createVapiCall({ vapiEndOfCallReportPayload: { call: 'bar', type: 'bar', status: 'bar', assistant: 'bar', customer: 'bar', phoneNumber: 'bar', artifact: 'bar', startedAt: 'bar', endedAt: 'bar', endedReason: 'bar', }, }); console.log(response.data);
{ "data": { "callId": "<string>" } }
Process and upload a VAPI call to Roark evaluation
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Vapi call upload payload
Created Vapi call upload job
The response is of type object.
object