curl --location '/agents/tasks/custom' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"title": "Collect insurance info",
"description": "Ask the caller for their insurance provider",
"completionCriteria": "Insurance info is collected",
"groupName": "Custom"
}'{
"id": "string",
"slug": "schedule-appointment",
"title": "Schedule Appointment",
"description": "string",
"completionCriteria": "string",
"prerequisiteType": "calendar_connected",
"groupName": "Scheduling",
"userId": "string",
"createdAt": "2019-08-24T14:15:22.123Z"
}