# Opt-ins

HTML: https://www.app2email.com/docs/api/opt-ins · Index: https://www.app2email.com/docs/api/llms.txt

Records that people agreed to your messages, and the rule that requires them for marketing.

| Method | Path | Summary | Scope | Sandbox key |
| --- | --- | --- | --- | --- |
| GET | `/v1/{number}/settings/optin` | [Is the opt-in rule for marketing on?](https://www.app2email.com/docs/api/opt-ins/get-optin-setting.md) | `settings:manage` | reads |
| PUT | `/v1/{number}/settings/optin` | [Turn the opt-in rule for marketing on or off](https://www.app2email.com/docs/api/opt-ins/set-optin-setting.md) | `settings:manage` | refused |
| GET | `/v1/{number}/optins` | [The opt-in records, or check one number](https://www.app2email.com/docs/api/opt-ins/list-optins.md) | `settings:manage` | reads |
| POST | `/v1/{number}/optins` | [Record that people opted in](https://www.app2email.com/docs/api/opt-ins/add-optins.md) | `settings:manage` | real change |
| DELETE | `/v1/{number}/optins/{phone}` | [Remove an opt-in record](https://www.app2email.com/docs/api/opt-ins/remove-optin.md) | `settings:manage` | real change |
