---
docId: doc_434b458b09f54c00ba3643856d40b85e
title: Pause an API
description: Take a custom API out of the catalog and keep its configuration, its secrets and its connections to agents.
api:
  group: herramientas/apis-personalizadas
  auth: bearer
  operations:
    - operationId: pauseApiTool
      method: POST
      path: '/v1/tools/apis/{integrationId}/pause'
      postmanName: Pause an API
---

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

# Pause an API

Stop all agents from using an API by sending its `integrationId`, with no body. It becomes `paused` and keeps its definition, secrets and connections. [Publish it](/api-reference/custom-apis/publish) again to reactivate it.

## Example

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

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

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

```ts
await platic.tools.apis.pause("api_123");
```

</Ways.Way>
</Ways>

## Path parameters

| Parameter | Type | Description | Required |
|-----------|------|-------------|----------|
| `integrationId` | string | Custom API ID | ✓ |

## Request body

It has no body.

## Response

`data` has the complete API, with the fields of [Get an API](/api-reference/custom-apis/get#response-fields).

```json
{
  "status": "success",
  "message": "API tool paused successfully",
  "data": {
    "id": "RuzoaswTBBrhutHyKYZn",
    "toolName": "api_order_lookup",
    "name": "order_lookup",
    "description": "Looks up the status of an Example Store order by its number. Use it when the customer asks where their order is.",
    "status": "paused",
    "version": 4,
    "variables": [
      {
        "name": "orderId",
        "type": "string",
        "description": "Order number, as it appears in the confirmation email.",
        "required": true,
        "mode": "ai"
      }
    ],
    "request": {
      "method": "GET",
      "url": "https://api.example-store.com/orders/{{orderId}}",
      "headers": [{ "key": "Accept", "value": "application/json" }],
      "auth": { "type": "bearer" }
    },
    "createdAt": "2026-10-28T12:05:03.902Z",
    "updatedAt": "2026-11-04T09:00:12.540Z",
    "lastTest": null,
    "verified": true,
    "secrets": [
      {
        "slot": "auth.token",
        "state": "authorized",
        "secretId": "5d0c7a1e9b3f4a6c8e2d1f0b7a9c3e5d6f8a0b2c4d6e8f1a3b5c7d9e0f2a4b6c"
      }
    ],
    "secretsRedacted": true,
    "nextStep": "Paused: no agent sees it. Publish it again with POST /v1/tools/apis/RuzoaswTBBrhutHyKYZn/enable."
  }
}
```

## Errors

| Status | `details.code` | When |
|--------|----------------|------|
| `403` | `FORBIDDEN` | The person behind the token does not have access to Integrations |
| `404` | `NOT_FOUND` | The API does not exist in this workspace |
| `409` | `RESOURCE_CHANGED` | The API changed while it was being paused. Read it and repeat |

## Notes

- Pausing the API affects all agents. For a single agent to stop using it, [pause its connection](/api-reference/agents/tools/pause).
- The tool stays in the [catalog](/api-reference/tools/list) with `status: "inactive"` while the API is paused.
- To reactivate it, [publish it](/api-reference/custom-apis/publish). If you changed nothing, the previous test is still valid.
- To delete it completely, use [Delete an API](/api-reference/custom-apis/delete).
