curl --request GET \
--url https://tavusapi.com/v2/objectives/{objectives_id} \
--header 'x-api-key: <api-key>'{
"data": {
"objective_name": "ask_if_new_patient",
"objective_prompt": "Ask the patient if they are new or have been here before",
"confirmation_mode": "auto",
"output_variables": [
"patient_status"
],
"modality": "verbal",
"next_conditional_objectives": {
"new_patient_intake_process": "If the patient has never been to the practice before",
"existing_patient_intake_process": "If the patient has been to the practice before"
},
"next_required_objectives": [
"get_patient_name"
],
"callback_url": "https://your-server.com/webhook",
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T10:30:00Z"
}
}This endpoint returns a single objective by its unique identifier.
curl --request GET \
--url https://tavusapi.com/v2/objectives/{objectives_id} \
--header 'x-api-key: <api-key>'{
"data": {
"objective_name": "ask_if_new_patient",
"objective_prompt": "Ask the patient if they are new or have been here before",
"confirmation_mode": "auto",
"output_variables": [
"patient_status"
],
"modality": "verbal",
"next_conditional_objectives": {
"new_patient_intake_process": "If the patient has never been to the practice before",
"existing_patient_intake_process": "If the patient has been to the practice before"
},
"next_required_objectives": [
"get_patient_name"
],
"callback_url": "https://your-server.com/webhook",
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T10:30:00Z"
}
}The unique identifier of the objective.
"o12345"
Successfully retrieved objective
Show child attributes
Name of the objective
"ask_if_new_patient"
The detailed prompt that defines what the objective should accomplish
"Ask the patient if they are new or have been here before"
How the objective completion should be confirmed
"auto"
List of variables that should be extracted or collected during the objective
["patient_status"]The communication modality for the objective
"verbal"
Mapping of objective names to conditions that must be satisfied for that objective to be activated
Show child attributes
{
"new_patient_intake_process": "If the patient has never been to the practice before",
"existing_patient_intake_process": "If the patient has been to the practice before"
}List of objective names that will be activated once the current objective is completed
["get_patient_name"]URL that will receive notifications when the objective is completed
"https://your-server.com/webhook"
ISO 8601 timestamp of when the objective was created
"2024-01-15T10:30:00Z"
ISO 8601 timestamp of when the objective was last updated
"2024-01-15T10:30:00Z"