# CLI commands and API routes for agents | Changelog

Source: https://wraps.dev/changelog/cli-and-api-for-agents

![Wraps Logo](https://wraps.dev/wraps-light-logo.png)![Wraps Logo](https://wraps.dev/wraps-dark-logo.png)

](https://wraps.dev/)

[](https://github.com/wraps-team/wraps)[Log in](https://app.wraps.dev/auth?mode=signin)[Sign up](https://app.wraps.dev/auth?mode=signup)

Toggle menu

[← All changes](https://wraps.dev/changelog)

CLIAPIAgentsOctober 2026

### CLI commands and API routes for agents

Read and change contacts, segments, topics, broadcasts, workflows, templates, suppressions, events and the audit log from the CLI or the API with an API key.

-   Run `wraps contacts`, `wraps segments`, `wraps topics`, `wraps broadcasts`, `wraps workflows`, `wraps events` and `wraps audit-logs`, plus `wraps email templates`, `wraps email suppressions`, `wraps email metrics`, `wraps email health` and `wraps email agent approvals`, to work with your organization's data from a script or an agent
-   Pass `--json` to get one envelope per call with an error code and a suggestion, and page through lists with `--limit` and `--cursor`. Every error exits 1. Commands that send email, make a live change or delete data refuse to run without `--yes`, and deletes also take `--dry-run`
-   Call the new API routes directly: `/v1/topics`, `/v1/suppressions`, `/v1/events`, contact `import`, `export` and `validate` under `/v1/contacts`, workflow runs under `/v1/workflows`, and `/v1/audit-logs`. A route that changes data checks the same role permissions as the dashboard
-   Manage API keys with `wraps api-keys` from a session signed in with `wraps auth login`. An API key cannot list, create or revoke keys

CLI v3.18.0

[Read the docs →](https://wraps.dev/docs/cli-reference)
