EasyPoll API Documentation
Welcome to the EasyPoll API documentation! This guide provides all the information you need to interact with the EasyPoll API, including endpoints, request and response formats, authentication methods, and more.
The EasyPoll API is currently in beta and may undergo changes. Please refer to this documentation for the latest updates.
Base URL
The base URL for all API requests is:
https://easypoll.bot/api
Authentication
To authenticate with the EasyPoll API, you need to obtain an API key. You can get your API key by logging into the EasyPoll dashboard and navigating to API Keys.
Include your API key in the Authorization header of each request to authenticate:
Authorization: Bearer <api-key>
Rate Limiting
The EasyPoll API enforces rate limiting to ensure fair usage. If you exceed this limit, you will receive a 429 Too Many Requests response.
You can check your current rate limit status using the following headers in the API response:
x-ratelimit-limit: The maximum number of requests allowed in the time windowx-ratelimit-remaining: The number of requests remaining in the time windowx-ratelimit-reset: The time in seconds until the rate limit resets
Additionally, the API provides hourly and daily rate limit headers, which may be more restrictive on some routes:
x-ratelimit-limit-hour: The maximum number of requests allowed per hourx-ratelimit-remaining-hour: The number of requests remaining in the hourx-ratelimit-reset-hour: The time in seconds until the hourly rate limit resetsx-ratelimit-limit-day: The maximum number of requests allowed per dayx-ratelimit-remaining-day: The number of requests remaining in the dayx-ratelimit-reset-day: The time in seconds until the daily rate limit resets
If you hit a rate limit, you should wait until the reset before making additional requests.
The retry-after header in the response indicates the number of seconds to wait before retrying.