Skip to main content
POST
/
api
/
calls
/
get_extracted_data_by_call_id
Get Extracted Data By Call Id
curl --request POST \
  --url https://voiceagent.infers.co/api/calls/get_extracted_data_by_call_id \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "call_id": "<string>",
  "required_information": [
    "Age",
    "Income"
  ],
  "required_information_with_description": [
    {
      "question": "<string>",
      "description": "<string>"
    }
  ],
  "variable_values": {
    "name": "John Doe"
  }
}'
{
  "id": "<string>",
  "requested_information": [
    "<string>"
  ],
  "requested_information_with_description": [
    {}
  ],
  "extracted_information": {},
  "extracted_information_list": [
    {}
  ],
  "from_agent_id": "<string>",
  "from_phone": "<string>",
  "to_phone": "<string>"
}

Authorizations

Authorization
string
header
required

API key for authentication. Email [email protected] to get your API key

Body

application/json
call_id
string
required

Id of the call to which you want to retreive data from

required_information
string[]

An array of parameters/questions to which answers are to be retrieved from the call's conversation.

Note: Ignore this if you are fetching already extracted data (extracted either via the extract_data_from_call action or through this api)

Example:
["Age", "Income"]
required_information_with_description
FieldOrQuestion · object[]

An array of parameters/questions along with description mentioning the format of answer to which information must be extracted from the call conversation.

Note: Ignore this if you are fetching already extracted data (extracted either via the extract_data_from_call action or through this api)

variable_values
object

If you have used variables in the requested information parameter then pass those variables with values here as a dict

Examples:
{ "name": "John Doe" }

Response

Successful Response

id
string
required

A unique Id for a call

requested_information
string[]
requested_information_with_description
Requested Information With Description · object[]
extracted_information
object
extracted_information_list
Extracted Information List · object[]
from_agent_id
string
from_phone
string
to_phone
string