Skip to Content
MailroomMailroom home

Pause an agent (kill switch)

Cancels queued and scheduled sends. New sends return 423 agent_paused.

POST
/agents/{id}/pause

Cancels queued and scheduled sends. New sends return 423 agent_paused.

Authorization

bearerAuth
headerAuthorizationBearer <mr_live_ / mr_test_>

API key. Never log the secret.

Path Parameters

id*string

Header Parameters

Idempotency-Key?string

Stored 24h. Same key + body returns the original response.

Response Body

Paused

application/json
  1. response
id?string
name?string
slug?string
status?string
Value in"active""paused"
policy_id?string
daily_send_budget?integer
inbox_id?string|null
Example Request
curl -X POST 'https://api.mailroom.gosuevals.com/v1/agents/string/pause'
Example Response200
{  "id": "string",  "name": "string",  "slug": "string",  "status": "active",  "policy_id": "string",  "daily_send_budget": 0,  "inbox_id": "string"}