add /extractions endpoint in api and fix post-save hooks