> For the complete documentation index, see [llms.txt](https://akshit-me.gitbook.io/e-courts-india-api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://akshit-me.gitbook.io/e-courts-india-api/collector.md).

# Collector

Also referred to as Master.

The collector is the API endpoint you hit to receive the data. Whenever you make a request, it is the job of the collector to do the following in order:

1. Authenticate using API Key;
2. Check if the remote IP address is allowed to access your tenancy;
3. Find if your tenancy exists and how many instances have been allocated to you;
4. Check if the request you have sent is valid;
5. Check if you have any idle instances and if you do pass on the request to the instance for processing;
6. Wait for a response from the instance;
7. Relay the response back to you.
