Skip to main content
These endpoints let you embed AI-driven chat, voice synthesis, and speech transcription directly into your product. Your workspace admin will provide your API key before you begin. Production Base URL: https://api.dashboard.valuez.ai All endpoints require the x-api-key header. See API Authentication for setup details.

1. Text-to-Text Agent Chat

Send a text question to an AI agent and receive an answer grounded in its knowledge base and instructions.
  • Method: POST
  • Endpoint: /api/v1/ttt
  • Credits: Deducts TTT_API credits per token usage.

Request Body

Response

Code Examples


2. Text-to-Speech (TTS)

Synthesize speech audio from text using the workspace’s configured TTS provider and voice profile.
  • Method: POST
  • Endpoint: /api/v1/tts/external
  • Credits: Deducts TTS_API credits based on character count.
  • Output: Returns a binary audio/wav stream.

Request Body

Code Examples


3. Speech-to-Text (STT)

Transcribe a recorded voice audio file to text.
  • Method: POST
  • Endpoint: /api/v1/stt/external
  • Content-Type: multipart/form-data
  • Credits: Deducts STT_API credits based on audio duration.

Request Fields

Response

Code Examples


4. Conversational Agent Chat

Unified endpoint supporting text or audio input, RAG knowledge retrieval, and stateful multi-turn conversation history.
  • Method: POST
  • Endpoint: /api/v1/external/chat
  • Content-Type: application/json (or multipart/form-data when uploading audioFile)

Request Body

Fetch Session History

Retrieve the full multi-turn transcript for a session:

Response


5. Real-Time WebSockets

For low-latency streaming, Valuez exposes WebSocket endpoints for bidirectional voice and embedded widget interactions:

Error Reference

API Logs

Monitor request logs and inspect execution details.

Agents & Knowledge

Configure the AI agents that power these endpoints.