# Setting Up Nightfall

Before you use the scan endpoint, there are a number of actions to do within the Nightfall dashboard to get your environment set up properly.

* See[ Creating an API Key](/developer-api/key-concepts/setup/api_key.md) to see how to create the necessary Authentication token for making API calls.
* See [Creating a Detector](https://help.nightfall.ai/detection_platform/detectors) for how to define your own custom logic for detecting sensitive data
* See [Creating Detection Rules](https://help.nightfall.ai/detection_platform/create_detection_rules) for how to aggregate Detectors for use in the `scan` endpoint
* See [Creating Policies](/developer-api/key-concepts/setup/policies.md) for how to set up common workflows that combine your Detection Rules with remediation actions such as alerting.


---

# 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://help.nightfall.ai/developer-api/key-concepts/setup.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.
