In-app assistant
POST /assistant/sessions/{id}/voice-token 工作階段或 API 金鑰
Mint a short-lived credential for a hands-free voice call.
Only on an interview session; 409 otherwise. Rate-limited to 20 calls started per hour per caller. The audio itself never reaches this server: take the returned value to calls_url (this deployment’s own realtime gateway, not api.openai.com directly) to negotiate the WebRTC call. 501 when voice mode is not configured.
路徑參數
idstring (UUID) 必填- The session id.
curl -X POST "https://freehire.me/api/v1/assistant/sessions/<id>/voice-token" -H "Authorization: Bearer $FREEHIRE_API_KEY"{ "data": { "value": "ek_...", "model": "gpt-realtime", "calls_url": "https://freehire.me/api/v1/realtime/calls" } }