# Manage contact groups and attachments from the SDK
URL: https://samva.dev/changelog/manage-contact-groups-and-attachments-from-the-sdk
> Manage contact groups, custom fields, unsubscribe groups, attachments, and analytics from the SDK, with safer retries on every send.
- Published: 2026-09-25
- Tags: sdk, cli

The SDK now covers contact groups, custom fields, unsubscribe groups, attachments, and analytics, so you can manage them from code instead of the dashboard.

```ts sdk-typecheck-skip="Historical release excerpt; assumes the client and resources from the release context"
await samva.contactGroups.create({ name: "Beta testers" });
```

Sends are also easier to retry. Each call carries an idempotency key. If a send times out and you retry it yourself, pass the same `idempotencyKey` option so the email goes out only once.

This release has breaking changes. Read [Upgrading to samva 0.6](/changelog/upgrade-to-samva-0-6) before you bump the version.

## Links

- [samva 0.6.0 on npm](https://www.npmjs.com/package/samva/v/0.6.0)
- [@samva/cli 0.3.0 on npm](https://www.npmjs.com/package/@samva/cli/v/0.3.0)

## Related

- [Give an API key access to only what it needs](/changelog/give-an-api-key-access-to-only-what-it-needs)
- [Send from a new account without waiting for approval](/changelog/send-from-a-new-account-without-waiting-for-approval)
- [All changelog entries](/changelog)
