# 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](https://docs.predicthq.com/webapp-support/webapp-overview/how-to-create-an-api-token "mention").

### 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="https://4203168746-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRi9YaBiPckypV66Jggc2%2Fuploads%2Fgit-blob-fc9644fb849f5a5243c9e6e32f0cda5809bc0950%2Fimage%20(7).png?alt=media" 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="https://4203168746-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRi9YaBiPckypV66Jggc2%2Fuploads%2Fgit-blob-d6d3c50d2af666b7a9859d92d3e7ba7d524474e2%2Fimage%20(8).png?alt=media" 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="https://4203168746-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRi9YaBiPckypV66Jggc2%2Fuploads%2Fgit-blob-8e01e54fe64851c5f6af7abd39c7af8add4159ef%2Fimage%20(9).png?alt=media" alt=""><figcaption></figcaption></figure>
