# API Endpoints

{% hint style="info" %}
Default Voting API prefix is `/api/voting`
{% endhint %}

## List Of Configurations Endpoints

| Endpoints                                                                                  | Description                               | Type |
| ------------------------------------------------------------------------------------------ | ----------------------------------------- | ---- |
| [/configurations](/developers/sdk/voting/api-endpoints/configurations.md#configurations-1) | Returns configurations for voting plugins | GET  |

## List Of Create Proposal Endpoints

| Endpoints                                                                                                                    | Description                               | Type |
| ---------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------- | ---- |
| [/create/proposal/transactions](/developers/sdk/voting/api-endpoints/create-proposal.md#create-proposal-transactions)        | Returns all create proposal transactions  | GET  |
| [/create/proposal/transactions/:id](/developers/sdk/voting/api-endpoints/create-proposal.md#create-proposal-transactions-id) | Returns create proposal transaction by id | GET  |
| [/create/proposal/:id/wallet](/developers/sdk/voting/api-endpoints/create-proposal.md#create-proposal-id-wallet)             | Returns wallet by create proposal id      | GET  |

## List Of Cast Vote Endpoints

| Endpoints                                                                                                  | Description                         | Type |
| ---------------------------------------------------------------------------------------------------------- | ----------------------------------- | ---- |
| [/cast/vote/transactions](/developers/sdk/voting/api-endpoints/cast-vote.md#cast-vote-transactions)        | Returns all cast vote transactions  | GET  |
| [/cast/vote/transactions/:id](/developers/sdk/voting/api-endpoints/cast-vote.md#cast-vote-transactions-id) | Returns cast vote transaction by id | GET  |
| [/cast/vote/:id/wallet](/developers/sdk/voting/api-endpoints/cast-vote.md#cast-vote-id-wallet)             | Returns wallet by cast vote id      | GET  |

## List Of Statistics Endpoints

| Endpoints                                                                           | Description                           | Type |
| ----------------------------------------------------------------------------------- | ------------------------------------- | ---- |
| [/statistics/:id](/developers/sdk/voting/api-endpoints/statistics.md#statistics-id) | Returns statistics for proposal by id | GET  |


---

# 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.protokol.com/developers/sdk/voting/api-endpoints.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.
