Skip to main content
POST
/
get-call
curl -X POST https://api.magpipe.ai/functions/v1/get-call \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"call_id": "7f3d8e00-a1b2-4c3d-9e4f-567890abcdef"}'
{
  "id": "7f3d8e00-a1b2-4c3d-9e4f-567890abcdef",
  "agent_id": "550e8400-e29b-41d4-a716-446655440000",
  "agent_name": "Sarah - Receptionist",
  "from_number": "+16045551234",
  "to_number": "+14155551234",
  "direction": "inbound",
  "status": "completed",
  "duration": 125,
  "recording_url": "https://storage.supabase.co/v1/object/public/recordings/7f3d8e00.mp3",
  "transcript": "Agent: Hello, this is Sarah from Acme Dental. How can I help you today?\n\nCaller: Hi, I'd like to book an appointment for a cleaning.\n\nAgent: Of course! I have availability this Thursday at 2pm or Friday at 10am. Which works better for you?",
  "sentiment": "positive",
  "call_summary": "Caller requested a dental cleaning appointment. Agent offered Thursday 2pm or Friday 10am slots.",
  "metadata": null,
  "started_at": "2024-01-15T10:30:15Z",
  "ended_at": "2024-01-15T10:32:20Z",
  "created_at": "2024-01-15T10:30:00Z"
}
Get detailed information about a call, including its status, transcript, summary, and recording URL.

Request Body

call_id
string
required
The unique identifier of the call to retrieve.

Response

id
string
Unique call identifier.
agent_id
string
The agent that handled this call.
agent_name
string
Name of the agent that handled this call.
from_number
string
The phone number that made the call.
to_number
string
The destination phone number.
direction
string
Either inbound or outbound.
status
string
Final call status: completed, busy, no-answer, failed, or canceled.
duration
integer
Call duration in seconds.
recording_url
string
URL to the call recording, if available. Use the Get Recording endpoint for full recording details.
transcript
string
Full transcript of the conversation with speaker labels.
sentiment
string
AI-analyzed call sentiment: positive, neutral, or negative.
call_summary
string
AI-generated summary of the call.
metadata
object
Custom metadata attached when the call was created.
started_at
string
When the call was answered (ISO 8601).
ended_at
string
When the call ended (ISO 8601).
created_at
string
When the call record was created (ISO 8601).
curl -X POST https://api.magpipe.ai/functions/v1/get-call \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"call_id": "7f3d8e00-a1b2-4c3d-9e4f-567890abcdef"}'
{
  "id": "7f3d8e00-a1b2-4c3d-9e4f-567890abcdef",
  "agent_id": "550e8400-e29b-41d4-a716-446655440000",
  "agent_name": "Sarah - Receptionist",
  "from_number": "+16045551234",
  "to_number": "+14155551234",
  "direction": "inbound",
  "status": "completed",
  "duration": 125,
  "recording_url": "https://storage.supabase.co/v1/object/public/recordings/7f3d8e00.mp3",
  "transcript": "Agent: Hello, this is Sarah from Acme Dental. How can I help you today?\n\nCaller: Hi, I'd like to book an appointment for a cleaning.\n\nAgent: Of course! I have availability this Thursday at 2pm or Friday at 10am. Which works better for you?",
  "sentiment": "positive",
  "call_summary": "Caller requested a dental cleaning appointment. Agent offered Thursday 2pm or Friday 10am slots.",
  "metadata": null,
  "started_at": "2024-01-15T10:30:15Z",
  "ended_at": "2024-01-15T10:32:20Z",
  "created_at": "2024-01-15T10:30:00Z"
}