# Governance

Makes a request to the GovernanceService API. The Governance Service includes three endpoints to retrieve information about AGL accounts. For more details, see the Agile API documentation.

* `options` (object) A JavaScript object of API request parameters.
* `endpoint` (string) A string of the name of the corresponding governance service endpoint. Valid values are `proposals`, `voteReceipts`, or `accounts`.
* `RETURN` (object) Returns the HTTP response body or error.

```
(async function() {
  const proposal = await Agile.api.governance(
    { "proposal_ids": [ 20 ] }, 'proposals'
  );

  console.log('proposal', proposal); // JavaScript Object
})().catch(console.error);
```


---

# 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.agilefi.org/agile.js/api-methods/governance.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.
