Skip to content

Built for people who want to own their automations. Join the waitlist for an invite.

Package listing

@kody/cal-com

src/get-profile.js

15 lines · 563 B · JavaScript
import { getProfile } from './cal-com.js'

/**
 * Read the authenticated Cal.com account profile.
 * @param {Object} [input]
 * @param {string} [input.apiVersion] Optional `cal-api-version` header override.
 * @returns {Promise<Record<string, unknown>>} Cal.com `/me` profile payload.
 * @example
 * import getProfile from 'kody:@kody/cal-com/get-profile'
 * const result = await getProfile()
 * // => { id: 1, username: '...', email: '...', timeZone: '...' }
 */
export default async function getProfileEntrypoint(input = {}) {
	return await getProfile(input)
}