# Collector

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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://akshit-me.gitbook.io/e-courts-india-api/collector.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
