post https://api.voicecreator.ai/api/v1/voice-assistants
Create a new voice assistant.
This endpoint will:
- 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
- Create the assistant in VC
- 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