Quickstart
This guide takes you from a configured agent to a completed call result. You will create an API key, start one outbound call, wait for the final call state, and retrieve the conversation record.
10 minutes once your workspace and agent are ready.
Your backend calls the FormantAI Voice API with a bearer API key.
A conversation with status, transcript, recording, results, and trace ID.
Before you begin
You need:
- A FormantAI Voice workspace.
- A configured agent with a phone number.
- The agent ID from the agent detail page.
- A backend environment where you can store an API key securely.
- A test phone number that can receive the call.
If your agent is not configured yet, start with Create your first agent.
Step 1: Create an API key
Open your FormantAI dashboard and create an API key from Developer -> API Keys. Copy it immediately. API keys are shown once and should only be used from your backend.
Use https://api.in.voice.formantai.com only if your workspace is provisioned in the India region.
Step 2: Start one outbound call
Every outbound call needs an agent_id and a customer_phone parameter. Add any other parameters your prompt, tools, webhooks, or result extraction need.
The response confirms that FormantAI accepted the call request. Store the trace_id; it is your support and debugging handle.
conversation_id can be null immediately after initiation because the telephony provider and live conversation record may be created asynchronously.
Step 3: Wait for the terminal event
The cleanest production path is to configure webhooks and wait for a terminal event such as call.completed, call.no_answer, or call.failed.
If you are not using webhooks yet, wait for the call to finish and list conversations for the agent.
Step 4: Fetch the conversation
Use the returned conversation_id to fetch the full call record.
The conversation record can include:
Step 5: Download the recording
When the call has a recording, download it from the Conversations API.