setting up endpoint for ingest