---
title: tm.contactoptin
slug: db/tmcontactoptin
createdAt: 2023-12-14T14:12:53.427Z
---

Contact opt-in relation

## Fields

| FIELD        | TYPE               | DESCRIPTION                                                                                          |
| ------------ | ------------------ | ---------------------------------------------------------------------------------------------------- |
| id           | `int`              | Unique ID                                                                                            |
| optinid      | `int`              | ID of the optin                                                                                      |
| contactid    | `int`              | ID of the contact                                                                                    |
| status       | `int`              | Status of the opt-in. Possible values are `Unknown (7601)`, `Opted In` (7602) and `Opted Out` (7603) |
| info         | `ContactOptInInfo` | Info on the actual opt in                                                                            |
| createdts    | `timestamp`        | Created timestamp                                                                                    |
| lastupdatets | `timestamp`        | Last updated timestamp                                                                               |

