# Boards API

**How can I access the functions of this category?**

**\[ 1 ] -** Open a ServerScript\
\&#xNAN;**\[ 2 ] -** Look at the following script.\
(Example script to understand how to access a category and to a function)

```lua
-- // Require TrelloAPI Module
local TrelloApi = require(game.ServerScriptService:WaitForChild("TrelloAPI"))

-- // Access to the Category, SubCategory and Function
TrelloApi.BoardsApi.Utility.[FUNCTION NAME]
```

***

## UTILITY SUBCATEGORY

### GetBoardI&#x64;**(`Name: req`)** <a href="#getboardid" id="getboardid"></a>

Return the `ID` of the board; Return `false` if the function fail. *(No case sensitive)*

```lua
TrelloApi.BoardsApi.Utility.GetBoardId("EXAMPLE_BOARD_NAME")
```

### GetBoardInf&#x6F;**(`BoardId: req`)** <a href="#getboardid" id="getboardid"></a>

Return the board `object` ; Return `false` if the function fail.

```lua
TrelloApi.BoardsApi.Utility.GetBoardInfo("BOARD_ID")
```

### GetCardsOnBoard(`BoardId: req`)

Return all the cards in the target board (Lua Table); Return `false` if the function fail.

```lua
TrelloApi.BoardsApi.Utility.GetCardsOnBoard("BOARD_ID")
```

### GetCardOnBoard(`BoardId: req`, `Name: req`)

Return information about a specific Card in a specific Board (Lua Table); Return `false` if the function fail. *(No case sensitive)*

```lua
TrelloApi.BoardsApi.Utility.GetCardOnBoard(BoardId, "CARD_NAME")
```

### GetLabelsOnBoard(`BoardId: req`)

Return all the labels in the target board (Lua Table); Return `false` if the function fail.

```lua
TrelloApi.BoardsApi.Utility.GetLabelsOnBoard("BOARD_ID")
```

***

## LISTS SUBCATEGORY

### GetListsOnBoar&#x64;**(**`BoardId: req`**)** <a href="#getboardid" id="getboardid"></a>

Return all the List in the target Board (Lua Table); Return `false` if the function fail.

```lua
TrelloApi.BoardsApi.Lists.GetListsOnBoard("BOARD_ID")
```

### GetListI&#x64;**(**`BoardId: req`, `Name: req`**)** <a href="#getboardid" id="getboardid"></a>

Return The `ID` of the list in the target Board (String); Return `false` if the function fail.

```lua
TrelloAPI.BoardsAPI.GetListID("BOARD_ID", "EXAMPLE_LIST_NAME")
```

### CreateListOnBoard(`BoardId: req`, `Name: req, Position: opt`)

Create a List in a specific Board, Return `true` if the function is successful `false` if the function fail.

```lua
TrelloApi.BoardsApi.Lists.CreateListOnBoard(BoardId, "EXAMPLE_LIST_NAME", "top || bottom")
```

***

## ACTIONS SUBCATEGORY

### CreateBoard (`Name: req`)

Create a List in a specific Board, Return `true` if the function is successful `false` if the function fail.

```lua
TrelloApi.BoardsApi.Actions.CreateBoard("EXAMPLE_BOARD_NAME")
```

### ModifyBoard(`BoardId: req, OptionalData: opt`)

Modify a Board, Return `true` if the function is successful `false` if the function fail.

```lua
TrelloApi.BoardsApi.Actions.ModifyBoard("BOARD_ID", {
    Name = "EXAMPLE_NAME",
    Description = "EXAMPLE_DESCRIPTION",
    Closed = true || false,
})
```

{% hint style="info" %}
Note that you can remove one of that elements or just don't include the  '**`OptionalData`**' table.&#x20;
{% endhint %}


---

# 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://inceptionstrange.gitbook.io/trelloapi/documentation-en/api-startup-and-documentation/boards-api.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.
