InternalThe config object for configuring the Rettiwt instance.
Get the shared calendar (busy slots) of a user, to find a time to meet with them.
The ID of the target user.
Optionalfrom: DateThe start of the time window. Defaults to now.
Optionalto: DateThe end of the time window. Defaults to 7 days after from.
The busy slots of the user, or undefined if the user does not share their calendar.
Get the list of external calendars (Google, Outlook) linked to X Calls.
The list of linked calendars.
Cancel a scheduled call.
The ID of the scheduled call to cancel.
Optionaloptions: ICallOccurrenceOptionsThe occurrence(s) to cancel, for recurring calls, and whether to notify the guests by email.
Whether the cancellation was successful.
import { CallRecurrenceScope, Rettiwt } from 'rettiwt-api';
const rettiwt = new Rettiwt({ apiKey: API_KEY });
// Cancelling a whole recurring series and notifying the guests
rettiwt.call.cancel('1234567890', { scope: CallRecurrenceScope.ALL, emailGuests: true })
.then(res => {
console.log(res);
})
.catch(err => {
console.log(err);
});
Create a call link to use later.
OptionalaudioOnly: booleanWhether the call is audio-only.
The ID of the created call.
Customize how a scheduled call appears in the calendar of the logged-in user.
The ID of the scheduled call to customize.
The color and/or visibility to apply. Replaces the previous customization.
Optionaloptions: ICallOccurrenceOptionsThe occurrence(s) to customize, for recurring calls.
Whether the customization was successful.
Get the calendar of the logged-in user, including scheduled calls, holidays and events from linked calendars.
Optionalfrom: DateThe start of the time window. Defaults to now.
Optionalto: DateThe end of the time window. Defaults to 7 days after from.
The occurrences of the events within the time window, sorted by start time.
Sync the linked external calendars and get their events.
Optionalfrom: DateThe start of the time window. Defaults to now.
Optionalto: DateThe end of the time window. Defaults to 7 days after from.
The occurrences of the events of the linked calendars within the time window.
Set the reminder of a scheduled call, for the logged-in user.
The ID of the scheduled call.
The number of minutes before the call at which to be reminded (0 to 10080).
Optionaloptions: ICallOccurrenceOptionsThe occurrence(s) to set the reminder for, for recurring calls.
Whether the reminder was set successfully.
Makes an HTTP request according to the given parameters.
The requested resource.
The args to be used for the request.
The raw Axios response.
import { FetcherService, ResourceType } from 'rettiwt-api';
// Creating a new FetcherService instance using the given 'API_KEY'
const fetcher = new FetcherService({ apiKey: API_KEY });
// Fetching the details of the User with username 'user1'
fetcher.request(ResourceType.USER_DETAILS_BY_USERNAME, { id: 'user1' })
.then(res => {
console.log(res);
})
.catch(err => {
console.log(err);
});
Respond to a scheduled call invitation.
The ID of the scheduled call.
The response to the invitation.
Optionaloptions: ICallOccurrenceOptionsThe occurrence(s) to respond to, for recurring calls.
Whether the response was successful.
Schedule a new call.
The details of the call to schedule.
The ID of the scheduled call.
import { Rettiwt } from 'rettiwt-api';
const rettiwt = new Rettiwt({ apiKey: API_KEY });
// Scheduling a weekly 30 minutes call with a given user
rettiwt.call.schedule({
title: 'Weekly sync',
startsAt: new Date('2026-10-15T10:00:00Z'),
duration: 30,
inviteeIds: ['1234567890'],
recurrence: 'FREQ=WEEKLY;BYDAY=TH',
})
.then(res => {
console.log(res);
})
.catch(err => {
console.log(err);
});
Search for people to invite to a call.
The name or username to search for.
Optionalcount: numberThe maximum number of users to fetch. Defaults to 8.
The list of matching users. Only users with canInvite set to true can be invited.
Unlink an external calendar from X Calls.
The provider of the calendar to unlink.
Whether the calendar was unlinked successfully.
Update a scheduled call.
The ID of the scheduled call to update.
The updates to apply. Only the given fields are updated.
Optionaloptions: ICallOccurrenceOptionsThe occurrence(s) to update, for recurring calls, and whether to notify the guests by email.
Whether the update was successful.
Handles interacting with resources related to X Calls.