# API Tools

### API Tokens

This part of the WebApp allows you to create an API token in order to use the API. See [How to Create an API Token](/webapp-support/webapp-overview/how-to-create-an-api-token.md).

### API Explorer

Clicking on [API Explorer](https://control.predicthq.com/explorer/events) in the left navigation menu will allow you to explore the capabilities of the API and generate code.

<figure><img src="/files/qEZhGuMGNwn5oO9ZwGTK" alt=""><figcaption><p>API Explorer in the WebApp</p></figcaption></figure>

*Note: Using an API Access token is optional since you're already logged in.*

Now choose the parameters you want to search, filter, or sort by in order to find the events that impact you. Click on view code to generate code to copy and paste to get a POC up and running quickly.

Click on "**Run Request**" to run your API query and see the results.

<figure><img src="/files/Mya15Vvj3xwSYKTrS42e" alt=""><figcaption><p>Example response from the API Explorer for Search Events</p></figcaption></figure>

Choose from the list of endpoints at the top of API Explorer to explore the API for each.

<figure><img src="/files/sstcMnkqa1KMdvRXCLRE" alt=""><figcaption></figcaption></figure>


---

# 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://docs.predicthq.com/webapp-support/webapp-overview/api-tools.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.
