---
docId: doc_56d5d7991d1d407eb4a22f1deaa7b2fa
title: Pause a database
description: "Hide a connection's tools without deleting its settings."
api:
  group: herramientas/bases-de-datos
  auth: bearer
  operations:
    - operationId: pauseDatabase
      method: POST
      path: '/v1/tools/databases/{databaseId}/pause'
      postmanName: Pause a database
---

<script>
  import { Ways } from '$lib/components';
</script>

# Pause a database

Set the connection to `paused`. No agent sees its tools, but the settings, password, and agent connections are kept. [Enable it](/api-reference/databases/activate) to use them again.

## Example

<Ways tabs="api,sdk">
<Ways.Way name="api">

```bash
curl -X POST https://api.platic.ai/v1/tools/databases/$DB_ID/pause \
  -H "Authorization: Bearer $PLATIC_API_KEY"
```

</Ways.Way>
<Ways.Way name="sdk">

```ts
await platic.tools.databases.pause("db_123");
```

</Ways.Way>
</Ways>

## Path parameters

| Parameter | Type | Description | Required |
|-----------|------|-------------|----------|
| `databaseId` | string | The `id` of the connection | ✓ |

It has no body.

## Response

`200 OK`. `data` has the connection with the fields in [get a database](/api-reference/databases/get#response-fields).

```json
{
  "status": "success",
  "message": "Connection paused: agents no longer see its tools",
  "data": {
    "id": "Xb2mQe7LtR9sKd4fHw1N",
    "name": "store",
    "status": "paused",
    "nextStep": "Paused: no agent sees its tools. Turn it on again with POST /v1/tools/databases/Xb2mQe7LtR9sKd4fHw1N/enable."
  }
}
```

The example omits some fields of the connection.

## Errors

| Status | `details.code` | When it happens |
|--------|----------------|-----------------|
| `403` | `FORBIDDEN` or `INSUFFICIENT_SCOPE` | The person behind the token does not have access to Integrations, or the token does not have write permission |
| `404` | `NOT_FOUND` | There is no connection with that id in the workspace |

## Notes

- Pausing a connection that is already paused changes nothing.
- To take the tools away from a single agent, [disconnect them](/api-reference/agents/tools/disconnect) from that agent.
