use extract endpoint