AI Integration Quick Reference
AI Integration Quick Reference
setCallType(), setCallStatus(), setCallCategory(), setCallDirection(), setHasRecording(), setUid(), setGuid()CallLogRequestBuilder to fetch and filter logs, and getCallDetails() to get details for a specific session.
Before you begin, make sure you’ve completed the Calls SDK Setup.
Fetch Call Logs
Build a request withCallLogRequestBuilder, then call fetchNext() or fetchPrevious() to retrieve logs. Call either method repeatedly on the same builder instance to paginate through results.
- TypeScript
- JavaScript
Builder Settings
| Setting | Description |
|---|---|
setLimit(limit: number) | Specifies the number of call logs to fetch. |
setCallType(callType: 'video' or 'audio') | Sets the type of calls to fetch (call or meet). |
setCallStatus(callStatus: 'ongoing' or 'busy' or 'rejected' or 'cancelled' or 'ended' or 'missed') | Sets the status of calls to fetch (initiated, ongoing, etc.) |
setHasRecording(hasRecording: boolean) | Sets whether to fetch calls that have recordings. |
setCallCategory(callCategory: 'call' or 'meet') | Sets the category of calls to fetch (call or meet). |
setCallDirection(callDirection: 'incoming' or 'outgoing') | Sets the direction of calls to fetch (incoming or outgoing) |
setUid(uid: string) | Sets the UID of the user whose call logs to fetch. |
setGuid(guid: string) | Sets the GUID of the user whose call logs to fetch. |
setAuthToken(authToken: string) | Sets the Auth token of the logged-in user. |
Fetch Next
Retrieves the next set of call logs:- TypeScript
- JavaScript
Fetch Previous
Retrieves the previous set of call logs:- TypeScript
- JavaScript
fetchNext() and fetchPrevious() methods return an array of CallLog objects.
Get Call Details
Retrieve details for a specific call session usinggetCallDetails():
- TypeScript
- JavaScript
"SESSION_ID" with the ID of the session you are interested in.
Next Steps
Default Calling
Implement the complete ringing call flow
Recording
Record audio and video calls
Direct Calling
Start call sessions without the ringing flow
Calling Setup
Install and initialize the Calls SDK