Skip to Content
MailroomMailroom home

Update an agent

PATCH
/agents/{id}

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.

Request Body

application/json
  1. body
name?string
daily_send_budget?integer
policy_id?string
description?string

Response Body

Agent

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 PATCH 'https://api.mailroom.gosuevals.com/v1/agents/string' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response200
{  "id": "string",  "name": "string",  "slug": "string",  "status": "active",  "policy_id": "string",  "daily_send_budget": 0,  "inbox_id": "string"}