# Committee

## committee

<mark style="color:green;">`POST`</mark> `http://dev.whitehat.co.kr/agent/v1/committee`

API that can search the whole list of Committee or with the given search condition

#### Headers

| Name              | Type   | Description                                              |
| ----------------- | ------ | -------------------------------------------------------- |
| X-AGENT-API-TOKEN | string | Required token for searching Agent API (issuing console) |

#### Request Body

| Name  | Type   | Description                                    |
| ----- | ------ | ---------------------------------------------- |
| \_id  | string | Committee account to search                    |
| limit | number | Number of items to get at a time (default: 10) |
| page  | number | Current page number (default: 1)               |

{% tabs %}
{% tab title="200 code: response success/fail
message: response message in accordance with success/fail
data.totalCount: total number of list of searched committee
data.list:  searched list of committee" %}

```
{
  "code": 200,
  "message": "Success",
  "data": {
    "totalCount": 1,
    "list": [
      {
        "_id": "committee1",
        "createDt": "2020-06-11T06:58:14.500Z",
        "info": {
          "account_name": "committee1",
          "head_block_num": 1358911,
          "head_block_time": "2020-06-19T03:41:50.000",
          "privileged": false,
          "last_code_update": "1970-01-01T00:00:00.000",
          "created": "2020-06-11T06:58:14.500",
          "ram_quota": 16125,
          "net_weight": 1,
          "cpu_weight": 1,
          "net_limit": {
            "used": 2786,
            "available": 9056769,
            "max": 9059555
          },
          "cpu_limit": {
            "used": 4556,
            "available": 859430,
            "max": 863986
          },
          "ram_usage": 4582,
          "permissions": [
            {
              "perm_name": "active",
              "parent": "owner",
              "required_auth": {
                "threshold": 1,
                "keys": [
                  {
                    "key": "EOS6FaPRKKsP28H3iQFenC3md9N4uJEgsFu5nrxuMEhVdEMWHVA9B",
                    "weight": 1
                  }
                ],
                "accounts": [
                  {
                    "permission": {
                      "actor": "committee1",
                      "permission": "key2"
                    },
                    "weight": 1
                  }
                ],
                "waits": []
              }
            },
            {
              "perm_name": "key1",
              "parent": "owner",
              "required_auth": {
                "threshold": 1,
                "keys": [
                  {
                    "key": "EOS6jAaBd1qHiWrPdbTY8qjAnhRnq544o1HsSsoJz7YS7aK1ottHB",
                    "weight": 1
                  }
                ],
                "accounts": [],
                "waits": []
              }
            },
            {
              "perm_name": "key2",
              "parent": "owner",
              "required_auth": {
                "threshold": 1,
                "keys": [
                  {
                    "key": "EOS6FaPRKKsP28H3iQFenC3md9N4uJEgsFu5nrxuMEhVdEMWHVA9B",
                    "weight": 1
                  }
                ],
                "accounts": [],
                "waits": []
              }
            },
            {
              "perm_name": "owner",
              "parent": "",
              "required_auth": {
                "threshold": 1,
                "keys": [
                  {
                    "key": "EOS6jAaBd1qHiWrPdbTY8qjAnhRnq544o1HsSsoJz7YS7aK1ottHB",
                    "weight": 1
                  }
                ],
                "accounts": [
                  {
                    "permission": {
                      "actor": "committee1",
                      "permission": "key1"
                    },
                    "weight": 1
                  }
                ],
                "waits": []
              }
            }
          ],
          "total_resources": {
            "owner": "committee1",
            "net_weight": "0.0001 SYS",
            "cpu_weight": "0.0001 SYS",
            "ram_bytes": 14725
          },
          "self_delegated_bandwidth": null,
          "refund_request": null,
          "voter_info": null,
          "rex_info": null
        }
      }
    ]
  }
}
```

{% endtab %}
{% endtabs %}

#### Request Parameter example (JSON)

```javascript
{
  "query": {
    "_id": "committee1"
  },
  "limit": 10,
  "page": 1
}
```


---

# 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://dev-en.omnione.net/how-to-check-blockchain-data/check-agent-api/committee.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.
