API Reference
Built-in Tools
Custom Tools
Calls
Post-call Analysis
Phone Numbers
- GETRetrieve a paginated list of all phone numbers configured in your PIA Platform account
- POSTCreate a new phone number
- GETRetrieve detailed information about a specific phone number configuration
- DELRemove a phone number configuration from the PIA Platform
- PATCHUpdate the configuration of an existing phone number
Knowledge Bases
Knowledge Bases v2
Prompt Generation
Public Sharing
Calls
Get Call
Retrieve detailed information about a specific call by its ID.
This endpoint provides comprehensive information about any call (web or phone) including its current status, duration, and associated metadata.
GET
/
v1
/
calls
/
{call_id}
Copy
{
"_id": "<string>",
"ai_agent_id": "<string>",
"ai_agent_name": "<string>",
"call_status": "registered",
"override_ai_agent_id": "<string>",
"metadata": {},
"pia_llm_dynamic_data": {},
"call_start_time": "2023-11-07T05:31:56Z",
"call_end_time": "2023-11-07T05:31:56Z",
"messages": [
{
"role": "agent",
"content": "<string>"
}
],
"recorded_call_audio_url": "<string>",
"access_token": "<string>",
"call_duration_seconds": 123,
"call_type": "web_call",
"call_finish_reason": "user_ended_call"
}
Path Parameters
Response
200
application/json
Successful Response
The response is of type object
.
The response is of type object
.
The response is of type object
.
Copy
{
"_id": "<string>",
"ai_agent_id": "<string>",
"ai_agent_name": "<string>",
"call_status": "registered",
"override_ai_agent_id": "<string>",
"metadata": {},
"pia_llm_dynamic_data": {},
"call_start_time": "2023-11-07T05:31:56Z",
"call_end_time": "2023-11-07T05:31:56Z",
"messages": [
{
"role": "agent",
"content": "<string>"
}
],
"recorded_call_audio_url": "<string>",
"access_token": "<string>",
"call_duration_seconds": 123,
"call_type": "web_call",
"call_finish_reason": "user_ended_call"
}
Assistant
Responses are generated using AI and may contain mistakes.