Pause an API
SDK platic.tools.apis.pause()
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 again to reactivate it.
Example
curl -X POST "https://api.platic.ai/v1/tools/apis/$INTEGRATION_ID/pause" \
-H "Authorization: Bearer $PLATIC_API_KEY" await platic.tools.apis.pause("api_123"); 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.
{
"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.
- The tool stays in the catalog with
status: "inactive"while the API is paused. - To reactivate it, publish it. If you changed nothing, the previous test is still valid.
- To delete it completely, use Delete an API.