API reference
API: Pause
| Method | Path | What it does | Scope |
|---|---|---|---|
| GET | /v1/pause-switches | What is paused now (the organization, agents, providers, connected accounts, campaigns) | settings:read |
| PUT | /v1/pause-switches | Pause or resume: new writes under a paused switch are refused and queued agent work waits | settings:write |
Examples
GET /v1/pause-switches
What is paused now (the organization, agents, providers, connected accounts, campaigns)
curl -s "https://api.cubbylark.com/v1/pause-switches" \
-H "Authorization: Bearer $KC_API_KEY"const res = await fetch(`https://api.cubbylark.com/v1/pause-switches`, {
method: "GET",
headers: { authorization: `Bearer ${process.env.KC_API_KEY}` },
});
const data = await res.json();PUT /v1/pause-switches
Pause or resume: new writes under a paused switch are refused and queued agent work waits
curl -s -X PUT "https://api.cubbylark.com/v1/pause-switches" \
-H "Authorization: Bearer $KC_API_KEY" \
-H "content-type: application/json" \
-d '{}'const res = await fetch(`https://api.cubbylark.com/v1/pause-switches`, {
method: "PUT",
headers: { authorization: `Bearer ${process.env.KC_API_KEY}`, "content-type": "application/json" },
body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();Request and response schemas: https://www.cubbylark.com/openapi.json. All resources: API reference.