POST /v1/mail/campaigns/{id}/end. Archiving cancels remaining unsent mail and scheduled sends, releases reserved funds, and excludes the campaign from mail-attention reminders and the default campaign list. Mailing history is preserved. Mail already submitted to the printer may still ship.GET /v1/mail/campaigns?status=archived, or retrieve one by ID. Repeating the archive request safely finishes any interrupted cleanup.path idstringrequireddata contains the campaign with status: "archived". stopped_mail_count counts unsent pieces targeted by this request; already_printed_count counts pieces already sent to the printer or carrier. Repeated requests can return zero stopped pieces.| Status | Code | When |
| 403 | permission_denied | The API key owner cannot manage mail |
| 404 | campaign_not_found | The campaign does not exist in this workspace |
| 409 | CAMPAIGN_NOT_ENDED | End the campaign before archiving; no mail or funds were changed |
dm mail campaigns archive <id> --yes after confirming the cancellation. AI assistants can call dealmachine_mail_campaign_archive with campaign_id and confirmed: true after the user approves.