# Polls API Documentation

## Pre-requisites

The first step before you can start using the PollsAPI is signing up and creating an account by going to the [registration page](https://pollsapi.com/login) or logging into the [dashboard](https://pollsapi.com/app) if you already have an account.

Once you're in, your API key should be visible on the dashboard where you can simply copy and paste it to your requests. It is a string of random numbers and letters that looks something like this:

**Example API Key:** `NT6BT3HZYD4BT8IOW3NEBB5DFK1R`

## Getting Started

PollsAPI can be consumed with any programming language, and has been optimized to provide the best performance. Once you have your **API Key** you are ready to start using our APIs.

Our APIs are accessible on the base hostname&#x20;

#### **`https://api.pollsapi.com/v1`**

All of our APIs require you to pass the **`api_key`** header and the response is in JSON format.

{% hint style="info" %}
If you plan on using our APIs from backend, you might need to update your firewalls to allow outbound calls to our server. Please contact [**hello@pollsapi.com**](mailto:hello@pollsapi.com) if you face any issues.
{% endhint %}

Now, let's jump into the API functions we have.


---

# 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.pollsapi.com/master.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.
