therpist api spec