This SDK provides a type-safe way to interact with the Vapi API. It offers a convenient and strongly-typed interface for making HTTP requests to Vapi's REST endpoints, making it easier for developers to integrate Vapi services into their TypeScript or JavaScript projects.
Warning
This is an unofficial SDK and is not endorsed by Vapi.
Install the package using npm:
npm install vapi-typescript-sdk
Or using yarn:
yarn add vapi-typescript-sdk
Or using pnpm:
pnpm add vapi-typescript-sdk


import { vapiClient } from 'vapi-typescript-sdk';
export const { GET, POST, PUT, PATCH, DELETE } = vapiClient({
headers: {
'Content-Type': 'application/json',
Authorization: 'Bearer YOUR_API_KEY_HERE',
},
});
// Fully typed + Autocompletion π
const calls = await GET('/call', {
params: {
query: {
limit: 1000,
},
},
});
For detailed information on available methods and their parameters, please refer to the Vapi API documentation.
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
This SDK is not officially associated with or endorsed by Vapi. Use at your own risk.
For issues, feature requests, or questions, please open an issue on the GitHub repository.