---
canonical_url: "https://docs.composio.dev/toolkits/any_db"
markdown_url: "https://docs.composio.dev/toolkits/any_db.md"
product: "platform"
version: null
last_updated: null
---

# AnyDB

AnyDB is a flexible collaborative database platform for organizing records, files, sharing, and automated workflows.

- **Category:** databases
- **Auth:** API_KEY
- **Composio-managed OAuth available?** N/A
- **Tools:** 9
- **Triggers:** 0
- **Slug:** `ANY_DB`
- **Version:** 00000000_00

## Tools

### Copy Record

**Slug:** `ANY_DB_COPY_RECORD`

Duplicate an AnyDB record and its child-record subtree, optionally into another database or parent. attachments_mode controls file attachments only.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `team_id` | string | Yes | Team containing the source record. |
| `record_id` | string | Yes | Source record ID. |
| `database_id` | string | Yes | Source database ID. |
| `attachments_mode` | string ("noattachments" | "link" | "duplicate") | No | How file attachments are handled. This does not control child records: AnyDB also copies the source record's child subtree. |
| `destination_parent_id` | string | No | Parent record or database root to which the copy will be attached. |
| `destination_database_id` | string | No | Destination database; omit to copy within the source database. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Create Record

**Slug:** `ANY_DB_CREATE_RECORD`

Create a record in an AnyDB database, optionally attaching it to a parent and setting cell content.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | Yes | Record name. |
| `content` | object | No | Cell map keyed by position, such as A1. |
| `team_id` | string | Yes | Team in which to create the record. |
| `parent_id` | string | No | Parent record or database root to attach the new record to. |
| `database_id` | string | Yes | Database in which to create the record. |
| `template_id` | string | No | Template ID to use. |
| `template_name` | string | No | Template name to use when selecting a template by name. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Delete Record Permanently

**Slug:** `ANY_DB_DELETE_RECORD_PERMANENTLY`

Permanently delete one AnyDB record. This operation is irreversible and requires explicit confirmation.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `team_id` | string | Yes | Team containing the record. |
| `record_id` | string | Yes | Record to delete permanently. |
| `database_id` | string | Yes | Database containing the record. |
| `confirm_permanent_delete` | boolean | Yes | Must be true to confirm irreversible permanent deletion. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Record

**Slug:** `ANY_DB_GET_RECORD`

Fetch one AnyDB record by ID, including its metadata and cell content.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `team_id` | string | Yes | Team containing the record. |
| `record_id` | string | Yes | Record ID to retrieve. |
| `database_id` | string | Yes | Database containing the record. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### List Databases

**Slug:** `ANY_DB_LIST_DATABASES`

List databases in an AnyDB team and return root and recycle-bin IDs used by record workflows.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `team_id` | string | Yes | Team ID from the team_id field returned by List Teams. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### List Records

**Slug:** `ANY_DB_LIST_RECORDS`

Return one page of record summaries from a database, optionally constrained by parent or template.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `cursor` | string | No | Continuation cursor returned by a previous call; omit for the first page. |
| `team_id` | string | Yes | Team containing the database. |
| `page_size` | integer | No | Records to request in this page. AnyDB defaults to 50. |
| `parent_id` | string | No | Only return records attached to this parent. A database root ID is a common value. |
| `database_id` | string | Yes | Database to list. |
| `template_id` | string | No | Only return records created from this template ID. |
| `template_name` | string | No | Only return records with this template name. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### List Teams

**Slug:** `ANY_DB_LIST_TEAMS`

List AnyDB teams available to the connected account, including the IDs needed to discover databases.

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Search Records

**Slug:** `ANY_DB_SEARCH_RECORDS`

Search a database for records matching a keyword, with caller-controlled offset and limit.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | integer | No | Maximum matching records to return; AnyDB documents no upper bound. |
| `query` | string | Yes | Keyword or text to search for. |
| `start` | integer | No | Zero-based result offset. |
| `team_id` | string | Yes | Team containing the database. |
| `parent_id` | string | No | Restrict results to this parent record or database root. |
| `database_id` | string | Yes | Database to search. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Update Record

**Slug:** `ANY_DB_UPDATE_RECORD`

Update an AnyDB record's name, lock state, parent, user/group assignees, or cell content.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | No | New record name. |
| `locked` | boolean | No | Whether the record is locked. |
| `content` | object | No | Replacement or updated cells keyed by position, such as A1. An empty object is sent when explicitly supplied. |
| `team_id` | string | Yes | Team containing the record. |
| `assignees` | object | No | Replacement AnyDB user and group assignments. Use empty users and groups lists to clear all assignments. |
| `parent_id` | string | No | New parent to which the record should be attached. |
| `record_id` | string | Yes | Record to update. |
| `database_id` | string | Yes | Database containing the record. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |
