Create Voice Assistant

Create a new voice assistant.

This endpoint will:

  1. Check if the organization has reached its voice assistant limit
    • Organizations have a maximum limit of voice assistants based on their product tier
    • Default limit is 1 voice assistant if no product tier is set
    • Returns 403 Forbidden if limit is exceeded
  2. Create the assistant in VC
  3. Store the VC response data in our database

Parameters: assistant (VoiceAssistantCreate): The voice assistant data to create. request (Request): The FastAPI request object. db (AsyncSession): The database session (injected). organization_id (Optional[int]): The organization ID from the API key or request.

Returns: VoiceAssistant: The created voice assistant.

Raises: HTTPException: - 400: If organization ID is missing - 403: If organization has reached its voice assistant limit - 422: If there's a validation error in the request body - 500: If VC creation fails or other unexpected errors occur

Language
Credentials
Header
Click Try It! to start a request and see the response here!