2nd draft of ingest api.