#api-client #client #config #api-bindings #vapi

bin+lib vapi-client

Voice AI for developers

6 releases

Uses new Rust 2024

new 0.1.4 Mar 27, 2025
0.1.3 Mar 24, 2025
0.0.1 Mar 17, 2025

#302 in Web programming

Download history 94/week @ 2025-03-12 327/week @ 2025-03-19

421 downloads per month

MIT license

1.5MB
33K SLoC

vapi-client

A Rust API client for Vapi - Voice AI for developers.

Crates.io Documentation API for building voice assistants

Overview

This API client was generated by the OpenAPI Generator project. By using the openapi-spec from a remote server, you can easily generate an API client.

  • API version: 1.0
  • Package version: 0.1.4
  • Generator version: 7.12.0
  • Build package: org.openapitools.codegen.languages.RustClientCodegen

Installation

Add this to your Cargo.toml:

[dependencies]
vapi-client = "0.1.4"

Usage

use vapi_client::apis::AssistantsApi;
use vapi_client::models::CreateAssistantDto;
use vapi_client::apis::configuration::Configuration;

async fn example() -> Result<(), Box<dyn std::error::Error>> {
    let mut config = Configuration::new();
    config.bearer_access_token = Some("your_api_key".to_string());
    
    let assistants_api = AssistantsApi::new(config);
    let assistants = assistants_api.assistant_controller_find_all().await?;
    
    println!("Found {} assistants", assistants.len());
    
    Ok(())
}

Documentation for API Endpoints

All URIs are relative to https://api.vapi.ai

Class Method HTTP request Description
AnalyticsApi analytics_controller_query POST /analytics Create Analytics Queries
AssistantsApi assistant_controller_create POST /assistant Create Assistant
AssistantsApi assistant_controller_find_all GET /assistant List Assistants
AssistantsApi assistant_controller_find_one GET /assistant/{id} Get Assistant
AssistantsApi assistant_controller_remove DELETE /assistant/{id} Delete Assistant
AssistantsApi assistant_controller_update PATCH /assistant/{id} Update Assistant
BlocksApi block_controller_create POST /block Create Block
BlocksApi block_controller_find_all GET /block List Blocks
BlocksApi block_controller_find_one GET /block/{id} Get Block
BlocksApi block_controller_remove DELETE /block/{id} Delete Block
BlocksApi block_controller_update PATCH /block/{id} Update Block
CallsApi call_controller_create POST /call Create Call
CallsApi call_controller_delete_call_data DELETE /call/{id} Delete Call Data
CallsApi call_controller_find_all GET /call List Calls
CallsApi call_controller_find_one GET /call/{id} Get Call
CallsApi call_controller_update PATCH /call/{id} Update Call
FilesApi file_controller_create POST /file Upload File
FilesApi file_controller_find_all GET /file List Files
FilesApi file_controller_find_one GET /file/{id} Get File
FilesApi file_controller_remove DELETE /file/{id} Delete File
FilesApi file_controller_update PATCH /file/{id} Update File
KnowledgeBaseApi knowledge_base_controller_create POST /knowledge-base Create Knowledge Base
KnowledgeBaseApi knowledge_base_controller_find_all GET /knowledge-base List Knowledge Bases
KnowledgeBaseApi knowledge_base_controller_find_one GET /knowledge-base/{id} Get Knowledge Base
KnowledgeBaseApi knowledge_base_controller_remove DELETE /knowledge-base/{id} Delete Knowledge Base
KnowledgeBaseApi knowledge_base_controller_update PATCH /knowledge-base/{id} Update Knowledge Base
LogsApi logging_controller_logs_delete_query DELETE /logs Delete Logs
LogsApi logging_controller_logs_query GET /logs Get Logs
PhoneNumbersApi phone_number_controller_create POST /phone-number Create Phone Number
PhoneNumbersApi phone_number_controller_find_all GET /phone-number List Phone Numbers
PhoneNumbersApi phone_number_controller_find_one GET /phone-number/{id} Get Phone Number
PhoneNumbersApi phone_number_controller_remove DELETE /phone-number/{id} Delete Phone Number
PhoneNumbersApi phone_number_controller_update PATCH /phone-number/{id} Update Phone Number
SquadsApi squad_controller_create POST /squad Create Squad
SquadsApi squad_controller_find_all GET /squad List Squads
SquadsApi squad_controller_find_one GET /squad/{id} Get Squad
SquadsApi squad_controller_remove DELETE /squad/{id} Delete Squad
SquadsApi squad_controller_update PATCH /squad/{id} Update Squad
TestSuiteRunsApi test_suite_run_controller_create POST /test-suite/{testSuiteId}/run Create Test Suite Run
TestSuiteRunsApi test_suite_run_controller_find_all_paginated GET /test-suite/{testSuiteId}/run List Test Suite Runs
TestSuiteRunsApi test_suite_run_controller_find_one GET /test-suite/{testSuiteId}/run/{id} Get Test Suite Run
TestSuiteRunsApi test_suite_run_controller_remove DELETE /test-suite/{testSuiteId}/run/{id} Delete Test Suite Run
TestSuiteRunsApi test_suite_run_controller_update PATCH /test-suite/{testSuiteId}/run/{id} Update Test Suite Run
TestSuiteTestsApi test_suite_test_controller_create POST /test-suite/{testSuiteId}/test Create Test
TestSuiteTestsApi test_suite_test_controller_find_all_paginated GET /test-suite/{testSuiteId}/test List Tests
TestSuiteTestsApi test_suite_test_controller_find_one GET /test-suite/{testSuiteId}/test/{id} Get Test
TestSuiteTestsApi test_suite_test_controller_remove DELETE /test-suite/{testSuiteId}/test/{id} Delete Test
TestSuiteTestsApi test_suite_test_controller_update PATCH /test-suite/{testSuiteId}/test/{id} Update Test
TestSuitesApi test_suite_controller_create POST /test-suite Create Test Suite
TestSuitesApi test_suite_controller_find_all_paginated GET /test-suite List Test Suites
TestSuitesApi test_suite_controller_find_one GET /test-suite/{id} Get Test Suite
TestSuitesApi test_suite_controller_remove DELETE /test-suite/{id} Delete Test Suite
TestSuitesApi test_suite_controller_update PATCH /test-suite/{id} Update Test Suite
ToolsApi tool_controller_create POST /tool Create Tool
ToolsApi tool_controller_find_all GET /tool List Tools
ToolsApi tool_controller_find_one GET /tool/{id} Get Tool
ToolsApi tool_controller_remove DELETE /tool/{id} Delete Tool
ToolsApi tool_controller_update PATCH /tool/{id} Update Tool

Documentation For Models

To get access to the crate's generated documentation, use:

cargo doc --open

Author

Dependencies

~11–23MB
~335K SLoC