--- sidebar_position: 2 --- # Get base tables Gets the schema of base tables `Function GetDatabaseTables(Val Token, Val Base) Export` | Parameter | CLI option | Type | Description | |-|-|-|-| | Token | --token | String | Token | | Base | --base | String | Base identifier | Returns: Map Of KeyAndValue - serialized JSON response from Airtable
```bsl title="Code example" Token = "patNn4BXW66Yx3pdj.5b93c53cab554a8387de02d..."; Base = "app9bSgL4YtTVGTlE"; Result = OPI_Airtable.GetDatabaseTables(Token, Base); ``` ```sh title="CLI command example" oint airtable GetDatabaseTables --token %token% --base "apptm8Xqo7TwMaipQ" ``` ```json title="Result" { "tables": [ { "id": "tbl6wlzce0XpweN9s", "name": "TestTable", "primaryFieldId": "fldgRQtommBB7A2RV", "fields": [ { "type": "number", "options": { "precision": 0 }, "id": "fldgRQtommBB7A2RV", "name": "Number" }, { "type": "richText", "id": "fldUTbHtknQQAQqjN", "name": "String" } ], "views": [ { "id": "viwlaL8T86CAZrox2", "name": "Grid view", "type": "grid" } ] } ] } ```