# Receiving Votes

## Receive Vote

<mark style="color:green;">`POST`</mark> `​https://your.webhook.com/discordswebhook`

We recomend you end your webhooks with `/discordswebhook`, although it's not required.

#### Headers

| Name          | Type   | Description                                                                        |
| ------------- | ------ | ---------------------------------------------------------------------------------- |
| Authorization | string | The plain text string used to verifiy that the request is coming from discords.com |

#### Request Body

| Name  | Type   | Description                                                                                                                                                      |
| ----- | ------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| user  | string | The ID of the user who voted                                                                                                                                     |
| bot   | string | The ID of the bot which recieved the vote                                                                                                                        |
| votes | string | Contains totalVotes, votesMonth, votes24, hasVoted - a list of IDs of users who have voted this month, and Voted24 - a list of IDs of users who have voted today |
| type  | string | The type of event, whether it is a vote event or test event                                                                                                      |

{% tabs %}
{% tab title="200 " %}

```
// No response is required but a simple OK would be nice
```

{% endtab %}
{% endtabs %}


---

# 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.botsfordiscord.com/methods/receiving-votes.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.
